Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这两种方法的文档读起来几乎和我一样。我有一个要打开并进行更改的模板 (.DOTX),另存为 .DOCX。什么是正确的方法?而且,事实上,我如何保存文档?我看不到保存方法...
使用该Open方法需要文档已经存在。如果不是,则抛出异常。
Open
如果文档存在,则使用该Create方法将打开该文档,如果不存在则创建它。
Create
当您调用该Close方法时,文档会自动保存。
Close