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

Template not prompting to save when edited

edited June 2003 in General
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

Comments

This discussion has been closed.