Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Report Parameters

edited April 2006 in End User
?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

Comments

  • edited April 2006
    Hi Patty,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.