Import the blank check image Set up the check printing fields

Building a Check Printing Report with Spelled-Out Cash Amounts 31-13 10. Position these two new fields below the other layout objects, so that your layout looks like this: Figure 31–15 Partial Paper Layout view with F_CHECK_NO1 and F_CHECK_NO2 11. Click the Field tool in the tool palette. 12. Draw a field below the other layout objects about 5 inches 12.5 centimeters long, so that your layout now looks like this: Figure 31–16 Partial Paper Layout view with F_1 field

13. While the new field, F_1, is still selected, click the Fill Color tool in the tool palette,

and choose No Fill. 14. Click the Line Color tool in the tool palette, and choose No Line. 15. Double-click the field F_1 display the Property Inspector. Note: Since this field is small, it may be difficult to find. You can use the Object Navigator to find and select the field. When you click a field in the Object Navigator, under Paper Layout, the corresponding field is also selected in the Paper Layout view. Note: We have expanded the size of the two new fields F_ CHECK_NO1 and F_CHECK_NO2 to make them easier to see, but you do not need to resize these fields. 31-14 Oracle Reports Users Guide to Building Reports 16. Set the Name property to F_SPELLED_AMOUNT.

17. Under Field, set the Source property to SPELLED_AMOUNT the formula column

you created in Section 31.3.2, Create a formula column in your data model . 18. Save your report.

31.5.4 Rearrange the new fields according to the blank check image

The steps in this section will show you how to use the Paper Design view to rearrange the fields you just created. You will use the blank check image we have provided as a guide. 1. Click the Paper Design button in the toolbar to display your report in the Paper Design view. You will see your layout objects, as well as the blank check image: Figure 31–17 Partial Paper Design view of the check report

2. In the Paper Design view, position the F_ORDER_TOTAL field in the Amount

box in the blank check image. Note: When you click the Paper Design button while you are in another view that is, Paper Layout view or Data Model view, Reports Builder runs your query and your layout. If you receive any error messages when you click the Paper Design button, go back to your original view to verify your changes. You can always compare your report against the sample report we have provided, called spellcash.rdf. Note: You will see that the preview does not quite look like a check report. The steps in this section will show you how to move your fields so that your report looks like a proper check. Note: If you closed Reports Builder for any reason and are returning to building this report, make sure you click the Flex Off button in the toolbar so that you can move the fields around in the Paper Design view. Building a Check Printing Report with Spelled-Out Cash Amounts 31-15 3. Click the Align Right button in the toolbar, so that this portion of the check looks like the following: Figure 31–18 Amount area on blank check

4. Position the F_CHECK_NO field in the Check No. box on the blank check, and

center-align the text.

5. Position the F_ORDER_DATE field in the Date box on the blank check, and

center-align the text.

6. Position the F_CHECK_NO2 field in the upper right-hand corner of the check

image, and right-align the text.

7. Position the F_SPELLED_AMOUNT field next to the Pay Exactly: text on the

blank check image.

8. Position the F_CUSTOMER_NAME field next to the Pay To The Order Of: text

on the blank check image. The check should now look like this: Figure 31–19 Check image with fields positioned

9. Save your report.

31.5.5 Modify the look and feel of the check

The steps in this section will show you how to change the font, alignment, and formatting of the data on your check. To modify the look and feel of the check: 1. In the Paper Design view, choose Edit Select All or press CTRL+A.

2. Choose Format Font.

3. In the Font dialog box, choose Arial font, Regular style, Size 10, then click OK.

4. In the Paper Design view, click anywhere to deselect all the objects. Tip: If you have trouble deselecting the objects, go to the Object Navigator and click any item. The objects that were selected in the Object Navigator should display as deselected. 31-16 Oracle Reports Users Guide to Building Reports

5. In the Paper Design view, click F_CHECK_NO2 the check number in the upper

right-hand corner of the check and change the font to Arial, Bold, 12 point. 6. Click the F_ORDER_TOTAL field the number in the Amount box on the check. 7. Click the Currency button in the toolbar, then click the Commas button.

8. While F_ORDER_TOTAL is still selected, click the Add Decimal Place button in

the toolbar twice, so that the amount now displays like this: 46,257.00.

9. Choose Tools Property Inspector to display the Property Inspector for F_

ORDER_TOTAL .

10. Under Field, next to the Format Mask property, add to the beginning of the

existing format mask , then close the Property Inspector. The amount should now display like this: 46,257.00.

11. Select the F_CUSTOMER_NAME and F_SPELLED_AMOUNT fields by

Shift-clicking them, then change the font to Times New Roman, 12 point. Your report should now look something like this: Figure 31–20 Formatted Check 12. Save your report.

31.6 Create a Check Stub With Payment Information and Order Details

When you create a check printing report, you will sometimes want to create a check stub that contains the payment information on the check, as well as the details of the order. The steps in this section will show you how to create a check stub that contains the payee, amount, date, check number, and other payment information. You will then use the information retrieved by the second query in your data model to print a simple tabular report on the check stub that displays the order information associated with the check.

31.6.1 Create a check stub in the Paper Design view

The steps in this section will show you how to use the tools in the Paper Design view to create a check stub for your check report. You will rearrange the fields you created Note: You will notice that the other boilerplate text is still overlaying the image. We will rearrange this text later in the chapter.