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

printbehaviour pbRegion

edited July 2003 in Subreports
Hi,

I have a report with several subreports. The main report has no data on it,
just 2 subreports.

Main Report (NoDatabehaviour = blankPage)
- SubReport1 (NoDatabehaviour = blankReport)
- SubReport2 (NoDatabehaviour = blankReport)

The 2 subreports have printbehaviour set to pbRegioin. I had to set this
because the first subreport is landscape and the other one is portrait.
The preview and printing works fine, only I have a blank page as the first
page. I guess this is because the printbehaviour pbRegion starts the
subreport on a new page.
The main report has nothing visible on it.

How can I disable the first page of being enmpty ?
We are using Delphi 7 / RBuilder 7 Enterprise

Regards,
Wouter Devos

Comments

  • edited July 2003
    Yes, the section style subreport will always attempt to print on a new page.
    The first report should be in the title band and it should be set to be a
    child type subreport. Then place the section subreport in the detail of the
    main report. That way the first subreport will start on the first page and
    then the section subreport will print on a new page when it goes to print.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited July 2003
    Jim,

    Thanks for the help. I'll try it out in the morning.
    Will the first report print landscape too, whatever the main report has for
    the printersettings?

    Regards,
    Wouter Devos

  • edited July 2003
    Yes, the child type subreport should print based on the main report's
    printer setup.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.