Export method

Microsoft Visio Developer Reference

Export method

   Example   

Exports an object from Microsoft Visio to a file format such as .pcx, .eps, or .htm.

Version added

3.0

Syntax

object.Export fileName

object

Required. An expression that returns a Page, Master, Selection, or Shape object to export.

fileName

Required String. The fully qualified path and name of the file to receive the exported object.

Remarks

The file extension indicates which export filter to use. If the filter is not installed, the Export method returns an error. The Export method uses the default preference settings for the specified filter and does not prompt the user for non-default arguments.

The Export method of a Page object supports saving to HTML file format using the extension .htm or .html. Pages are exported using the settings that were last selected in the Save As dialog box.

If the specified file already exists, it is replaced without prompting the user.