passing parameters
Hi,
I would like to give my ppReport string parameter to write in a label in the
header band.
I create via parametersEditor a parameter, and assign it a value in my
DELPHI program.
How can I affect this value to a Tpplabel or TppVariable or something else
?
I tried with a TppVariable by assigning the calcComponent property but
nothing appears on my report ...
any idea ?
I'm working with Report Builder 9.01 and Delphi 7
thank you
F.M.
I would like to give my ppReport string parameter to write in a label in the
header band.
I create via parametersEditor a parameter, and assign it a value in my
DELPHI program.
How can I affect this value to a Tpplabel or TppVariable or something else
?
I tried with a TppVariable by assigning the calcComponent property but
nothing appears on my report ...
any idea ?
I'm working with Report Builder 9.01 and Delphi 7
thank you
F.M.
This discussion has been closed.
Comments
Parameters are generally used to get values into RAP from your Delphi app.
Once you set the parameters in Delphi, you can access them in RAP using the
Report.Parameters[] property... Something like the following...
lsCustNo := Report.Parameters['CustomerNumber'];
This can also be done in Delphi if you want.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
my application and the report ?
No, you do not need Enterprise to use paramters but this is the most logical
use of them inside a report.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
In my Report Builder interface unit, I have the following procedure:
procedure SetTextField(Report : TppReport; ObjName, aString: String);
var
Obj : TppPrintable;
begin
Obj := TppPrintable(Report.FindUserObject(ObjName));
if Obj <> nil then Obj.Text := aString;
end;
This finds the object on the report with the specified name and populates
the text property of the object if it finds it. So as long as you know the
name of the object, you can change the text that it displays.
--
---------------------------------------
Terry Swiers
Millennium Software, LLC
http://www.1000years.com
http://www.atrex.com
Atrex Inventory Control/POS -
Big business features without spending big business bucks!
Atrex Electronic Support Options:
Atrex Knowledgebase: http://www.atrex.com/atrexkb.cfm
Email: mailto:support@atrex.com