Having Variable problems
Hi,
I want to be able to pass in a start date and end date for use in the report title, but I am having difficulties in getting it to work.
I looked over the fAQ and the help file and none of the variable stuff seems to work for me.
I have on the designer a object that has the following text:
Overdue Report from [startdate] to [enddate]
The user selects the startdate and enddate from a dialog before the report is shown, and then in my code I have the following:
report_queries_dm.thereport.Dictionary.Variables:= dateTostr(startdate.date);
but this does not work, I just get some garbage back in the report.
I also tried the insert method and that did not work either.
I just want to pass in some static data for use in the report title.
Thanks,
T
I want to be able to pass in a start date and end date for use in the report title, but I am having difficulties in getting it to work.
I looked over the fAQ and the help file and none of the variable stuff seems to work for me.
I have on the designer a object that has the following text:
Overdue Report from [startdate] to [enddate]
The user selects the startdate and enddate from a dialog before the report is shown, and then in my code I have the following:
report_queries_dm.thereport.Dictionary.Variables:= dateTostr(startdate.date);
but this does not work, I just get some garbage back in the report.
I also tried the insert method and that did not work either.
I just want to pass in some static data for use in the report title.
Thanks,
T
Comments
''''+dateTostr(startdate.date)+'''';
regards