Einzelnen Beitrag anzeigen

StefanG

Registriert seit: 23. Feb 2006
74 Beiträge
 
#12

Re: RAVE Scripting

  Alt 3. Jul 2006, 13:53
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
  Mit Zitat antworten Zitat