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

Saving the report template before closing the designer

edited December 2003 in General
Hi..

How can I check to see if the Report.Template has been saved/changed or not?
I am saving the template on the "OnClose" event of the Designer using:

ppReport1.Template.SaveToDatabase;

But I need to know if the user has already saved the report in the designer
so there won't be 2 copies of the report template.

Many Thanks

Shahine.

Comments

  • edited December 2003
    Hi Shahine,

    You might try setting the Report.SaveAsTemplate property to True. This way,
    if the report has been changed and the user tries to close, it will prompt
    the user to save or quit. Then depending on how your template settings are
    configured, it will allow that user to either save the template to your
    database or quit.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2004
    Thanks

    Cheers

    Shahine

This discussion has been closed.