使用 Visio 文档Work with Visio documents

在本部分中的主题提供有关使用 Microsoft Office Visio 对象模型处理 Office 项目中的文档的分步过程和代码示例。The topics in this section provide step-by-step procedures and code examples for using the object model of Microsoft Office Visio to work with documents in Office projects.

任务Task 过程Procedure
创建一个空白 Visio 文档或基于现有 Visio 模板、 模具或文档的新文档。Create a blank Visio document, or a new document that is based on an existing Visio template, stencil, or document. 如何:以编程方式创建新的 Visio 文档How to: Programmatically create new Visio documents
打开现有 Visio 文档,并指定针对读/写、 只读和停靠的选项。Open an existing Visio document and specify options for read/write, read-only, and docked. 如何:以编程方式打开 Visio 文档How to: Programmatically open Visio documents
关闭活动 Visio 文档。Close the active Visio document. 如何:以编程方式关闭 Visio 文档How to: Programmatically close Visio documents
使用相同的名称或新名称保存文档。Save a document with the same name or a new name. 如何:以编程方式保存 Visio 文档How to: Programmatically save Visio documents
打印整个文档或指定的页。Print an entire document or a specified page. 如何:以编程方式打印 Visio 文档How to: Programmatically print Visio documents

请参阅See also