Filename Property

Contained in the JPEG object ; Sets/returns the name of the file generated by the CreateFile method. This property must be set prior to calling CreateFile or an exception will be thrown.

 

The Filename property should be preceded by an absolute path to the file. For example, "c:\my documents\chart.jpg". Otherwise the current directory for the current drive will be used as the path. The jpg extension is NOT added to the filename automatically.

 

Syntax

JPEG.Filename [= string ]

The Filename property syntax has these parts:

Part  Description

JPEG  An object expression that evaluates to a JPEG object.

string  A string indicating the path and filename of the JPEG file to be generated.