Add the order item details to your report

Building a Report Using a Preprinted Form 32-11 To adjust the layout and add page summaries:

1. In the Object Navigator, click M_G_ORDER_ITEMS_GRPFR, as shown in the

following image: Figure 32–9 Selected frame in the Object Navigator 2. In the Paper Layout view, you should see the same object selected, as shown in the following image: Figure 32–10 Selected repeating frame in the Paper Layout view

3. In the Object Navigator, double-click the properties icon next to M_G_ORDER_

ITEMS_GRPFR to display the Property Inspector, and set the following properties: ■ Under General Layout, set the Vertical Elasticity property to Fixed to ensure that only this area is available for the order items to display.

4. In the Object Navigator, double-click the properties icon next to R_G_

CUSTOMER to display the Property Inspector, and set the following properties: ■ Under Repeating Frame, set the Maximum Records per Page property to 1, to ensure that only one customers information prints per page.

5. In the Object Navigator, double-click the view icon next to the Paper Layout node

to display the Paper Layout view.

6. In the Paper Layout view, click the Field tool in the tool palette.

7. Draw a region 7 inches 18 centimeters from the left and 10.25 inches 26

centimeters from the top, to 8 inches 20 centimeters from the left and 10.5 inches 27 centimeters from the top. Note: This field, as well as the second field you will create, should not be located within the repeating frame called M_G_ORDER_ DATE_GRPFR. If you cannot fit these fields on the page, resize the repeating frame so that you can place the fields below the repeating frame, but still on the same page. 32-12 Oracle Reports Users Guide to Building Reports

8. Double-click the new field object F_1 to display the Property Inspector, and set

the following properties: ■ Under General Information, set the Name property to F_PAGE_TOTAL. ■ Under Field, set the Source property to CS_PAGE_TOTAL the summary column you created in Section 32.2, Manually Create the Data Model for Your Report . 9. Following the steps above, create another field directly below F_PAGE_TOTAL in the Paper Layout view, then set its Name property to F_ORDER_TOTAL and Source property to CS_ORDER_TOTAL. 10. The new layout objects should now look like this: Figure 32–11 F_PAGE_TOTAL and F_ORDER_TOTAL fields in the Paper Layout view

11. Save your report.

32.4 Format Your Report in the Paper Design View

The steps in this section will show you how to preview your report in the Paper Design view, and make a few last-minute tweaks using the tools in the Paper Design view. It is sometimes easier to use the Paper Design view to finish your report, since you can see actual data displayed. To format your report in the Paper Design view:

1. Click the Paper Design button in the toolbar to display the Paper Design view.

2. In the Paper Design view, click the field F_PRODUCT_DESCRIPTION.

3. Increase the size of this field as much as possible, given the size of the area on your

form.

4. Shift-click to select the four numbered fields, then click the Align Right button in

the toolbar. Tip: If you cannot find this field, you can use the Object Navigator to find the field name and click it. When you select an item in the Object Navigator, the corresponding object is selected in the Paper Design view.