Change page number at runtime

Hello,

I want to reset page number to "1" each time my GroupHeader is printed (FormNewPage property is true).

Is it possible in the OnBeforePrintEvent ? How ?

Thanks in advance !

Sylvain.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:32PM
    Hi you can't use fr's page# variable
    create your own variable and set it to 1 in group header obp event
    ie.
    mypagenum := 1;
    and use it to display page number in a memo.
    you will have to do your own inc(mypagenum) when needed
    the same goes for tracking totalpages for group condition.
    regards ;)
  • edited 3:32PM
    It works, Thanks !

    ;)

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.