ActiveReports 9
Exporting Reports using Export Filters
Show AllShow All
Hide AllHide All

ActiveReports provides various export filters that can be used to export Page, Section and Rdl Reports to the supported file formats. Here are the export formats that are included with ActiveReports:

Note: HTML Export requires the .NET Framework full profile version. To ensure you are using the full profile version, go to the Visual Studio Project menu > Properties > Compile tab > Advanced Compile Options (for Visual Basic projects) or to the Project menu > Properties > Application tab (for C# projects) and under Target framework select a full profile version.
Note: In ActiveReports, by default, the assemblies are located in the ...\Common Files\GrapeCity\ActiveReports 9 folder.

Use the following steps to export reports through export filters. These steps assume that you have already created a Windows Application and added the export controls to your Visual Studio toolbox. For more information, see Adding ActiveReports Controls.

To export a report

  1. In your project's Bin>Debug folder, place the report.rpx (Section Report) or report.rdlx (Page/Rdl Report).
  2. In the Solution Explorer, right-click the References node and select Add Reference.
  3. In the Add Reference dialog that appears, select the following references and click OK to add them to your project.
    GrapeCity.ActiveReports.Export.Excel.v9
    GrapeCity.ActiveReports.Export.Html.v9
    GrapeCity.ActiveReports.Export.Image.v9
    GrapeCity.ActiveReports.Export.Pdf.v9
    GrapeCity.ActiveReports.Export.Word.v9
    GrapeCity.ActiveReports.Export.Xml.v9
  4. On the Form.cs or Form.vb, double-click the title bar to create the Form_Load event.
  5. In Form_Load event, add the following code to add a report to your project.  

    To add Page/Rdl report to your project

    To add Section report to your project

  6. Add the following code to export Page, Rdl and Section Reports to multiple format.
    This code is common for all the report types (.rpx and .rdlx). 

    To write the code in Visual Basic.NET

    To write the code in C#

    Note: When exporting a report to .MHT file by Export filters use htmlExport.Export(Document doc, Stream outputStream);
    For more information, see HTML Export Method.
  7. Press F5 to run the application. The exported files are saved in the bin\debug folder.
See Also

Concepts

 

 


Copyright © 2016 GrapeCity, inc. All rights reserved

Support Forum