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

Reports from rtm-Files

edited November 2003 in General
Is it possible to load a report from a rtm-file at runtime to a TppReport
Component or should I use several TppReport Components?

I have a TppReport Component and about 20 rtm-Files.
When the user had selected an item in a ListBox and clicks on a
"Open"-Button the rtm-File should be loaded to disply a report.

If I do like this:

MyReport.Template.FileName:= ThePathToRTMFile;
MyReport.Print;

it displays the last (on designtime) opened Report.

Would by nice if somebody can help,

by the way...we'll buy it...
Best ReportTool ever seen, I thought I'd lost my mind by (trying ...to) work
with Rave :-)

Comments

  • edited November 2003
    This should work:

    MyReport.Template.FileName:= ThePathToRTMFile;
    MyReport.Template.LoadFromFile;
    MyReport.Print;



This discussion has been closed.