When you say "in a report" do you mean from the Code tab in RAP? If so, you can use report parameters to access Delphi values within RAP code. See the following example/article.
I am looking to bring a value from a Delphi component/variable to display on a report as output. A value might be the Text property of a component or a variable calculated in Delphi code prior to launching the report.
Displaying values inside reports is very simple in Delphi code. For instance you could place a TppLabel on a report and use the following code to show the text entered into an EditBox on a form. The best event to do this would be the Band.BeforePrint.
Label1.Caption := Edit1.Text;
If however you need to place this code into RAP (the built-in reporting language), you will need to use parameters like I described in my initial post.
Comments
When you say "in a report" do you mean from the Code tab in RAP? If so, you
can use report parameters to access Delphi values within RAP code. See the
following example/article.
http://www.digital-metaphors.com/rbWiki/End-User/Fundamentals/Report_Parameter_Fundamentals
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
a report as output. A value might be the Text property of a component or a
variable calculated in Delphi code prior to launching the report.
Displaying values inside reports is very simple in Delphi code. For
instance you could place a TppLabel on a report and use the following code
to show the text entered into an EditBox on a form. The best event to do
this would be the Band.BeforePrint.
Label1.Caption := Edit1.Text;
If however you need to place this code into RAP (the built-in reporting
language), you will need to use parameters like I described in my initial
post.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com