ActiveReports Developer 7
Create Report
Support Forum
ActiveReports Developer 7 > ActiveReports Developer Guide > Samples and Walkthroughs > Samples > Page Report > CPL Samples > API > Create Report

Glossary Item Box

The Create Report sample demonstrates how to create a CPL report using code and display it in the ActiveReports Designer.


ShowSample Location

ShowVisual Basic.NET

<User Folder>\ComponentOne Samples\ActiveReports Developer 7\Page Reports\CPL\API\VB.NET\CreateReport

ShowC#

<User Folder>\ComponentOne Samples\ActiveReports Developer 7\Page Reports\CPL\API\C#\CreateReport

ShowRuntime Features

When you run this sample, the ActiveReports Designer appears with a CPL 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.mdb. A copy is located at [User Documents folder]\ComponentOne Samples\ActiveReports Developer 7\Data. If you are unable to access the data files in the sample, create the Data folder and place all the data files to this folder, or change the reference path to the data files within the folder according to your environment.

ShowProject Details

ShowUnifiedDesignerForm

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 runtime. 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.

ShowConstants

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

ShowLayoutBuilder

This file is an internal class that contains code for creating a CPL report layout and adding a data source and a dataset to it.

 

©2014. ComponentOne, a division of GrapeCity. All rights reserved.