Displaying RTM in ppViewer (?)
We have a listbox, which displays RTM file names. When the user dbl-clks a
filename in the listbox, we want to display the report in a ppViewer
component located on the same form.
Has anyone done this?
Does anyone have example source that demonstrates how to load/display the
RTM file in the ppViewer?
Thanks, Patrick
filename in the listbox, we want to display the report in a ppViewer
component located on the same form.
Has anyone done this?
Does anyone have example source that demonstrates how to load/display the
RTM file in the ppViewer?
Thanks, Patrick
This discussion has been closed.
Comments
Take a look at the TppTemplate help topic in the RBuilder help.
You are going to want to load the template using the LoadFromFile or
LoadFromDatabase routine, then call PrintToDevices on the report to show it
in the viewer.
Report.Template.FileName := 'myFile.rtm';
Report.Template.LoadFromFile;
Report.PrintToDevices;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks...we will give this a whirl.
Patrick