ComponentOne WebReports for ASP.NET: WebReports for ASP.NET Task-Based Help > Changing the Default Export Format

Changing the Default Export Format

Reports can be exported to the following formats: PDF, HTML, XLS, and RTF. By default, the report exports to None. At design time, you can easily change the default export format with the DefaultExportFormat property.

This can be done by following these steps:

1.   First, add the C1WebReport control to your Web page and add a report definition. For details on how to add a report definition, see the steps in the WebReports for ASP.NET Quick Start topic. Next you'll add the Export button to the navigation bar.

2.   Click the C1WebReport's smart tag to open the C1WebReport Tasks menu.

 

 

3.   Select the Show Export Button check box.

The Export button is added to the navigation bar.

 

4.   From the Properties window, locate the NavigationBar node and expand it to reveal the DefaultExportFormat property.

5.   Click the DefaultExportFormat property's drop-down arrow and select PDF, for example, from the list of export formats.

 

This topic illustrates the following:

Run the application and in a few seconds the browser appears with the report. The PDF export format appears in the combo box.

 

 

To export the report to a PDF, simply click the Export button.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.