Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPSExplorerItem.CreateDataStream(TdxPSStreamMode) Method

Creates a stream containing the item’s content.

#Declaration

Delphi
function CreateDataStream(AMode: TdxPSStreamMode): TStream; virtual;

#Parameters

Name Type
AMode TdxPSStreamMode

#Returns

Type
TStream

#Remarks

The CreateDataStream method is used to create a stream containing the item’s data. The AMode parameter specifies the stream access modes available. The table below lists values that can be passed as this parameter.

Value Description
SmRead A read-only stream is created.
SmWrite A write-only stream is created.
smReadWrite A read-write stream is created.

The created stream’s content is the item’s data stored either within a file or a database field. Thus, TdxPSExplorerItem descendants override the CreateDataStream method to return either a file stream or a BLOB stream.

Note

If you are developing your own item classes you may also need to override the CreateDataStream method to return a proper stream with report data. Because the method is used internally to write the data of a report link to it’s item and vice versa.

See Also