开发者

SaveAs vs SaveAs2 in the Microsoft Office Word object model

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜