Prerequisites for This Example Use the Report Wizard to Create a Report

Building a Tabular Report 5-3 SELECT ALL DEPARTMENTS.DEPARTMENT_ID, DEPARTMENTS.DEPARTMENT_NAME, DEPARTMENTS.MANAGER_ID, DEPARTMENTS.LOCATION_ID FROM DEPARTMENTS ORDER BY DEPARTMENTS.DEPARTMENT_ID

8. Click Next.

9. On the Fields page, click the double right arrows to move all of the fields to

the Displayed Fields list, then click Next. 10. On the Totals page, click Next. 11. On the Labels page, click Next. 12. On the Template page, select Predefined Template and click Beige, then click Finish to display your report output in the Paper Design view. It should look something like this: Figure 5–2 Paper Design view for the tabular report Tip: This query selects all the department IDs, the department names, the manager IDs, and the location IDs, then sorts the data by the department IDs. Note: You can enter this query in any of the following ways: ■ Copy and paste the code from the provided text file called tabular_code.txt into the Data Source definition field. ■ Click Query Builder to build the query without entering any code manually. ■ Type the code in the Data Source definition field. Note: If you are not already connected to a database, you will be prompted to connect to the database when you click Query Builder or Next. Ensure that you connect to a database that has the appropriate schema for this example. Section 5.1, Prerequisites for This Example describes the sample schema requirements for this example. 5-4 Oracle Reports Users Guide to Building Reports 13. Save the report as tabularreport_your_initials.rdf.

5.3 Summary

Congratulations You have successfully created a tabular paper report. You now know how to: ■ define a tabular report layout using the Report Wizard. For more information on any of the wizards, views, or properties used in this example, refer to the Oracle Reports online Help, which is available in Oracle Reports Builder or hosted on the Oracle Technology Network OTN, as described in Section 4.1.1, Using the Oracle Reports online Help . Note: In the Paper Design view, you can see how the tabular report displays the data like a table, in order of department ID number. Building a Mailing Label Report 6-1 6 Building a Mailing Label Report In this chapter, you will learn about mailing label reports, one of the standard report styles. By following the steps in this chapter, you can generate the report output shown in Figure 6–1 . Figure 6–1 Mailing label report output Concepts ■ A mailing label report consists of data displayed in a format suitable for use as address labels on envelopes. The labels can be printed in one or many columns, and can begin at any position. ■ In a mailing label report, you can combine data from the database with static text to create addresses, and print them out as mailing labels for envelopes. ■ Mailing labels can be created using simple, one-query reports with a mailing label layout style. Data Relationships To fetch the data for a mailing label report, all you need to do is create a query to select it. Layout ■ Oracle Reports provides a default mailing label layout in which the fields are positioned so that each field is directly below the preceding field. Field labels are not printed. ■ You will use the Report Wizard to create a simple mailing label report. The Report Wizard provides you with a formatting page, where you can choose the layout of each mailing label. ■ You will use the Vertical Spacing field, located in the Property Inspector for the repeating frame, to control the amount of blank space between each mailing label. The default spacing between repeating frames may not be sufficient, and you may