Word 2003模板-文档保存
我们有一个 word 2003 模板,用作系统配置表的基础。整个事情都是基于表单字段,然后模板被锁定。要编写新文档,我们双击模板,填写表单字段,保存并开始。 我遇到的问题是,当完成“doc”文件的写入并关闭或保存时,我总是会看到一个对话框,询问我是否也想保存对模板的更改。即使我只是双击模板“点”文件,以便打开基于此的空白“doc”文件,然后立即关闭该文档,我仍然会收到保存模板查询。 无论如何,我是否可以摆脱它,因为它对每个使用该模板的人来说都非常烦人。
非常感谢
进一步说明:
我刚刚打开了 Word 2003,但没有打开任何文档或模板。我使用文件打开并打开模板。一旦它打开,我就会再次关闭它。没有“您要保存”消息。然后,我使用 Windows 资源管理器并双击同一模板来创建文档。我一直等到文档在 Word 中准备好使用。然后,我再次单击“关闭”,无需输入或更改任何内容 - 在您是否要保存对“文档 2”的更改(我拒绝)之后,我会收到“您是否要保存模板”消息。
进一步说明:
我现在已将此跟踪到我添加工具栏和按钮的一些代码。此代码中有一行 customizationcontext = Thisdocument
,然后创建工具栏和按钮。如果我将该行更改为 CustomizationContext = ActiveDocument
,那么当我关闭从模板创建的文档时,我不会收到保存提示。但是,如果我打开模板并关闭它而不更改任何内容,我现在会收到提示(而且我添加的按钮没有正确显示(但它们确实出现在文档中))!不过我可以接受这一点,因为这比相反更好。
We have a word 2003 template we use as the basis for a configuration sheet for a system. The whole thing is based around form fields and the template is then locked. To write a new document we double click on the template, fill in the form fields, save and off we go.
The problem Ive got is that when finished writing in the "doc" file and closing or saving I always get a dialog asking if I want to save changes to the template as well. Even if I just double click the template "dot" file so that a blank "doc" file based on this is opened and then close that document straightaway I still get the save template query.
Is there anyway I can get rid of it as its damned annoying to everyone who uses the template.
Many thanks
Further note:
I've just had Word 2003 opened with no documents or templates opened. I use file open and open the template. Once it is open I then close it again. No "do you want to save" messages. I then use windows explorer and double click on the same template to create a document. I wait til the document is sitting in word ready to use. I then click close again without typing or changing anything - After the do you want to save changes to "Document 2" which I say no to, I then get the "do you want to save the template" message.
Further further note:
I have now tracked this to some code I have that adds a toolbar and buttons. within this code is a line customizationcontext = Thisdocument
and then the toolbar and buttons are created. If I change the line to CustomizationContext = ActiveDocument
I then do not get the prompt for saving when I close a document created from the template. I do however now get the prompt if I open the template and close it without changing anything(also the buttons I added do not appear correctly (but they do appear in the document))! I can live with this though as it is preferable than the other way round.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生这种情况的最常见原因是,您的一种格式(段落或其他)被标记为在更改时更新源模板。
如果激活了保存更改的选项,请检查模板中使用的所有格式并取消激活此选项 - 这同样适用于已从此模板创建的任何 .doc,因为它将继承此选项。
要检查格式(在 Word 2003 中),请打开样式和格式的侧边栏,将底部的过滤器更改为“使用的格式”。将指针移到您要检查的格式上,然后从右侧的下拉菜单中选择操作“修改...”。
在右下角 - 确定按钮上方 - 您会找到标有“自动更新”的复选框。
另请参阅自动更新段落样式。
The most common reason for this to happen, is that one of your formats (paragraph or other) is marked to update the source template if changed.
Check all the used formats in your template if the option to save back changes is activated and de-activate this option - the same applies to any .doc already created from this template since it will carry over this option.
To check your formats (in Word 2003), open the sidebar for styles and formatting, change the filter at the bottom to "Used formats". Move your pointer over the format you like to inspect and select the action "Modify..." from the pull down menu at the right.
On the bottom right - just above the OK-button - you'll find the checkbox labeled "Automatically update".
See also Automatically update a paragraph style.