# Export Reports

Get started with, FlexReport comprehensive reporting tool that provides complete reporting solution - from building complex reports to previewing, exporting, and printing.

## Content



FlexViewer lets you export the reports to different file formats. The viewer control transforms the information in the report into a device-specific/application-specific format.

The **Tools** group in the FlexViewer ribbon provides the Export Tool![](https://cdn.mescius.io/document-site-files/images/fd2ea167-30cb-4938-9938-b740a5b4dd95/images/export-tool-flexviewer.png), which when clicked invokes the Export to Report file dialog, so that you can save the report to the required file format.

By default FlexViewer exports reports to the following formats:

*   Comma Separated Values (.csv)
*   Adobe PDF (.pdf)
*   HTML Document (.html)
*   Open XML Word (.docx)
*   RTF Document (.docx)
*   Open XML Excel (.xlsx)
*   Compressed Metafiles (.zip)
*   Image Files:
    *   TIFF (.tiff)
    *   BMP (.bmp)
    *   PNG (.png)
    *   JPEG (.jpg)
    *   GIF (.gif)

## Export using FlexViewer via Code

With **FlexViewer** control, you can preview the reports as well as export them. The reports can be exported to several file formats: .pdf, .html, .rtf, .docx, .xls, .xlsx, .zip, .tiff, .bmp, .png, .jpg, and .gif. The following code describes how to export a FlexReport using [Export](/componentone/docs/win/online-flexreport/) method of [C1FlexViewer](/componentone/docs/win/online-flexreport/) Class:

**vbnet**

```vbnet
'Load report definition
C1FlexReport1.Load(@"reportFile", "reportName")
'Specify the report shown by the viewer
C1FlexViewer1.DocumentSource = C1FlexReport1
'Export
C1FlexViewer1.Export()
```

**csharp**

```csharp
//Load report definition
c1FlexReport1.Load(@"reportFile", "reportName");
//Specify the report shown by the viewer
c1FlexViewer1.DocumentSource = c1FlexReport1;
//Export
c1FlexViewer1.Export();
```