Home All Groups Group Topic Archive Search About

Printing a pdf File in vb.net

Author
24 Nov 2006 3:35 AM
Don
I would like to print a report which was created in Adobe Acrobat with the
extention pdf.  Is there an easy way to do this.

I am new at this and would appreciate any code that can help.


--
Don Mylrea

Author
24 Nov 2006 11:41 AM
Rick
Don,

You can create a process and call the shell function with the verb 'print'
for the file.  This will refer back to the registry where Adobe should have
registered all the available verbs.

You can Google for System.Diagnostics.Process and
System.Diagnostics.ProcessStartInfo to get you started.

However, when I have done this I noticed that Acrobat will actually open
during the print process and the user will have to close.  There may be some
way to automatically close Acrobat Reader at the end, but I don't know it.

Rick

Show quoteHide quote
"Don" <D**@discussions.microsoft.com> wrote in message
news:82DA1CF9-F20F-4416-8B14-01CC932646BF@microsoft.com...
>I would like to print a report which was created in Adobe Acrobat with the
> extention pdf.  Is there an easy way to do this.
>
> I am new at this and would appreciate any code that can help.
>
>
> --
> Don Mylrea