Printing Page Number on Page1OnBeforePrint

edited 7:20AM in FastReport 4.0
hi ,
in my report i create a tfrxPageFooter with some TfrxMemoView on it in script in Page1OnBeforePrint event ,
just i have trouble printing page numbers and total pagenumbers on this tfrxPageFooter ,
probably because in Page1OnBeforePrint the page and totalpages vars are not set.

D5 , dataset report , i tried with DoublePass = true .

thanks

Mau

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:20AM
    try creating the objects in either the onstart report event or in the empty begin end. block of the code page.
  • edited 7:20AM
    thank for answer ,
    the <page> var in the empty begin end. block is still 0 ,

    for the 'onStart' event of the report you mean onBeforePrint ? ,
    i didn't found onStart event on the TfrxReport Component .


    Mau
  • edited 7:20AM
    solved .....

    right --> MemoPage.text := '[page]'

    wrong --> MemoPage.memo.Add(inttostr(<page>))

    [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Mau[/img]

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.