Table of contents
Collapse the table of content
Expand the table of content

Page.InsertFromFile Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Adds a linked or embedded object to a page, master, or group.


expression . InsertFromFile( FileName , Flags )

expression A variable that represents a Page object.


NameRequired/OptionalData TypeDescription
FileNameRequiredStringThe name of the file that contains the object to link or embed.
FlagsRequiredIntegerFlags that influence how the object is inserted.

Return Value



The InsertFromFile method creates a new shape that represents a linked or embedded OLE object.

The Flags argument is a bitmask that should be a combination of the following values.

**Constant ****Value ****Description **
visInsertLink&;H8If set, the new shape represents an OLE link to the named file. Otherwise, the InsertFromFile method produces an OLE object from the contents of the named file and embeds it in the document that contains the page, master, or group.
visInsertIcon&;H10Displays the new shape as an icon.

Security Use caution when you are adding ActiveX controls to your application. ActiveX controls may be designed in such a way that their use could pose a security risk. We recommend that you use controls from trusted sources only.

© 2018 Microsoft