Import method

Microsoft Visio Developer Reference

Import method

   Example   

Imports a file into the application.

Version added

3.0

Syntax

objRet = object.Import(fileName)

objRet

A Shape object that represents the new shape imported from the file.

object

Required. An expression that returns the Page, Master, or Shape object to receive the new shape.

fileName

Required String. The name of the file to import; must be a fully qualified path.

Remarks

The Import method imports the file specified by fileName onto a page, or into a master or group.

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