ActiveReports 9
Adding an ActiveReport to a Project
 
Show AllShow All
Hide AllHide All

To use ActiveReports in a Visual Studio project, you add one of the included report templates.

To add an ActiveReport to a project

  1. From the Visual Studio Project menu (or Website menu in Web projects), select Add New Item.
  2. Select the type of report that you want to add (for information on the differences, see Report Types): 
    • Section Report (code-based)
    • Section Report (xml-based)
    • Page Report
    • RDL Report
  3. In the Name box, type a name for the report, and click Add. The selected report type is added to your project and opens in the report designer.
Note: When you add a report layout the Viewer assembly (GrapeCity.ActiveReports.Viewer.Win.v9.dll) is not added automatically to the project references. You may need to manually add it in your project if required.

To add an ActiveReport to a project at runtime

  1. In Visual Studio, create a new Windows Forms Application or open an existing one.
  2. From the Visual Studio toolbox, drag the Viewer control onto your Windows Form.
  3. Set the Viewer's Dock property to Fill to show the complete Viewer control on the form.
  4. On the Form.cs or Form.vb that opens, double-click the title bar to create the Form_Load event.
  5. Add the following code inside the Form_Load event.

Page Report

RDL Report

Section Report

See Also

Concepts

 

 


Copyright © 2016 GrapeCity, inc. All rights reserved

Support Forum