Document Library for WPF | ComponentOne
SSRSDocumentSource for WPF / Features / Export SSRS Report
In This Topic
    Export SSRS Report
    In This Topic

    SSRSDocumentSource allows you to export an SSRS report to various file formats, such as PDF, HTML, DOC/DOCX, EMF, XLS/XLSX, MHTML, CSV, JPEG, GIF, PNG, BMP, and TIFF. It provides support for exporting through Export method of C1DocumentSource class and object of exporter class with specified formats. The Export method takes the object of a format specific exporter class as a parameter and exports the report to a particular format. Following table lists all the available exporter classes, members of C1.WPF.Document.Export.Ssrs namespace, along with their descriptions and supported formats.

    Filter Description
    WordExporter Exporter class to export SSRS reports to Microsoft Word (DOC/DOCX) format.
    PdfExporter Exporter class to export SSRS reports to PDF.
    MhtmlExporter Exporter class to export SSRS reports to Web archive (MHTML) format.
    ExcelExporter Exporter class to export SSRS reports to Microsoft Excel (XLS/XLSX) format.
    CsvExporter Exporter class to export SSRS reports to CSV format.
    EmfExporter Exporter class to export SSRS reports to EMF format.
    JpegExporter Exporter class to export SSRS reports to JPEG format.
    GifExporter Exporter class to export SSRS reports to GIF format.
    PngExporter Exporter class to export SSRS reports to PNG format.
    BmpExporter Exporter class to export SSRS reports to BMP format.
    TiffExporter Exporter class to export SSRS reports to TIFF format.

    To export an SSRS report programmatically

    You can export SSRS reports to other external formats through code. The following code illustrates the use of Export method for exporting an SSRS report to Microsoft Word (DOCX) format. This example uses the sample created in Quick Start.

    Dim exporter = New WordExporter()
    exporter.Preview = True
    exporter.FileName = "..\..\Product Catalog.docx"
    ssrsDocSource.Export(exporter)
    
    var exporter = new WordExporter();
    exporter.Preview = true;
    exporter.FileName = @"..\..\Product Catalog.docx";
    ssrsDocSource.Export(exporter);
    

    Similarly, you can export the SSRS reports to other formats.

    See Also