Table of contents
TOC
折叠目录
展开目录

Master.Export 方法 (Visio)Master.Export Method (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

从 Microsoft Visio 会将对象导出到如.bmp、.dib、.dwg、.dxf、.emf、.emz、.gif、.htm、.jpg、.png、.svg、.svgz、.tif 或.wmf 文件格式。Exports an object from Microsoft Visio to a file format such as .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg, .png, .svg, .svgz, .tif, or .wmf.

语法Syntax

表达式导出(文件名)expression . Export( FileName )

表达式_一个表示对象的变量。_expression A variable that represents a Master object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
文件名FileName必需RequiredStringString要接收导出对象的文件的完全限定路径和名称。The fully qualified path and name of the file to receive the exported object.

返回值Return Value

Nothing

注解Remarks

文件扩展名指示要使用的导出过滤器。如果未安装该筛选器, Export方法将返回 Visual Basic 或 VBA 项目中的编译器错误。Export方法使用指定过滤器的默认首选参数设置,不会提示用户使用非默认参数。The file name extension indicates which export filter to use. If the filter is not installed, the Export method returns a compiler error in your Visual Basic or VBA project. The Export method uses the default preference settings for the specified filter and does not prompt the user for non-default arguments.

页上导出方法对象保存为 HTML 使用扩展名为.htm 或.html 的文件格式的支持。页面导出时,Visio 将使用上次在另存为对话框中选择的设置。The Export method of a Page object supports saving to HTML file format using the extension .htm or .html. When pages are exported, Visio uses the settings that were last selected in the Save As dialog box.

如果指定的文件已经存在,Visio 将不提示用户而直接进行替换。If the specified file already exists, Visio replaces it without prompting the user.

您可以使用各种属性和ApplicationSettings对象的方法与相关的配置设置的栅格图像导出为.bmp、.gif、.jpg、.png 和.tif 文件类型。You can use various properties and methods of the ApplicationSettings object that relate to raster images to configure settings for export to .bmp, .gif, .jpg, .png, and .tif file types.

示例Example

以下示例显示如何将 Visio 页面导出为位图 (.bmp) 文件。该示例假定某个绘图页在 Microsoft Visio 中已打开且处于活动状态。This example shows how to export a Visio page as a bitmap (.bmp) file. It assumes a drawing page is open and active in Microsoft Visio.

Public Sub Export_Example() 
 Dim vsoPage As Visio.Page 
 Set vsoPage = ActivePage 
 vsoPage.Export ("C:\\myExportedPage.bmp") 
End Sub
© 2018 Microsoft