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

2 A4 subreports in a A3 reports

edited March 2003 in RAP
Hi,

I want to do that by code. The 2 A4 subreports are LoadFromFile. I arrive to
do that but the firt subReport is in first page and the second subReport is
in second page.

here the schema I want to realize :


Here my Report A3
------------------------------
| | | | |
| | | | |
| | | | |
| | A4 subrpt | | A4 subrpt2 |
| | | | |
| | | | |
| | | | |
| | | | |
------------------------------

How to do that by code ? I must use the columns in layout ?

And I've seen the example Demo dm0121.pas for the printer setup, can I
configure the layout by code too, because in this example, we can't do that.

Thanx

bye

Comments

  • edited March 2003
    You have to set the Subreport.ParentPrinterSetup to false. Then configure
    the individual subreport's PrinterSetup to be the A4 paper size. We have
    tested this configuration and it will work. You should be using
    Subreport.PrintBehavior = pbSection to get the subreports to print on
    individual pages. You can test this as well by configuring our main report
    demo project report #51-52 to print the subreports using different
    orientations configured in the printer setup.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.