Skip to main content

TdxPSReportDocument.Preview Property

Returns the document preview as an image.

Declaration

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