Crystal reports user guide

Page 161

9 : Sorting, Grouping, and Totaling

Live headers A live header is a header that changes based on the content of the group. If the data is subtotaled by region, for example, a live header would typically identify the region detailed in each group. Thus, the Arizona group would have a header identifying the group as Arizona data, the California group would have a header identifying the group as California data, and so on. Note: When creating a group, the program automatically inserts a group name field in the Group Header section unless you have toggled the option off using the Options command on the File menu. The information that follows details how to manually insert such a section (if you do not have the program insert one automatically) and how to create different kinds of live headers for different needs. Group name only The easiest live header to create is one based on identifying the value of the group field.

To create a live header by group name only 1 On the View menu, click Field Explorer. 2 In the Field Explorer dialog box, expand the Group Name Fields folder. 3 Select the Group Name field that matches the group you are working with and drag it into the Group Header section for that group. When you run the report, the group field value identifier will appear as the group header for each region group. Group name with text A more complex type of live header combines a field value and text. A typical group header of this kind for data broken down by region would be, “Sales for California” or “Customers in Postal Code 60606“. Creating these headers involves three steps: • Insert a text object in the Group Header section. • Type in the text you want to appear. • Enter the Group Name field in the text field where you want it to appear in the Group Header. For example, if you want your header to read “Sales for” and then the name of the region in the current group (Sales for AZ, Sales for CA, and so forth), follow these steps:

To create a live header with group name using text 1 Click the Insert Text Object button on the Insert Tools toolbar. 2 Place the object frame into the Group Header section for the group. 3 Type in the desired text with a space after it. 4 Click the Field Explorer button on the Standard toolbar.

Crystal Reports User’s Guide

143


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.