本文介绍了使用Word 2007 SP2保存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用Word 2007的Word.Document.SaveAs方法时遇到问题。虽然我选择将文档保存为Word 97-2003格式(wdFormatDocument),并选择保存为.doc扩展名的文件名,因为我已经移动到SP2,SaveAs对话框弹出了保存选项作为.docx文档。这在SP2之前从未发生过。

我的代码看起来像这样(c#):

---------------

对象docFileName = fileName;
对象fileFormat = Word.WdSaveFormat.wdFormatDocument;
对象lockComments = Type.Missing;
对象pwd = Type.Missing;
对象addToRecent = Type.Missing;
对象writePwd = Type.Missing;
对象readOnly = Type.Missing;
对象embedFonts = Type.Missing;
对象SaveFmt = Type.Missing;
对象SaveData = Type.Missing;
对象SaveLetter = Type.Missing;%3

Hi,

I have a problem using Word.Document.SaveAs method with Word 2007 SP2. Although I choose to save my document as a Word 97-2003 format (wdFormatDocument) and the file name I elect to save as has a .doc extension, since I've moved to SP2 the SaveAs dialog is popping up with the option to save as a .docx document. This never used to happen prior to SP2.

My code looks something like this (c#):

---------------

object docFileName = fileName;
object fileFormat = Word.WdSaveFormat.wdFormatDocument;
object lockComments = Type.Missing;
object pwd = Type.Missing;
object addToRecent = Type.Missing;
object writePwd = Type.Missing;
object readOnly = Type.Missing;
object embedFonts = Type.Missing;
object SaveFmt = Type.Missing;
object SaveData = Type.Missing;
object SaveLetter = Type.Missing;%3

推荐答案


这篇关于使用Word 2007 SP2保存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 01:07