CreateJpegFile
Overview | Properties | Methods
Saves the resulting jpeg to disk.
Syntax
long = PieChartObject.CreateJpegFile(FileName As String, Width As Long, Height As Long, [Compression As Long])
The CreateJpegFile method syntax has the following parts:
Part |
Description |
FileName |
The full pathname of the file to be saved to disk. |
Width |
Width of the saved jpeg in pixels. |
Height |
Height of the saved jpeg in pixels. |
Compression |
Amount of compression (0 to 100). |
long |
Returns a long indicating the success or failure of the operation. Zero (0) is returned if successful, otherwise a non-zero value is returned. |
Returns
A long which indicates the success/failure of the operation. Zero (0) is returned if successful, otherwise a non-zero value is returned. If an error occurs you can use this return value as the argument for GetErrorText in order to retrieve a relevant text error message, or alternatively you can rem out the "On Error Resume Next" statement and observe the thrown exception for a description of the error.
Remarks
You can use this as a test method to see if the control is actually producing a jpeg.
You can also use this method in a VB (Visual Basic) application and then call VB's LoadPicture method to assign the jpeg to a Picture Box or Image control.
See Also: SendJPEG