ActiveReports 17 .NET Edition
Samples / Samples / API / Page and RDL Reports / Create Report
In This Topic
    Create Report
    In This Topic

    The Create Report sample demonstrates how to create an RDL Report using code and display it in the ActiveReports Designer.

    An example for creating a RDL report

    An example for creating a RDL report

    Sample Location

    Visual Basic.NET



    When you run this sample, the ActiveReports Designer appears with an RDL Report that is bound to a database. To view the report, go to the Preview tab of the Designer.

    Note: To run this sample, you must have access to the Reels.db. The Reels.db file can be downloaded from GitHub.

    The sample consists of:

    ReportsForm: This is the main form of the sample that contains the Designer, ReportExplorer, PropertyGrid, Toolbox and ToolStrip controls, used to create the ActiveReports Designer at run time. See Creating a Basic End User Report Designer (Pro Edition) for information on creating a basic ActiveReports Designer. Right-click the form and select View Code to see how to set up the Designer and attach the ReportExplorer, PropertyGrid and Toolbox controls to it. It also contains code that loads a layout created in the LayoutBuilder class to a Page Report object; then loads the Page Report object to a stream, which is loaded to the Designer.

    Constants: This file is an internal class that contains string values that are required for creating a dataset of the report.

    Layout: This file is an internal class that contains code for creating an RDL Report layout and adding a data source and a dataset to it.