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

VB Datareports printing only 1st Page

Status
Not open for further replies.

JayLO

Programmer
Oct 14, 2002
1
GB
Hi all,
quite a newbie to Reports and whatnot.
Having what seems to be a fairly common problem, but not having found any decent solutions, need to ask:

I'm using the Data Report feature in VB 6.0 and have got it generally printing reports as they should be, but only when I run each report individually. When I try to perform a batch print, specifically printing all pending Invoices, reports/Invoices which take more than a single page only get the first page printed.
I have surmised that this is due to having to unload the report form in order to load the next pending Invoice report, thus preventing the remaining pages to be spooled (it spools the first page then unloads to load the next Invoice).
One solution is to call frmSomeReport.PrintReport and setting True for the first argument, in order to show the CommonDialog print dialog screen, but when printing 20+ invoices in a batch, this is more than tedious.

Does anyone have an answer to force multiple page spooling before the form unloads?

Thanks y'all

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top