ComponentOne Document Library for WinForms
Export SSRS Report
SSRSDocumentSource for WinForms > Features > Export SSRS Report

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.Win.C1Document.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.FileName = "..\..\Product Catalog.docx"
C1SSRSDocumentSource1.Export(exporter)
System.Diagnostics.Process.Start(exporter.OutputFiles(0))
var exporter = new WordExporter();
exporter.FileName = @"..\..\Product Catalog.docx";
c1SSRSDocumentSource1.Export(exporter);
System.Diagnostics.Process.Start(exporter.OutputFiles[0]);

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

See Also