ActiveReports 13
Export
ActiveReports 13 > ActiveReports User Guide > Samples and Walkthroughs > Samples > API > Section Reports > Export

This sample illustrates how to export to different export formats using code. The available export formats are PDF, XLSX, RTF, MHT and CSV.

Sample Location

Visual Basic.NET

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\API\Section\Export\VB.NET

C#

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\API\Section\Export\C#

Details

When you run this sample, the Export Form is displayed. The Export Form contains the Report Name and Export Type combo boxes along with the Export button.

The sample consists of ExportForm. It exports the selected report in the selected export format.

On running the application, select a report for export in the Report Name combo box. In the Export Type combo box, you can select one of the following formats for export - PDF, XLSX, RTF, MHT and CSV. Clicking the Export button opens the Save As dialog where you can specify the name of the exported file. By default, the exported file is saved in the Documents folder.