Adjust the layout and add summaries

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. Building a Report Using a Preprinted Form 32-13

5. At the bottom of the page, Shift-click the two fields F_PAGE_TOTAL and F_

ORDER_TOTAL , then click the Line Color tool in the tool palette and choose No Line . 6. Shift-click the three currency number fields on the right. 7. Click the Currency button in the toolbar to add a dollar sign to the amounts. 8. Click the Commas button to add a comma to values over 999. 9. Click the Add Decimal Place button twice to add two decimal places to the values. 10. In the Object Navigator, Shift-click the following three objects: ■ B_TBP ■ F_ORDER_TOTAL ■ F_PAGE_TOTAL 11. Choose Tools Property Inspector to display the Property Inspector, and set the following properties: ■ Under Advanced Layout, set the Print Object On property to All Pages, and set the Base Printing On property to Enclosing Object. 12. In the Paper Design view, adjust the sizes of the fields according to the measurements on your preprinted form. Your report should now look like this: Figure 32–12 Final preview of your preprinted form report 13. When you print your report on to the form, it might look something like this: Note: To see a more complete view of the report, you can open the sample report we have provided, called preprint.rdf. To view the report, open the report and click the Run Paper Layout button in the toolbar. 32-14 Oracle Reports Users Guide to Building Reports Figure 32–13 Final report printed on a sample preprinted form 14. Save your report.

32.5 Add Page Numbers optional

Some preprinted forms may require you to print page numbers. The steps in this section will show you how to add page numbers to your output that will display when the number of order items extends beyond a single page. To add page numbers to your report: 1. Click the Paper Layout button in the toolbar to display the Paper Layout view. 2. Click the Field tool in the tool palette. 3. Draw a small region on your layout 6 inches 15 centimeters from the left and 0.25 inches 0.5 centimeters from the top, to 7 inches 18 centimeters from the left and 0.5 inches 1.5 centimeters from the top.

4. 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_NUMBER. ■ Under General Layout, set the Horizontal Elasticity property to Variable. ■ Under Field, set the Source property to Page Number, and set the Visible property to No. Click the Page Numbering property field to display the Page Numbering dialog box. 5. In the Page Numbering dialog box: ■ Clear the Header Section and Trailer Section check boxes, and make sure that the Main Section check box is selected. ■ In the Reset At list, click R_G_Customer. ■ Click OK. 6. In the Paper Layout view, following the steps above to create another field from 7.25, 0.25 to 8.25, 0.5 inches or 18.5, 0.5 to 21, 1.5 centimeters . Note: The Paper Design view of your report will not look like the image above. We printed our report on a sample preprinted form. The above image is a snapshot of that form.