Set up your report layout

Building a Report Using a Preprinted Form 32-9 Figure 32–7 Report Block boilerplate object in the Object Navigator

9. While the object is selected, choose Tools Property Inspector to display the

Property Inspector or right-click the object and choose Property Inspector. 10. In the Property Inspector, under General Layout, set the Horizontal Elasticity property to Variable. This ensures that appropriate space is available for the mailing label text. 11. Save your report.

32.3.3 Add the order item details to your report

In this section, you will add a report block that displays the order items and details that correspond to the customer identified in each mailing label. These items and details are required for your preprinted form. To add order item details to your report: 1. In the Object Navigator, click the repeating frame R_G_CUSTOMER that surrounds the boilerplate object B_TBP created in Section 32.3.2, Create an address label for your form . 2. In the Paper Layout view, with R_G_CUSTOMER selected, use the corner resize handles to adjust the size of the repeating frame to the size of your preprinted form in our example, 8.5 inches 21.6 centimeters across and 11 inches 27.9 centimeters down. Make sure the frame does not extend beyond the single page boundary. 3. Click the Report Block tool in the tool palette. 4. Using the rulers as guides, drag a region 0.25 inches 0.5 centimeters from the left and 1.5 inches 4 centimeters from the top, to 8.25 inches 21 centimeters from the left and 2 inches 5 centimeters from the top. Release your mouse button to display the Report Block Wizard.

5. On the Style page of the Report Block Wizard, select Group Left, then click Next.

6. On the Groups page, click the following groups and click Down in the Available

Groups list to specify the Print Direction and move them to the Displayed Groups list, then click Next: ■ G_ORDER_DATE ■ G_ORDER_ITEMS 7. On the Fields page, click the following fields in the Available Fields list and click the right arrow to move them to the Displayed Fields list, then click Next: 32-10 Oracle Reports Users Guide to Building Reports ■ ORDER_DATE ■ PRODUCT_ID ■ PRODUCT_DESCRIPTION ■ QUANTITY ■ UNIT_PRICE ■ ITEM_TOTAL 8. On the Labels page, remove the label names since they are not required for the preprinted form, and adjust the widths as follows, then click Next:

9. On the Template page, select No Template, then click Finish to display your

report layout in the Paper Layout view. It should look something like this: Figure 32–8 Paper Layout view of the preprinted form example with mailing label and order item details

10. Save your report.

32.3.4 Adjust the layout and add summaries

Now that you have added the elements you want displayed on your report, you need to set up the layout so that only records required for the preprinted form display on each page, and that the correct amount of information displays in the available amount of space on the form. Also, the form requires that a summary of each page displays in the same location on the page. Fields and Totals Labels Width ORDER_DATE none 9 PRODUCT_ID none 8 PRODUCT_DESCRIPTION none 40 QUANTITY none 4 UNIT_PRICE none 8 ITEM_TOTAL none 10 Note: The Width values are based on the space available on the preprinted form.