Home Subreports

subreport of fixed size in each page

edited March 2004 in Subreports
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.

Comments

  • edited March 2004

    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
  • edited March 2004
    I have try subreport.traverseAlldata, but some very strange result.
    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?
  • edited March 2004

    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
This discussion has been closed.