How to print a pdf file to the default printer?

R

Robert Dufour

I have a file c:\test.pdf that I simply need to send to the default printer
from within my vb.net code
I've been seeing samples that show how to print text to a printer and they
handle page counting etc.
All I need to do is just to pick up the whole PDF file and give a command to
print it but I can't put my finger on how to do that. The printer is
actually a document converter that will save the PDF file as Tif file in
another folder. I tested the driver by using the Print command of adobe
acrobat and it gives me the results I want. All I gotta do now is to just
send the file to be printed to this driver that is the default printer on my
system.

Thanks for any help,
Bob
 
P

pvdg42

Robert Dufour said:
I have a file c:\test.pdf that I simply need to send to the default printer
from within my vb.net code
I've been seeing samples that show how to print text to a printer and they
handle page counting etc.
All I need to do is just to pick up the whole PDF file and give a command
to print it but I can't put my finger on how to do that. The printer is
actually a document converter that will save the PDF file as Tif file in
another folder. I tested the driver by using the Print command of adobe
acrobat and it gives me the results I want. All I gotta do now is to just
send the file to be printed to this driver that is the default printer on
my system.

Thanks for any help,
Bob

Here's an article you may find useful...

http://dotnet.mvps.org/dotnet/faqs/?id=printinganyfile&lang=en
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top