Report.SaveAsTemplate broken when set in Designer OnActivate event in RB 20
In the Designer OnActivate event, I have the following line: ppRepFormsLetters.SaveAsTemplate:=true;
For many years now, when closing the designer, this used to make all reports prompt to save changes if any modifications were done. Now this no longer works. The SaveAsTemplate property does not get set. I would like to get the save changes prompt back. Is there a new place to set this property when the report loads into the designer?
For many years now, when closing the designer, this used to make all reports prompt to save changes if any modifications were done. Now this no longer works. The SaveAsTemplate property does not get set. I would like to get the save changes prompt back. Is there a new place to set this property when the report loads into the designer?
Comments
This works as in prior versions. Report.SaveAsTemplate is saved as part of the report definition (like all published properties).
You can implement the Report.Template.OnLoadEnd event to set default values, such SaveAsTemplate True. This is a public event, therefore the event-handler must be assigned in code. See the Demos\EndUser\Report Explorer demo for an example. (Demos are installed to Public Documents\RBuilder\Delphi x\Demos)
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com