ActiveReports 8 > ActiveReports User Guide > Samples and Walkthroughs > Walkthroughs > Page Report Walkthroughs > Layout > Single Layout Reports |
A fixed page layout, allows you to create a layout at design time on a single page tab and apply it to the entire report. Designing a layout in this format gives you the advantage of creating a layout that appears exactly the same at design time and runtime. This walkthrough illustrates how to create a report that contains a single layout and preview it.
This walkthrough is split into the following activities:
Note: This walkthrough uses the DVDStock table from the Reels database. By default, in ActiveReports, the Reels.mdb file is located at [User Documents folder]\ComponentOne Samples\ActiveReports 8\Samples\Data\Reels.mdb. |
When you complete this walkthrough you get a layout that looks similar to the following at design time and at runtime.
Notice that the runtime report layout below is similar to the one you see at design time except for the data which you see at runtime or when you preview the report.
To add an ActiveReport to the Visual Studio project
See Adding an ActiveReport to a Project for information on adding different report layouts.
To connect the report to a data source
To add a dataset
SQL Query |
Copy Code
|
---|---|
Select * from dvdstock
|
To create a layout for the report
Property Name | Property Value |
---|---|
Location | 0.25in, 0.5in |
BackgroundColor | Khaki |
Color | Maroon |
Font | Normal, Arial, 16pt, Bold |
Size | 6in, 0.5in |
TextAlign | Center |
Value | DVD STOCK |
Property Name | Property Value |
---|---|
Location | 0.25in, 1in |
BackgroundColor | Khaki |
FixedSize | 6in, 7.5in |
RepeatHeaderOnNewPage | True |
Size | 6in, 0.75in |
Click the adorner to show a list of available fields from the DataSet and add the following fields to the cells of the table details row.
Cell | Field |
---|---|
Left Cell | Title |
Middle Cell | InStock |
Right Cell | StorePrice |
Tip: You can also directly drag fields from the Report Explorer onto the textbox cells of the Table data region. |
Cell | Field |
---|---|
Left Cell | 2.5in |
Middle Cell | 1.75in |
Right Cell | 1.75in |
Row | Properties |
---|---|
Table Header | BorderStyle: Solid Color: Maroon Font: Normal, Arial, 12pt, Bold TextAlign: Left |
Table Details | BorderStyle: Solid Font: Normal, Arial, 10pt, Bold TextAlign: Left |
To view the report
OR