Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   RAVE Scripting (https://www.delphipraxis.net/67492-rave-scripting.html)

MrSpock 24. Jun 2006 20:46

Re: RAVE Scripting
 
Hallo Thomas,

danke für deine Mühe. Ich hab das mal versucht. "Report" ist aber im Script unbekannt. Ich habe es auch einmal mit Self.Print() versucht, funktioniert aber auch nicht. Was macht denn die Funktion Print? Ich wollte ja einfach nur den Wert von CurrentPage im Script lesen. :(

StefanG 3. Jul 2006 12:53

Re: RAVE Scripting
 
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


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:41 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz