Report.Print funktioniert nur bei Komponenten, die das Objekt "Report" beim Event auch übergeben, so z.B. bei der Section.
Hier mal eine Antwort die ich per Mail bekommen habe :
Zitat:
Report parameters are a bit tricky. The TotalPages for example when used
doesn't have an actual value but simply places a place holder in the file.
Then when the report is completed this place holder is updated with the
actual value. This value isn't known, obviously, until the report has
completed.
If you need to print data based on the current page then this can be done
through a TRaveSection component as follows.
function Section1_OnPrint(Self: TRaveSection; Report: TBaseReport);
begin
if Report.CurrentPage = 1 then
Report.Print('Title Page');
else
Report.Print('Report Page');
end;
end OnPrint;
Eldon Lewis
Nevrona Designs