The steps to create a Section report are split into following activities:
- Select the report layout
- Connect to a data source
- Add controls to the report
- View the report
- Save the report
Note: Section reports do not support server shared data sets.
Design Time
Run Time
Select the report type
- On the ActiveReports Server Report Portal, click New Report to create a new report.
- From the Create report pop-up window, select Section Report and click OK.
Connect to a data source
- On the detail section band, click the Data Source icon.
- In the Report Data Source dialog, on the XML tab, click the ellipses button next to File URL.
- Navigate to [User Documents folder]\GrapeCity Samples\ActiveReports 12\Data, select the Factbook.xml file, and click the Open button.
- In the Recordset Pattern field, enter the following query:
//countries/country
- Click OK to close the Report Data Source dialog.
Add controls to the report
- From the Report Explorer, drag the following data fields onto the Details section of the report, and set the following properties in the Properties window:
Field Name |
Property Name |
Currency |
Location: 0, 0.4 in
Size: 1, 0.2in |
VsUSD2004 |
Location: 5, 0.4 in
Size: 2, 0.2in |
VsUSD2003 |
Location: 5, 0.76 in
Size: 2, 0.2in |
VsUSD2002 |
Location: 5, 1.12 in
Size: 2, 0.2in |
VsUSD2001 |
Location: 5, 1.48 in
Size: 2, 0.2in |
@name |
Location: 3.25, 0 in
Size: 2, 0.24in
Font Size: 14pt |
- From the toolbox, drag TextBox controls onto the Details section and set the following properties to create static labels.
TextBox1
Property Name |
Property Value |
Location |
0, 0.4in |
Size |
1, 0.2in |
Font |
Bold: True |
Text |
Currency: |
TextBox2
Property Name |
Property Value |
Location |
4, 0.4 in |
Size |
1, 0.2in |
Text |
2004: |
TextBox3
Property Name |
Property Value |
Location |
4, 0.76 in |
Size |
1, 0.2in |
Text |
2003: |
TextBox4
Property Name |
Property Value |
Location |
4, 1.12 in |
Size |
1, 0.2in |
Text |
2002: |
TextBox5
Property Name |
Property Value |
Location |
4, 1.48 in |
Size |
1, 0.2in |
Value |
2001: |
View the report
Click the Preview tab to view the report at run time.
Save the report
- From the File menu, click Save.
- In the Save As dialog that opens, enter the Report name and click Save.
You can also select the category where you want your report to appear, add a description, and add a comment for the revision history.