<< Click to Display Table of Contents >>

 

This tutorial describes how to use the Cross Tab control to create a Sales Summary report.

eurd-win-cross-tab-report-result-final

Tip

This tutorial demonstrates how to use the Cross-Tab Report Wizard. See Balance Sheets tutorial for information on how to configure a Cross Tab on the Design Surface.

1.Invoke the Report Wizard.

2.Select Cross-Tab Report and click Next.

eurd-win-cross-tab-report-wizard-select-report-type

 

3.Select a data member that stores data for each sales person's sales. Click Next.

eurd-win-cross-tab-report-wizard-select-view

4.Drop data fields onto cross-tab areas to define row/column headers and data.

eurd-win-cross-tab-report-wizard-drop-fields

The field order defines the hierarchy in the resulting cross-tab report. The higher the field on the list, the higher the level in the field hierarchy.

5.Change the report page layout to landscape to ensure the cross-tab content fits the report well. Click Next.

eurd-win-cross-tab-report-wizard-page-settings

6.Set the report's color scheme and click Next.

eurd-win-cross-tab-report-wizard-set-color-scheme

7.Specify the report's title and click Finish.

eurd-win-cross-tab-report-wizard-specify-report-title

The generated report contains a Cross Tab that is configured based on the specified settings. The Cross Tab calculates automatic totals and grand totals across row and column fields.

eurd-win-cross-tab-report-wizard-result

Tip

Ensure that the report's Data Source property is not set if you place the Cross Tab into the Detail band. Otherwise, the Cross Tab data is printed as many times as there are rows in the report data source.

Switch to the Preview tab to see an intermediate result.

eurd-win-cross-tab-report-wizard-result-preview

As you can see in the image above, the Cross Tab displays data for individual days. The next section shows how you can adjust the report so that it summarizes values by quarters.

Select the row header cell and click its smart tag. Specify the Group Interval property to group data.

eurd-win-cross-tab-report-group-interval

eurd-win-cross-tab-report-group-interval-preview

Apply data formatting to cells. Hold down SHIFT or CTRL to select multiple cells, then go to the Properties window and specify the Text Format String property.

eurd-win-cross-tab-report-prices-format-string

1.Select the Cross Tab, switch to the Properties window and expand the Styles property. Expand the General Style property and set Border Color to ControlDark. This value applies to all Cross Tab cells.

eurd-win-cross-tab-report-general-style

2.Expand the Header Area Style property and set the following properties:

oBackground Color to Control

oFont to Calibri 9 Bold

eurd-win-cross-tab-report-header-area-style

3.Expand the Total Area Style property and set Font to Calibri 9 Bold.

eurd-win-cross-tab-report-total-area-style

4.Expand the Data Area Style property and set Font to Calibri 9.

eurd-win-cross-tab-report-data-area-style

5.Hold down SHIFT or CTRL, and select the cells that display the grand total values. Go to the Properties window and set Background Color to ControlDark. This value applies to the selected cells only and overrides the value specified at the area level.

eurd-win-cross-tab-report-grand-totals-appearance

6.Select the row header cell and set Text Alignment to Top Left.

eurd-win-cross-tab-report-cell-text-alignment

eurd-win-cross-tab-report-appearance-result

1.Use a cell's Column Auto Width Mode property to specify a cell width calculation method. The Report Wizard sets this property to Shrink And Grow for row headers and to None for other cells.

eurd-win-cross-tab-report-column-auto-width-mode

2.Resize the Cross Tab. You can also resize the individual rows and columns.

eurd-win-cross-tab-report-resize-control

3.Move the report title to the Top Margin band to repeat the title on each page and make the Cross Tab occupy the entire page area.

eurd-win-cross-tab-report-move-title

eurd-win-cross-tab-report-result-final