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

TdxPSReportDocument.Preview Property

Returns the document preview as an image.

#Declaration

Delphi
property Preview: TMetafile read;

#Property Value

Type
TMetafile

#Remarks

The Preview property holds the report document rendered into an image. This image is displayed in the report item’s property sheets dialog, this dialog can be invoked when using a report explorer. Choose the context menu’s Properties… item for this purpose.

You can use the Preview property to save the report’s image to a file, display it on a form, etc.

The Preview property value is initialized by the RetrievePreview method. This method is called automatically when initializing a new report item using an explorer’s component’s CreateNewItem method, for instance. To obtain a preview of the report link, you need to call the RetrievePreview method manually. Note that the corresponding report should be constructed before you can obtain its image representation this can be done by calling a report link’s RebuildReport method.

See Also