Access page number from C++ Builder / Delphi

Sorry, posted in 2.xx forums by error

I would like to acces the "page" and "page#" from C++ Builder in order to:
Before start a report, tell from what page I want to start to number the report
Once the report is finished, to know what is the last page number in order to use it for another report.

One thing like:

Report1->...->Page=MyPageNumber;
Report1->PrepareReport();
MyPageNumber=Report1->...->Page;

Report2->...->Page=MyPageNumber;
Report2->PrepareReport();
MyPageNumber= Report2->...->Page;

Thanks in advance. Ramon Arguelles

Comments

  • gpigpi
    edited 11:34AM
    Try to use
    frxReport1->Variables->Variables["MyPageNumber"] = MyPageNumber;
    Report1->PrepareReport();
    MyPageNumber = MyPageNumber + frxReport1->PreviewPages->Count;
    frxReport2->Variables->Variables["MyPageNumber"] = MyPageNumber;
    Report2->PrepareReport();
    
    and use [<Page> + <MyPageNumber>] in TfrxMemoView
  • edited 11:34AM
    It works perfectly !!!

    Thank you very much

    Best Regards, Ramon Arguelles

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.