Anders Balslev
2007-05-10 06:06:58 UTC
Hi
BDS2006
RaveReport ver. 6.5.0
I can make a DataText field containing "Page N og M"
But I want - within an event - to get access to the actual pagenumber and
the total pages of the report
Assume following Pseudo Code in the event handler:
function DataText5_OnGetText(Self: TRaveDataText; var Value: string);
begin
if Report1.CurrentPage < Report1.TotalPages then
begin
Value := 'We are not at the last page yet';
end else
begin
Value := 'This is the lasp page';
end;
end OnGetText;
This will not work, because the compiler calims about "CurrentPage"
Any suggestions?
BDS2006
RaveReport ver. 6.5.0
I can make a DataText field containing "Page N og M"
But I want - within an event - to get access to the actual pagenumber and
the total pages of the report
Assume following Pseudo Code in the event handler:
function DataText5_OnGetText(Self: TRaveDataText; var Value: string);
begin
if Report1.CurrentPage < Report1.TotalPages then
begin
Value := 'We are not at the last page yet';
end else
begin
Value := 'This is the lasp page';
end;
end OnGetText;
This will not work, because the compiler calims about "CurrentPage"
Any suggestions?