Spread 8.0 Documentation
SavePicture Method
Support Options
ActiveX Reference > ActiveX Methods > SavePicture Method

Glossary Item Box

SavePicture Method


See Also    DLL    Example

Applies To

fpSpread control

Description

Saves a picture to the specified file.

Syntax

C++

BOOL CSpreadSheet::SavePicture(LPDISPATCH Picture, LPCTSTR FileName, long PictType);

Visual Basic

fpSpread.SavePicture(ByVal Picture As Picture, ByVal FileName As String, ByVal PictType As PictureTypeConstants) As Boolean

Parameters

The following parameters are available:

Parameter Description
Picture Picture to save to file
FileName Path and file name of picture file to save
PictType Graphic type of file to save
Can be one of the following:
Constant Value Description
PictureTypeBMP 1 Windows Bitmap graphic
PictureTypeGIF 2 Graphics Interchange Format graphic
PictureTypeJPEG 3 Joint Photographic Experts Group graphic
PictureTypePNG 4 Portable Network Graphic graphic
PictureTypeICO 5 Windows Icon graphic
PictureTypeTIFF 6 Tagged Image File Format graphic
PictureTypeTGA 7 Truevision Targa graphic
PictureTypePCX 8 Paintbrush graphics file graphic
PictureTypeWBMP 9 Wireless Bitmap Format graphic (converted to monochrome)
PictureTypeJP2 11 JPEG 2000 graphic
PictureTypeJPC 12 JPEG 2000 graphic

Remarks

Use this method to save a picture to a file.

If you use this method with a picture cell type and there are multiple sheets, set the Sheet property to specify the sheet with which you want to work.

Return Type

True if successful; otherwise, False.

See Also

Creating Picture Cells

Sheet property

LoadPicture, LoadPictureBuffer, LoadResPicture, SavePictureBuffer methods

DLL Correspondence

SSSavePicture function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.