How could I get the filename of the report inside the report

GoranPGoranP Sweden
edited 2:40AM in FastReport 4.0
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 ...

Comments

  • gpigpi
    edited 2:40AM
    Try to use custom function
  • Mark ElderMark Elder SD, USA
    edited 2:40AM
    What about setting a Report Variable when you load the report definition. Something like this:

    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.