Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing PDF document - extra blank page

Status
Not open for further replies.

Phantek

Programmer
Apr 25, 2011
29
US
I have set up a small program to search a folder, open up each .pdf file and send it to the printer. Everything is working fine, except that the printer produces one extra blank page after each document - this does not happen when I manually print an individual document.

The same thing happens if I only have one document to print, or more. Any idea how this could be stopped?

The print line I am using is simply:

Code:
Call AcroExchAVDoc.PrintPages(0, 0, 2, True, False)

I have tried all options for the last two, and it does not change anything (true, true; false, true; false, false)

If I set the number "2" to "1", then nothing prints.
 
Never mind. It turns out that it was the printer that failed exactly when I started using this - the code is just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top