ActiveReports 8 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Professional > End User Designer Sample |
The EndUserDesigner Sample demonstrates how to set up a custom end-user report designer using the Designer, ReportExplorer and ToolBox controls. This Sample is part of the ActiveReports Professional Edition.
Sample Location
Visual Basic.NET
<User Folder>\ComponentOne Samples\ActiveReports 8\Professional\VB.NET\EndUserDesigner
C#
<User Folder>\ComponentOne Samples\ActiveReports 8\Professional\C#\EndUserDesigner
Runtime Features
When you run the sample, the End User Designer appears in the Viewer control. This report designer provides the full functionality of the ActiveReports Designer and supports two types of report layouts: page layout and section layout.
The End User Designer lets you create report layouts and edit them at design time or runtime. The Designer includes the Property Window with extensive properties for each element of the report, the Toolbox is filled with report controls and the Report Explorer with a tree view of report controls.
The End User Designer provides the following menu items.
File menu
Edit menu
Report menu
Note: Except for View option, all other options in Report menu are disable for a section report. |
For more information on the Designer features, please see ActiveReports Designer.
Project Details
ExportForm
This is the form with the Export dialog for page report and section report.
A user sees the Export dialog under the Preview tab in the File menu > Export. This dialog allows to select the export type (Excel, Html, Tiff, Pdf, Rtf, Text) and to browse for the file location in local folders where the report is exported.
ExportForm controls
Control | Name | Description |
---|---|---|
ComboBox | cmbExportFormat | The Export Format combo box that allows to select options (Excel, Html, Tiff, Pdf, Rtf, Text) for the report export type. |
Button | btnOK | The OK button in the lower part of the ExportForm. |
Button | btnCancel | The Cancel button in the lower part of the ExportForm. |
PropertyGrid | exportpropertyGrid | Provides interface for export options of each export type. |
SaveFileDialog | exportSaveFileDialog | The Save File dialog that allows to specify the file name for saving an exported report file. |
Label | lblExport | The Export label in the header of the ExportForm. |
Label | lblExportFormat | The Export Format label of the Export Format combo box. |
Label | lblExportoptions | The Export Options label of the Export property grid. |
Label | lblSelectExporttxt | The Select Export text that describes the purpose of the ExportForm. |
SplitContainer | splitContainer1 | Represents a movable bar that divides the display area of the ExportForm into two resizable panels - the ExportForm header panel and the ExportForm panel with the Export Format combo box and the Property Grid. |
SplitContainer | splitContainer2 | Represents a movable bar that divides the Export Format section consisting of the Export Format combo box with the Export Format label and the Property Grid of ExportForm. |
Right-click the ExportForm in the Solution Explorer and select View Code to see the code implementation for the Export form.
EndUserDesigner form
This is the form with a basic end-user report designer that contains the following elements. These elements are dragged from the Visual Studio toolbox onto the form.
End User Designer controls
Control | Name | Description |
---|---|---|
Designer | reportdesigner | The Designer control that allows you to create and modify a report. |
ReportExplorer | reportExplorer | Gives you a visual overview of the report elements in the form of a tree view where each node represents a report element. |
PropertyGrid | reportpropertyGrid | Provides an interface for each element of the report. |
Toolbox | reporttoolbox | Displays all of the controls specific to the type of report that has focus. |
SplitContainer | bodyContainer | Represents a movable bar that divides the display area of the Viewer into two resizable panels. |
SplitContainer | designerexplorerpropertygridContainer | Represents a movable bar that divides the display area of the designer into two resizable panels -the toolbox and the toolstrip. |
SplitContainer | explorerpropertygridContainer | Represents a movable bar that divides the display area of the designer into two resizable panels - the report explorer and the property grid. |
SplitContainer | MainContainer | Represents a movable bar that divides the display area of the Designer into two resizable panels. |
ToolStripContainer | toolStripContainer1 | Provides a central panel on top of the Designer to hold the Toolstrip element with the menu items. |
Right-click the EndUserDesigner form in the Solution Explorer and select View Code to see the code implementation for the End User Designer.