I don't know whether that is the easiest way, but you could define a category and then a variable in the Report, e.g. Category "FromDelphi", Variable "RepName". From Delphi you then use the code:
frxRepRechnung.LoadFromFile('Rechnung.fr3');
 frxRepRechnung.Variables['RepName'] := ''''+frxRepRechnung.FileName+'''';
 frxRepRechnung.ShowReport;
In the report you can use the report variable and show it wherever you want.
IMHO:
Would also need to test the report to make sure the variable is there. This does not seem like best practice. I don't think Delphi should have to know or deal with variables in a report. Not the best encapsulation.
The filename of the report should be a property of the report.
How can I suggest that they add this property to the product?
Comments
I don't know whether that is the easiest way, but you could define a category and then a variable in the Report, e.g. Category "FromDelphi", Variable "RepName". From Delphi you then use the code:
In the report you can use the report variable and show it wherever you want.
IMHO:
Would also need to test the report to make sure the variable is there. This does not seem like best practice. I don't think Delphi should have to know or deal with variables in a report. Not the best encapsulation.
The filename of the report should be a property of the report.
How can I suggest that they add this property to the product?