# Create Report

This topic demonstrates how to create an RDLX report using code and display it in the ActiveReports Designer.

## Content

The Create Report sample demonstrates how to create a Page Report using code and display it in the ActiveReports Viewer.
![Creating an RDL report](https://cdn.mescius.io/document-site-files/images/b298aea2-8cb8-4a0f-be88-4f54aa263ebd/images/createreport.png)

### Sample Location

**Visual Basic.NET**
[https://github.com/activereports/Samples20/tree/main/API/PageAndRDLX/CreateReport/VB.NET](https://github.com/activereports/Samples20/tree/main/API/PageAndRDLX/CreateReport/VB.NET)
**C#**
[https://github.com/activereports/Samples20/tree/main/API/PageAndRDLX/CreateReport/C#](https://github.com/activereports/Samples20/tree/main/API/PageAndRDLX/CreateReport/C%23)

### Details

When you run this sample, the ActiveReports Viewer appears with a Page Report that is bound to a database.

>type=note
> **Note**: To run this sample, you must have access to the **Reels.db**. The Reels.db file can be downloaded from [GitHub](https://github.com/activereports/Samples20/tree/main/Data/).

The sample consists of:
**ReportsForm**: This is the main form of the sample that contains the Viewer, the Sidebar, and Toolbox controls, used to create the ActiveReports Viewer at run time. Right-click the form and select View Code to see how to set up the Viewer. 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 Viewer.
**Constants**: This file is an internal class that contains string values that are required for creating a dataset of the report.
**LayoutBuilder**: This file is an internal class that contains code for creating a Page Report layout and adding a data source and a dataset to it.