subreport of fixed size in each page
I want to have a subreport with fixed size on each page, but I find that
only one page is printed even the detail clientdataset contain many records,
so How to Print a fixed size subreport on each page.
only one page is printed even the detail clientdataset contain many records,
so How to Print a fixed size subreport on each page.
This discussion has been closed.
Comments
Try setting SubReport.TraverseAllData to True.
The following is from the RBuilder.hlp topic for
TppSubReport.TraverseAllData
This property applies to subreports that have the PrintBehavior set to
pbFixed. When set to True, this property indicates that the subreport will
continue to print (print on additional pages in the same exact position)
until all data is traversed. By default the fixed type subreport truncates
the data (i.e. prints once per band, but does not overflow if all data can't
fit in the space of the subreport).
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
for example, if not using traversealldata and the subreport height is 70mm
(for example), then the 70mm subreport is filled with data although it is
not enought to show all data in detail clientdataset.
But if I use traversealldata, then no data is filled in the subreport and
the detail band beforeprint does not run.
If I set the height of subreport larger, then some data is printed in the
subreport but the height is much less than the height of subreport.
for example, if the height of subreport is 100mm, then the data printed in
the subreport is much less than 100mm.
So why is this problem and what is the solution?
Please create a simple, minimal Delphi project that demonstrates what you
are trying to accomplish. Use standard Delphi components and the DBDemos
data. E-mail in zip format to support@digital-metaphors.com and we can check
it out here.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com