Object.PicturePath Property |
Sets or returns the picture object's path.
Applies to picture objects
Objects(<object name or index>).PicturePath = PathAndFileName
Where PathAndFileName is a string containing the path to the picture.
The Object.PicturePath property sets or returns a path to a desired picture. The path is different based on the picture object's source.
When retrieving information about a picture object...
If the picture is embedded into the picture object, the Object.PicturePath property will return the original filename that was used when the image was embedded into the label format.
If the picture is linked to an image file, the Object.PicturePath property will return the linked filename.
If the picture object is data-sourced, the Object.PicturePath property is not supported.
When setting the path to an image...
If the picture is embedded into the picture object, the Object.PicturePath property will set the embedded filename, then open and load the image. The extension of the filename will be used to determine the type of image (i.e. JPG, GIF, PNG, etc). If the specified filename cannot be found, an exception will be thrown.
If the picture is linked to an image file, the Object.PicturePath property will set the filename, then open and load the image. The extension of the filename will be used to determine the type of image (i.e. JPG, GIF, PNG, etc). If the specified filename cannot be found or loaded, an exception will be thrown.
If the picture object is data-sourced, the Object.PicturePath property is not supported.