Template not prompting to save when edited
I want the prompt to save a template if it was edited in the Report
designer, to come up but for some reason it is not.
In my program i have already set up a report which uses a template and when
this template is loaded it shows the file path as part of the caption and if
i edit this report i do get the built in prompt coming up.
I am now trying to do the same thing with a different dataset on a different
form, but i can't get it to work as above.
I set the template file name for the report and call the
Template.LoadFromFile function and when the report is displayed in the
Designer i do not get the template displaying as part of the caption and i
also do not get the Prompt. I know i have loaded the template as i can see
it is the correct one. if i manually hit the designer save button then any
changes are saved correctly so i know this is working ok.
I have checked all the properties on both forms to see if i have forgotten
to set something but i can't see anything. (unless i have missed it of
course).
I know i can call the 'Template.ShowFileSaveDialog' but i would rather not
have the SaveAsDialog in case they save the template file somewhere i do not
want them to.
Any idea what i am doing wrong please ?
Many thanks for any help given
John
designer, to come up but for some reason it is not.
In my program i have already set up a report which uses a template and when
this template is loaded it shows the file path as part of the caption and if
i edit this report i do get the built in prompt coming up.
I am now trying to do the same thing with a different dataset on a different
form, but i can't get it to work as above.
I set the template file name for the report and call the
Template.LoadFromFile function and when the report is displayed in the
Designer i do not get the template displaying as part of the caption and i
also do not get the Prompt. I know i have loaded the template as i can see
it is the correct one. if i manually hit the designer save button then any
changes are saved correctly so i know this is working ok.
I have checked all the properties on both forms to see if i have forgotten
to set something but i can't see anything. (unless i have missed it of
course).
I know i can call the 'Template.ShowFileSaveDialog' but i would rather not
have the SaveAsDialog in case they save the template file somewhere i do not
want them to.
Any idea what i am doing wrong please ?
Many thanks for any help given
John
This discussion has been closed.
Comments
Below is an example of creating a custom save dialog once the template has
been modified in the end-user designer.
http://www.digital-metaphors.com/tips/CustomSaveDialog.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
another ?
John
and
i
see
any
forgotten
not
Which version of ReportBuilder are you using? There was a bug fix in
ReportBuilder 7 that prevented the modified property getting set to True
once you launch the designer without loading a template. The only reason
the save dialog would not show up is if the modified property is set to
false.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks
John