Composite report without fr3 files...
Hello,
I have need to save several raports to one pdf file. So, as I understand this, solution is composite reporing. Solution has only one exe file, so no individual fr3 files should be used. Before XE2 update I was using Rave, but found Fast Reports as better solution is long run.
Now I have separate FrxReport components for evey raport. When using composite reporting, all reports should be loaded into one FrxReport component. Is there any way to load raports with out writting them to disk? One solution I have found is to use SaveToFile functions to save raport to temp file and then load raports to one common FrxReport component one by one, but is there any other solution to copy report "in memory" into one what would be used to composite reporting as described in manual?
I found SaveToStream functions but that seem to be used only for prepared reports (at least I didn't find way to get it work).
Have I tried to solve this kind of issue from wrong way or is my solution only way to do composite reporting with out using separate fr3 files?
I have need to save several raports to one pdf file. So, as I understand this, solution is composite reporing. Solution has only one exe file, so no individual fr3 files should be used. Before XE2 update I was using Rave, but found Fast Reports as better solution is long run.
Now I have separate FrxReport components for evey raport. When using composite reporting, all reports should be loaded into one FrxReport component. Is there any way to load raports with out writting them to disk? One solution I have found is to use SaveToFile functions to save raport to temp file and then load raports to one common FrxReport component one by one, but is there any other solution to copy report "in memory" into one what would be used to composite reporting as described in manual?
I found SaveToStream functions but that seem to be used only for prepared reports (at least I didn't find way to get it work).
Have I tried to solve this kind of issue from wrong way or is my solution only way to do composite reporting with out using separate fr3 files?
Comments
frxReport1.PrepareReport;
frxReport2.PrepareReport;
frxReport1.PreviewPages.AddFrom(frxReport2);
frxReport1.ShowPreparedReport;
Thanks! Solved! That works like charm!