

The picture is to be linked to the publication. The picture is to be embedded in the publication. The LinkToFile parameter can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

If either argument is msoTrue, the other must be msoFalse.įor the Left, Top, Width, and Height arguments, numeric values are evaluated in points strings can be in any units supported by Publisher (for example, "2.5 in"). The LinkToFile and SaveWithDocument arguments cannot have the same value, or else an error occurs. If the SaveWithDocument argument is msoTrue, Microsoft Publisher saves a new copy of the picture file specified by the FileName argument in the same directory as the publication. Default is -1, meaning that the height of the shape is automatically set based on the object's data. The height of the shape representing the picture.

Default is -1, meaning that the width of the shape is automatically set based on the object's data. The width of the shape representing the picture. The position of the top edge of the shape representing the picture. The position of the left edge of the shape representing the picture. The path can be absolute or relative.ĭetermines whether the picture is linked to or embedded in the publication.ĭetermines whether the picture is saved as a separate file with the publication. The name of the picture file to insert into the shape. AddPicture ( FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height)Įxpression A variable that represents a Shapes object. Adds a new Shape object representing a picture to the specified Shapes collection.
