2 Page Report

rphrph
edited 7:27PM in FastReport 4.0
Hi, i have a report that had one page with a Master Data Band and several child bands. It work fine.
Now i added a second page that it will be printed with some of the same information of the Master Data Band of Page 1. In order to do that i added a Detail Data Band in Page 2 that points to the same data set as MasterDataBand of Page1.
When i run the report It print first all of the first pages (Page 1) and after that all of the second pages (Page2).
The problem is that i need to print Page1 then Page2 (of the same record) and then Page1 and Page2 (of the second record). I already set the Collate property to True and still didn't work
Can anyone give me a tip on how to solve this problem.
Thank's in advance for your help.

Comments

  • edited 7:27PM
    rph wrote: »
    The problem is that i need to print Page1 then Page2 (of the same record) and then Page1 and Page2 (of the second record). I already set the Collate property to True and still didn't work
    - Add Childband to the last visible band on Page1 (but NOT PageFooter),
    - put a SubReport on this Childband,
    - set StartNewPage property of the Child to true,
    - fill subreport page with Objects from Page2,
    - don't connect bands on subreport page with your DataSet from page1, use virtual rows (count = 1) instead,
    - delete Page2.

  • rphrph
    edited 7:27PM
    Mick.pl wrote: »
    - Add Childband to the last visible band on Page1 (but NOT PageFooter),
    - put a SubReport on this Childband,
    - set StartNewPage property of the Child to true,
    - fill subreport page with Objects from Page2,
    - don't connect bands on subreport page with your DataSet from page1, use virtual rows (count = 1) instead,
    - delete Page2.

    Hi again, thanks for your tip. Following these steps it already displays a white page. But the part where i have to use virtual rows i don't understandit How do you define the virtual rows ?
  • gpigpi
    edited 7:27PM
    wrote:
    How do you define the virtual rows ?
    Use for example MasterData1.RowCount = 1
    Also you can assign TfrxReport.Dataset with your dataset and place memos without bands on Page1, Page2

Leave a Comment