Page# numbering
Hi to everyone
I have written a simple Onbefore event with code like
procedure PagememoOnBeforePrint(Sender: TfrxComponent);
begin
if GETLANGUAGE=0 then // a user defined function
Pagememo.text:=format('Σελίς %d από %d',[<Page#>,<TotalPages#>]) // Greek transalation
else
Pagememo.text:=format('Page %d of %d',[<Page#>,<TotalPages#>]) // English translation
end;
when the report is loaded the pagemo prints Page 1 of 0 or Σελίς 1 από 0
when no event assigned like Page [Page#] of [TotalPages#] on the page footer band,
prints Page 1 of 1 (exactly the total pages number)
Thanks Vagelis
I have written a simple Onbefore event with code like
procedure PagememoOnBeforePrint(Sender: TfrxComponent);
begin
if GETLANGUAGE=0 then // a user defined function
Pagememo.text:=format('Σελίς %d από %d',[<Page#>,<TotalPages#>]) // Greek transalation
else
Pagememo.text:=format('Page %d of %d',[<Page#>,<TotalPages#>]) // English translation
end;
when the report is loaded the pagemo prints Page 1 of 0 or Σελίς 1 από 0
when no event assigned like Page [Page#] of [TotalPages#] on the page footer band,
prints Page 1 of 1 (exactly the total pages number)
Thanks Vagelis
Comments
When DoublePass is set, the report will be printed twice... so you need to be careful about what you do in the code.
This is the code that I use to do the page count. I put it on the page header :
Thank you for your information
* I have remark that a vertical line with property baRight on band its not working after installation of the last version (top is remaing 0.50 and not 0)
Can you reproduce this
Thanks Vagelis Bekyros