Click or drag to resize

Document.CDSetData Method

This method creates or modifies binary or string custom data streams stored in the document.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void CDSetData(
	CD_TYPE Type,
	string Name,
	Object Data
)

Parameters

Type
Type: Kofax.OmniPageCSDK.IproPlus.CD_TYPE
Name
Type: System.String
Data
Type: System.Object
Remarks

The Type parameter can either be CD_BINDATA or CD_STRDATA, otherwise a trappable error occurs.

The Name parameter is the name of the custom data. If the data stream already exists, it is overwritten. Depending on the Type parameter, the Data parameter must either contain a SAFEARRAY of Bytes for C++ (Byte array for Visual Basic programmers), or a string.

Calling this method sets the Modified property to True.

See Also