Set Report Parameters Value 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
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
This discussion has been closed.
Comments
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