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

Two Page Report

edited May 2007 in General
Hi
I am developing a two page report with RBPro 10.04 under Delphi 6
Professional.
The two pages show nearly exactly the same information except a single label
on the second page has a different caption.
On the main report component, in the detail band with no title, header or
footers, I have added two sub reports separated by a page break component. I
developed everything on the first sub report and then copied + pasted all
controls from the first sub report to the second.
There is one label's caption that is different on the second sub report.
When I print the report out, the second page seems to print out slightly
lower that the first page, so its not an "exact" copy.
Is there any settings I need to look at to rectify this, or is this just the
way it is. It is not too much of a problem but I would like to get the pages
looking as identical as possible.
TIA
Dominic

Comments

  • edited May 2007
    Hi Dominic,

    Instead of using a PageBreak, try setting each subreport to a Section style
    subreport and remove the PageBreak component. This will allow each
    subreport automatically take up it's own page.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Hi Nico
    I have just tried this and the issue with the top offset has been resolved
    but another problem has arised:
    I always set both the PrinterSetup.DocumentName and ReportTitle properties
    at run time.
    I have a ppSystemVariable control at the top of each sub report set to
    vtDocumentName.
    Only the first sub report's DocumentName is being updated at run time. The
    other is being left at whatever it is set to in design mode.
    Any reason for this?
    Regards
    Dominic
  • edited May 2007
    Hi Dominic,

    If you would like each section subreport to use its own PrinterSetup object,
    you need to be sure the Subreport.ParentPrinterSetup property is set to
    False. Otherwise each subreport will use the main report's printer setup
    settings when generating/printing a report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Perfect...exactly what I wanted.
    Thanks for all your help Nico.

This discussion has been closed.