Home All Groups Group Topic Archive Search About

Opening an Adobe Acrobat file Using VB.NET

Author
1 Nov 2006 9:43 PM
Bill Partridge
Hi,

I am using VB.NET 2003 and I want to open up a pdf by pressing a command
button.

How do I do this, including passing a filename as a parameter?

--
Thanks

Bill Partridge

Author
1 Nov 2006 9:51 PM
Tim Patrick
Just call Process.Start(), passing the path to the file.

   Process.Start("C:\My Documents\My Acrobat File.pdf")

-----
Tim Patrick
Start-to-Finish Visual Basic 2005

Show quoteHide quote
> Hi,
>
> I am using VB.NET 2003 and I want to open up a pdf by pressing a
> command button.
>
> How do I do this, including passing a filename as a parameter?
>
> Bill Partridge
>
Author
2 Nov 2006 12:15 AM
Spam Catcher
Tim Patrick <inva***@invalid.com.invalid> wrote in
news:e3b4697616b18c8cbd3ed135f84@newsgroups.comcast.net:

> Just call Process.Start(), passing the path to the file.
>
>    Process.Start("C:\My Documents\My Acrobat File.pdf")


There is also an embeddable ActiveX object which the OP can use if he/she
would to embed the PDF directly into an application.
Author
1 Nov 2006 11:32 PM
Herfried K. Wagner [MVP]
"Bill Partridge" <BillPartri***@discussions.microsoft.com> schrieb:
> I am using VB.NET 2003 and I want to open up a pdf by pressing a command
> button.

'System.Diagnostics.Process.Start(<file name>)'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>