Report Parameters
?How do I get the report parameters to print in the title section of the
report? I was told to create a label called "params," but all that does
is print the word "params" on the report. :-) Any other suggestions?
I'm clueless!
--- posted by geoForum on http://delphi.newswhat.com
report? I was told to create a label called "params," but all that does
is print the word "params" on the report. :-) Any other suggestions?
I'm clueless!
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
You will need to assign the value of the text object at runtime in order to
see the parameter value in the Title band. I would suggest using the
TitleBand.BeforePrint event to access the parameter values. Something like
the following...
Note: If you are using Autosearch, you will want to access the
AutoSearchFields property of the report... (ppLabel1.Text :=
ppReport1.AutoSearchFields[0].Value;)
procedure TForm1.ppTitleBand1BeforePrint(Sender: TObject);
begin
ppLabel1.Text := ppReport1.Parameters[0].Value;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com