Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
End User
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
how to save report to file?
rbuser
June 2004
edited June 2004
in
End User
Hello,
Somebody know how to save to file a report through the code?
Without showing dialog box.
Thanks
Dexter
Comments
nicocizik
June 2004
edited June 2004
Hi Dexter,
You need to use the Report.Template class to save a report to file in code.
See the example below.
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.Template.FileName := 'C:\MyReport.rtm';
ppReport1.Template.SaveToFile;
end;
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This discussion has been closed.
Comments
You need to use the Report.Template class to save a report to file in code.
See the example below.
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.Template.FileName := 'C:\MyReport.rtm';
ppReport1.Template.SaveToFile;
end;
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com