Subreports and page numbering
Hi!
I have some trouble with page numbering in nested subreports.
My goal is to print multiple multi-page documents (invoice-type) in one
shot. Each invoice is being printed in two slightly different copies. I
want to reset page numbers for each copy.
Unfortunately the pages are not being reset for the whole printout.
Any suggestions what could be the reason?
Appreciate any feedback
Irek Rybark
RB v.6.03 Ent
Delphi 6 SP 2
The report structure is as follows
ppReport: TppReport
DataPipeline = ppDBPipelineBatch // print multiple documents (invoices)
PassSetting = psTwoPass // want to print "Page # of #"
DetailBand: ppSubReportInvoice
ppSubReportInvoice / ppChildReportInvoice
DataPipeline = ppDBPipelineInvCopy // always 2 rows per invoice
PrintBehavior = pbSection // print two (different) copies
// of the invoice
ResetPageNo = False
DetailBand: ppSubReportInvCopy
ppSubReportInvCopy / ppChildReportInvCopy
DataPipeline = ppDBPipelineLine // invoice lines
PrintBehavior = pbSection
ResetPageNo = True
HeaderBand: [Page # of #] ppSubreportHeader (pbChild)
DetailBand: [invoice line] ppSubreportInvLine (pbChild)
SummaryBand: [totals] ppSubreportTotals (pbChild)
I have some trouble with page numbering in nested subreports.
My goal is to print multiple multi-page documents (invoice-type) in one
shot. Each invoice is being printed in two slightly different copies. I
want to reset page numbers for each copy.
Unfortunately the pages are not being reset for the whole printout.
Any suggestions what could be the reason?
Appreciate any feedback
Irek Rybark
RB v.6.03 Ent
Delphi 6 SP 2
The report structure is as follows
ppReport: TppReport
DataPipeline = ppDBPipelineBatch // print multiple documents (invoices)
PassSetting = psTwoPass // want to print "Page # of #"
DetailBand: ppSubReportInvoice
ppSubReportInvoice / ppChildReportInvoice
DataPipeline = ppDBPipelineInvCopy // always 2 rows per invoice
PrintBehavior = pbSection // print two (different) copies
// of the invoice
ResetPageNo = False
DetailBand: ppSubReportInvCopy
ppSubReportInvCopy / ppChildReportInvCopy
DataPipeline = ppDBPipelineLine // invoice lines
PrintBehavior = pbSection
ResetPageNo = True
HeaderBand: [Page # of #] ppSubreportHeader (pbChild)
DetailBand: [invoice line] ppSubreportInvLine (pbChild)
SummaryBand: [totals] ppSubreportTotals (pbChild)
This discussion has been closed.
Comments
You will need to use Section style Subreports to hold each copy of your
invoice and be sure the that ppSubReport.ResetPageNo property is set to
True.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com