How could I get the filename of the report inside the report
GoranP
Sweden
Inside my reports I would like to get the filename from the report. This will I use to put into a a memo inte the report foot.
I have been reading the manuals and searched through the forum but not found anything.
Does anybody has an idea how to solve it ??
The reason for this, instead of using a design name of the report, is if you use the SaveAs inside the designer, I want to be able to see on a printout whats the filename was ...
I have been reading the manuals and searched through the forum but not found anything.
Does anybody has an idea how to solve it ??
The reason for this, instead of using a design name of the report, is if you use the SaveAs inside the designer, I want to be able to see on a printout whats the filename was ...
Comments
frxReport.Variables := QuotedStr(frxReport.FileName);
When I tried this I discovered that report variables are expressions that will be evaluated. So if you don't quote the string you will get an error when it tries to parse the value as code to execute.
Disclaimer - I am brand new to fast reports and this was my first attempt to use variables.