Home Subreports
New Blog Posts: Merging Reports - Part 1 and Part 2

Manually Print a SubReport

edited January 2006 in Subreports
What is the use of TppSubReport.Print method?

I have tried to use it on the StartPage event,
ppSubReport3.Print(Report.Engine.Page), and nothing worked...

I did a subreport with a db field on its header and it only prints on the
first page of my reports, and I want it to print on all pages.

Report
SubReport1
SubReport2 | SubReport3

SubReport1 is on DetailBand
SubReport2 and SubReport3 are in Header of SubReport1
SubReport2 has all detail data from the Report
SubReport3 has a DB Field on its Header, a memo field, to show an
Observation text.

SubReport3 only prints on first page...

Thanks

Comments

  • edited January 2006

    1. The method subreport.Print is for internal use only. Do not call this
    method

    2. A subreport set to PrintBehavior of pbChild prints on the parent's page
    space - like a memo. As such, it does not print a Header band. As an
    alternative use Title or GroupHeader.

    3. You might try creating a group for subreport 2. Define the group on a
    field or label that never breaks. Set the group to reprint header on
    subsequent pages. Then place subreport3 in the group header band of
    subreport2. With that configuration subreport3 will print on each page
    generated by subreport2.





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.