I have an invoice that I do something similar. I know that X number of line items fit on a page. So I do a count of line items before the report print is called. If it is over the X amount of lines I tell it to print duplex.
Dan Goldberg From: Luc Delcoigne Sent: Tuesday, October 04, 2011 12:09 AM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: duplex printing Hi, I have a report that I want to print on one pageside if the report is only one page and in duplex when the report is more than one page. This report has to print in 3 copies. Now, when I set the printer in duplex mode (|DUPLEX HORIZONTAL) it prints every report in duplex....i.e. even the reports that are 1 page are printed recto-verso when the 3 copies are printed. So, I would have to be able to capture the totalpagecount of the report before issueing the print command. That way I could evaluate the totalpagecount var and issue a Print Report or Print Report |DUPLEX HORIZONTAL, when the report is more than one page. Somehow I cannot capture the totalpagecount var... What could be wrong ? Luc Delcoigne

