Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Displaying RTM in ppViewer (?)

edited June 2007 in General
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

Comments

  • edited June 2007
    Hi Patrick,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2007
    Nico,

    Thanks...we will give this a whirl.

    Patrick

This discussion has been closed.