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

how to please?

edited October 2004 in General
Got my upgrade version many thanks.


1. How do I load a different report at runtime. ie. ppreport1.filename :=
'c:\another1.rtm'

2. I have a report that has an image on the page. I step through a query
select the data and find the site number( eg89) I then convert 89 to
c:\somewhere\89.jpg . This then loads the image and prints one report at
each step. What I need to do is collate all the reports and print them all
together with page1/34 2/34 etc.


Brilliant product keep up the good work.


SteveW

Comments

  • edited October 2004
    Hi Steve,

    1. You need to use the TppTemplate object to load a report template into
    the report object. Something like the following...

    ppReport.Template.FileName := 'c:\another1.rtm';
    ppReport.Template.LoadFromFile;
    ppReport.Print;

    2. I'm unclear why each time the data changes you are creating a new
    report. Why not simply create a group inside your main report that breaks
    on the image field with New Page set to True? This will print one image per
    page and the page numbering will be taken care of.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.