burntsugar
burntsugar

Reputation: 58030

VB.NET Open word document

In VB.NET how do you open a word/PDF doc? I used to have the code and I remember it was very short.

Upvotes: 0

Views: 4006

Answers (2)

JonnyBoats
JonnyBoats

Reputation: 5187

Are you thinking of VSTO (Visual Studio Tools for Office)?

Upvotes: 0

devSolo
devSolo

Reputation: 560

Assuming there is an app registered to handle .PDF or .DOC files, you could use the following:

System.Diagnostics.Process.Start("C:\path\filename.pdf")
System.Diagnostics.Process.Start("C:\path\filename.doc")

Upvotes: 4

Related Questions