PPViewer and exporting
Hi All.
I want to create a custom report viewer, which looks easy enough with the
ppViewer control, but what I want ot be able to do is have buttons on the
form (sorry I mean the toolbar that I will put on the form) that will export
the report to what ever format, i.e. HTML, EXCEL etc. etc. using the Waler
Extra Devices controls..or whatever they are called.
My understand is....and is prob. wrong....that I need to rerun the report to
make the report export out.
i.e.
//make it show in the ppViewer
ppReport1.PrintToDevices;
//press the export to HTML button
ppReport1.AllowPrintToFile :=true;
ppReport1.DeviceType := 'HTMLFile';
ppReport1.print;
Is my understanding right? or is it wrong ?
Thanks, Jeremy
I want to create a custom report viewer, which looks easy enough with the
ppViewer control, but what I want ot be able to do is have buttons on the
form (sorry I mean the toolbar that I will put on the form) that will export
the report to what ever format, i.e. HTML, EXCEL etc. etc. using the Waler
Extra Devices controls..or whatever they are called.
My understand is....and is prob. wrong....that I need to rerun the report to
make the report export out.
i.e.
//make it show in the ppViewer
ppReport1.PrintToDevices;
//press the export to HTML button
ppReport1.AllowPrintToFile :=true;
ppReport1.DeviceType := 'HTMLFile';
ppReport1.print;
Is my understanding right? or is it wrong ?
Thanks, Jeremy
This discussion has been closed.
Comments
I am a bit unclear what the problem is. Are you failing to see the report
in the TppViewer component or is the report not printing to HTML file? From
what you have described, this should work fine.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com