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

passing parameters

edited January 2005 in General
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.

Comments

  • edited January 2005
    Hi F.M.

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005
    Does it meen that I must have enterprise Edition to pass parameters between
    my application and the report ?

  • edited January 2005
    Hi FM,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2005
    F.M.


    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
This discussion has been closed.