2 Page Report

rphrph
edited 10:58AM 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 10:58AM
    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 10:58AM
    Mick.pl wrote: »
    Mick.pl 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.

    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 10:58AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.