VB.NET Open Text Document

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

0


source to share


2 answers


Assuming you have an application registered to handle .PDF or .DOC files, you can use the following:



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


source


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



0


source







All Articles