Progress® Telerik® Reporting R1 2019

How To: Create a Report (Visual Studio)

In this topic we will discuss how to create reports in a Class Library project


Your system must have the following installed to use this tutorial:

Visual Studio Solution Structure

In case you choose to use the Visual Studio Report Designer and store your reports as .NET classes, the most efficient way to structure your reporting solution is to first create a class library that contains your reports. Then you can reference that class library in applications that view the reports. You can have any number of Windows or Web viewing applications which are re-using the same class library. This solution structure decouples your program logic from the report and its data.

In the example solution below "MyReportSolution" there are three projects.

  • "MyReportLib" is the class library that contains Telerik Reporting items.  In this case the project contains only a single item "MyReport.cs".

  • "MyWebApplication" is an ASP.NET application that displays the report.  Notice the "MyReportLib" entry in the References for the project.

  • "MyWindowsApplication" is a Windows forms application that also references "MyReportLib".

Example solution

Create a Report Library with a report definition.

To create report you start by creating a report library to contain your report and a web, windows or Silverlight application to display the report. Generally it's possible to put the report definition and viewer in the same application but this route is not recommended.  See Starting with Telerik Reporting article for more information.

  1. Select File | New | Project from the Visual Studio File menu.  Select the Telerik Report Library project, give it a name and location. Verify that the targeted .NET Framework version is .NET4+, Full profile as Client profile is not supported. Click the OK button to close the dialog.

  2. The Choose Report Type dialog opens. Select the report type, enter a name for the report class and click the OK button to close the dialog.

  3. The appropriate Report Wizard will appear automatically to help you select data and design your report quickly. For more information see How To: Use the Report Wizard to create a Band Report.

In this article
Not finding the help you need?