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

tppReport components

edited August 2001 in General
I need to print a report 5 different ways. Right now I have 5 TppReport
components on the report form. Based on what is selected, I call
ppReportNumber.Print. I have a lot of reports done this way. I save the 5
reports as templates.
I try to use 1 report component and load different templates at runtime. I
don't think it works though.

Is it necessary to have 5 components?
Does it add a lot of overhead to the program?
Is there a better way to handle it?

Thank you

Comments

  • edited August 2001
    > I try to use 1 report component and load different templates at runtime.
    I

    No.


    No. You could test this. Add one TppReport components. Compile. Check size.
    Add 100 TppReport components. Compile. Check Size. Little difference. It
    does take up more resources--but nothing to worry about.


    No. Load the templates at run time into the same report. If ther user can
    select a set of reports (eg you have 5 different reports and they want 1, 2,
    & 5) then load each one at run time in to a TppSubReport and set it as a
    pbSection. If you need some sample code, let me know and I will post it.

    Ed Dressel
    Team DM
  • edited August 2001
    FWIW, I just posted some sampel code in the sub-reports newsgroup.

    Ed Dressel
    Team DM
This discussion has been closed.