Variable from Main Form in Report
Hello,
I have a small delphi application that reads some values from an Ini-File.
Now I need to submit these values as variables to the Report to place it in the Title or to use it to calculate some values from a dataset.
The general question is how to submit values from the main application to the report if they are not stored in DataSets.
Ho do I do this ?
I didn't find anything about this in the "small" documentation und also nothing in this forum.
Anyone can help me ?
Holger
I have a small delphi application that reads some values from an Ini-File.
Now I need to submit these values as variables to the Report to place it in the Title or to use it to calculate some values from a dataset.
The general question is how to submit values from the main application to the report if they are not stored in DataSets.
Ho do I do this ?
I didn't find anything about this in the "small" documentation und also nothing in this forum.
Anyone can help me ?
Holger
Comments
1. you can use direct access to the FastReport components:
2. you can use variables: In the report menu: "Report" - "Variables". There you can create categories (you don't have to) and variables. From MainForm you can set the value with:
Lemmy
thanks a lot for your reply and the solution of my problem.
I think I can buy FR now, because it fits all my needs...
Holger
I??? am using Borland C ++ v6. My basic problem is the same as Holger's.
I tried the following code but I can't get it to work.
btw. I?? am thinking about buying FR3, but are there any example that supports C++?.
Help
Peter
It works!!
please!