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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trifold indivual pages of report with BizHub

Status
Not open for further replies.

white605

Technical User
Jan 20, 2003
394
US
Has anyone had to mail a letter or statement to each person in a database, sent the print job to the printer with tri-fold set in a finisher only to find that the printer wants to stuff every single page into the same envelope, discovers he cannot fit them in and decides not to fold any of them?

I am working on printing out the reports using a second copy of a printer driver set to fold as default and using the following code - Is there a better way to approach this?
Code:
 **PrintOnePageAtATime vfp9
 nPages = RECCOUNT( )
 SET PRINTER TO NAME "WindowsPrinterName" && trifold driver
 FOR n = 1 TO nPages
 REPORT FORM MyReport RANGE n,n noeject TO print
 ENDFOR

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
Hi White605,

I don't know if there's a better way, but I can't see any problem with creating the second copy of the printer driver. I've done the same thing to handle duplex printing.

I think it might be better if your REPORT FORM command had NOPAGEEJECT rather than NOEJECT. That way, the spooler will see the whole thing as a single job, which should be faster, and also won't cause the print spooler icon to flash on and off in the taskbar. But if you do use NOPAGEEJECT, you'll need to print the very last page separately in order to close the print job.

I'd also suggest NODIALOG, otherwise the user will see the report dialogue flash on and off the screen during the printing.

Hope you manage to make it work.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top