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

help to make report default

edited August 2005 in Component Writing
hi...

I have developer one report default, into report i write procedures,
functions, header's and footer's, for what outhers reports be children of
default.

what is the best form of make this ?

[]'s

Thanks

Ciro

Comments

  • edited August 2005
    Hi,

    My recommendation would be to save this default report as a report template
    file (.rtm) using the Report.Template property settings. You can use RAP to
    keep all the report procedures local to the template. Then whenever you
    load a new report, you can first load the default template file first and
    have that information waiting for you.

    Loading a template...

    Report.Template.FileName := 'c:\Default.rtm';
    Report.Template.LoadFromFile;
    Report.Print;

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    Hi Nico.

    For new report developer in designer/runtime(end user) time this work ?
    Why today i developer the basic report and sabe in component TppReport,
    when end user modify the basic report and save i verify if exist one report
    saved
    for end user, if exist using the function Template.LoadFromFile.

    []'s

    Ciro


  • edited August 2005
    Hi Ciro,

    Sorry, I'm having a bit of trouble understanding what you need. If you set
    the SaveAsTemplate property of the TppReport object to True, ReportBuilder
    will ask your user if he/she wants to save the report if the original
    template has been changed.

    --
    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.