Saving the report template before closing the designer
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Cheers
Shahine