另存为VS SaveAs2在Microsoft Office Word对象模型 [英] SaveAs vs SaveAs2 in the Microsoft Office Word object model

查看:1876
本文介绍了另存为VS SaveAs2在Microsoft Office Word对象模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它看起来像<一个href=\"http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.saveas.aspx\">SaveAs已经消失在Office 2010中支持<一个href=\"http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.document.saveas2.aspx\">SaveAs2.这里发生了什么?是否有任何两者之间的重要区别?我的修复已经检查SaveAs2第一,然后回落到另存为。这是合理的?

It looks like SaveAs has gone away in Office 2010 in favor of SaveAs2. What is going on here? Are there any important differences between the two? My fix has been to check for SaveAs2 first, and then fall back to SaveAs. Is this reasonable?

推荐答案

它并没有消失,你刚刚得到了另一种方式来保存文档。 SAVE2()需要一个额外的参数,CompatibilityMode。如果你不关心兼容模式然后就继续使用保存()。如果你再检查Application.Version以验证您可以调用保存2()没有得到一个例外。

It hasn't gone away, you've just got another way to save the document. Save2() takes an extra argument, CompatibilityMode. If you don't care about the compatibility mode then just keep using Save(). If you do then check Application.Version to verify that you can call Save2() without getting an exception.

这篇关于另存为VS SaveAs2在Microsoft Office Word对象模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆