Skip to main content
All docs
V25.2
  • TdxReport.ExportToText(TStream) Method

    Exports report content to a stream as plain text.

    Declaration

    procedure ExportToText(AStream: TStream);

    Parameters

    Name Type Description
    AStream TStream

    The target stream.

    Remarks

    Call the ExportToText procedure to export report content to a stream in the plain text format.

    The ExportTimeout property allows you to set a timeout interval (in milliseconds) for export operations. If the specified export timeout is reached, an exception is thrown.

    Plain Text Export Settings

    The Report Designer dialog allows you to configure plain text export settings. Open the Properties tab and expand the following nodes to modify plain text export settings: Behavior | Export Options | Text Export Options.

    VCL Reports: Export Format Settings in the Report Designer Dialog

    To see the report export functionality in action, run the Report Designer/Viewer demo in the VCL Demo Center installed with compiled DevExpress VCL demos. Select any demo in the sidebar on the left, click the Export button, and use any export option listed in the menu.

    Download: Compiled VCL Demos

    Tip

    You can find full source code for the installed compiled Report demo in the following folder:

    %PUBLIC%\Documents\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressReports\

    Other Export Methods

    You can call the following procedures to export report content to a stream in other formats:

    ExportTo
    Exports report content to a stream in any supported format.
    ExportToCSV
    Exports report content to a stream in the comma-separated values (CSV) format.
    ExportToDOCX
    Exports report content to a stream as an Office OpenXML (DOCX) document.
    ExportToHTML
    Exports report content to a stream as an HTML document.
    ExportToImage

    Exports report content to a stream in the current image export format (selected using the Report Designer dialog).

    The default image export format is PNG (Portable Network Graphics).

    ExportToMHT
    Exports report content to a stream as a MIME HTML (MHT) document.
    ExportToPDF
    Exports report content to a stream in PDF format.
    ExportToRTF
    Exports report content to a stream as an RTF-formatted string.
    ExportToXLS
    Exports report content to a stream in Microsoft Excel® binary format (XLS).
    ExportToXLSX
    Exports report content to a stream in Office Open XML spreadsheet format (XLSX).
    See Also