Double pass and first page

Report that uses [TotalPages] system memo. To make that work I need to turn on the double pass option. But I find when I set some values on the first page of the report it is showing values from the last record in the dataset. All other pages are correct. If I turn off double pass then the [TotalPages] does not work but my values on the first page are now correct.

Do I need to reset the dataset to the first record before printing? If so where would I do that to make it work properly.

Thanks, Wayne

Comments

  • gpigpi
    edited 8:33PM
    Init your values in TfrxReportPage.OnBeforePrint event
  • edited 8:33PM
    I use a OBP event of a ReportTitle band to initialise values.
    This will be executed on pass 1 and pass 2.

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.