Hi All, I'm totally new to Fast Reports and want to ask do I need to use frxReport and frxDBdataset components etc for each report in a project having many reports?
Unless you are building composite reports you could use 1 tfrxreport component only.
the number of tfrxdbdataset components will depend upon how you are connecting to data
take a look at the main demo you will find the frxdbdatasets in the data module.
Unless you are building composite reports you could use 1 tfrxreport component only.
the number of tfrxdbdataset components will depend upon how you are connecting to data
take a look at the main demo you will find the frxdbdatasets in the data module.
Thank you for your reply Gordk. No I am not wanting to build a composite report. These are individual reports to be printed at different times.
If the report is embedded in the frxReport component then you need one frxReport for each report.
If you use LoadFromFile() or LoadFromStream() then you could use one frxReport only, but each loading operation will destroy what was loaded before (unless it is a composite report) including the embedded report, and including any variables.
If you use LoadFromFile() or LoadFromStream() you will need a method to create the report's layout so that it can be saved to file or stream. How and where that is done is up to you.
Comments
the number of tfrxdbdataset components will depend upon how you are connecting to data
take a look at the main demo you will find the frxdbdatasets in the data module.
If you use LoadFromFile() or LoadFromStream() then you could use one frxReport only, but each loading operation will destroy what was loaded before (unless it is a composite report) including the embedded report, and including any variables.
If you use LoadFromFile() or LoadFromStream() you will need a method to create the report's layout so that it can be saved to file or stream. How and where that is done is up to you.