Spread 8.0 Documentation
GetData Method (fpDataObject)
Support Options
ActiveX Reference > ActiveX Methods > GetData Method (fpDataObject)

Glossary Item Box

GetData Method (fpDataObject)


See Also

Applies To

fpDataObject object

Description

Retrieves data of a specified format.

Syntax

Visual Basic

fpSpread1.fpDataObject.GetData(Format As Integer) As Variant

Parameter

The following parameter is available:

Parameter Description
Format Specifies the data format
Using the Or operator, combine any of the following values:
Value Description
1 - fpCFText Text (string data)
2 - fpCFBitmap Bitmap (picture object)
3 - fpCFMetafile Metafiles (picture object)
8 - fpCFDIB Device-independent bitmap (picture object)
9 - fpCFPalette Color palette (picture object)
14 - fpCFEMetafile Enhanced metafile (picture object)
-16639 - fpCFRTF Rich text format (string data)

Remarks

If the data requested is a file, the 15 (fpCFFiles) value is not valid. Use the fpDataObject SetData method's Format parameter to retrieve the data.

The OLESetData event is initiated for the source control when the target control requests data and the fpDataObject does not have data yet for the requested format because delayed rendering was used in the OLEStartDrag event. The data is placed in the fpDataObject using the SetData method.

See Also

Files property

OLEDragOver, OLEDragDrop, OLESetData, OLEStartDrag events

Clear, GetData, GetFormat, SetData methods

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