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

Set Report Parameters Value in RAP

edited October 2005 in RAP
Hi,

In the RAP Calc Editor, I have this bit of code :

Report.Parameters['DateDebut'] := dtStartDate; // Holds a DateTime value
Report.Parameters['DateFin'] := dtEndDate; // Holds a DateTime value

I know that my dtStartDate and dtEndDate are non-zero, but when I try to
read them from Delphi using ppReport.Parameters['DateDebut'].Value or
AsString, it returns the wrong date "1899-12-30". Is it possible to set the
Report's Parameters in RAP or they are read-only ?

David

Comments

  • edited October 2005

    That syntax provides read-only access to the values. To set a value use the
    following:

    Report.Parameters.Items['paramName'].Value := CurrentDate;


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.