Search Results for

    Show / Hide Table of Contents

    Exporting a report

    The prepared report can be exported to one of the supported formats. At this moment, the following formats can be used:

    • PDF;
    • Excel 2007;
    • Word 2007;
    • PowerPoint 2007;
    • OpenOffice Calc / OpenOffice Writer;
    • RTF;
    • Excel XML (Excel 2003+);
    • HTML;
    • MHT;
    • Pictures (Bmp, Png, Jpeg, Gif, Tiff, Metafile);
    • SVG;
    • CSV;
    • DBF;
    • Json;
    • TXT;
    • ZPL;
    • PPML;
    • PostScript;
    • XPS;
    • LaTeX;
    • DXF;
    • XAML.

    The export is performed by the export filter. To do this:

    • prepare a report using the Prepare method;
    • create an instance of export filter and set up its properties;
    • call the Export method of the Report object.

    The following example exports a prepared report in the HTML format:

    // prepare a report
    report1.Prepare();
    // create an instance of HTML export filter
    FastReport.Export.Html.HTMLExport export = new FastReport.Export.Html.HTMLExport();
    // show the export options dialog and do the export
    if (export.ShowDialog())
      report1.Export(export, "result.html");
    

    In this example, export settings are made using the dialog window.

    Back to top © 1998-2025 Copyright Fast Reports Inc.