I have created several reports and all are saved in the rtm files. Is there any way I could print them all at once without printing one at a time? Thanks
There is no built-in batch printing however it would be fairly easy to add each template (.rtm) file name to a TStringList then loop through each name and print each report.
for liIndex := 0 to ReportsList.Count - 1 do begin Report.Template.FileName := ReportsList[liIndex]; Report.Template.LoadFromFile; Report.Print; end;
If these individual reports are always printed together then you can create a container report and have each of the individual reports as subreports. See the Independent Data Sources section in the Subreports topic in rbWiki.
Comments
There is no built-in batch printing however it would be fairly easy to add
each template (.rtm) file name to a TStringList then loop through each name
and print each report.
for liIndex := 0 to ReportsList.Count - 1 do
begin
Report.Template.FileName := ReportsList[liIndex];
Report.Template.LoadFromFile;
Report.Print;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
If these individual reports are always printed together then you can create
a container report and have each of the individual reports as subreports.
See the Independent Data Sources section in the Subreports topic in rbWiki.
http://www.digital-metaphors.com:8080/Design/Features/Subreports
You're only other solution is the one Nico outlined
Scott