Create a formula column to retrieve the barcode image

Building a Report with a Barcode 43-11 ■ ORDER_TOTAL ■ CF_1 7. On the Fields page, click the double right arrows to move all of the fields to the Displayed Fields list, then click Finish. 8. In the Paper Layout view, click the Run Paper Layout button in the toolbar to run your report.

9. In the Runtime Parameter Form, next to P_ORDER_ID, type 2354.

10. Once your report displays in the Paper Design view, you can rearrange your layout objects in the Paper Layout view to make your report look something like Figure 43–4 . To create this format: ■ In the Paper Layout view, remove the surrounding parent frame M_G_CUST_ FIRST_NAME_GRPFR, then click the Confine Off button and the Flex Off button in the toolbar. ■ Using the shippingmanifest.rdf example report as a guide, add three rectangles and three text objects for: – Shipping Details : Set text properties to Arial, 16, bold. Create a frame to add the following fields: cust_first_name, cust_last_name, street_address, city, state_province, postal, country_name. – Tracking Details : Set text properties to Arial, 16, bold. Move the ImageFilename object onto this rectangle. – Order Details : Set text properties to Arial, 16, bold. Move the labels and fields for Order ID and Order Date onto this rectangle. Move the field F_ Order_Total onto this rectangle and set text properties to Courier New, 24, bold. ■ Set the text properties for all other field values to Courier New, 10. Additionally, set F_Line_Total to bold. ■ Format numeric field values to display currency, decimals, and right align them. ■ Set Fill Color for each rectangle, totals field, and table header as desired. 43-12 Oracle Reports Users Guide to Building Reports Figure 43–4 Paper Design view of the barcode paper report 11. Save the report. You have now finished building a barcode report for paper.

43.3 Create a Barcode Report for the Web

The steps in this section show you how to build a JSP-based Web report, using the barcode JavaBean you imported in Section 43.2.1, Import the Java classes into Reports Builder . If you want to build a paper report with a barcode, see Section 43.2, Create a Barcode Report for Paper . If you are not familiar with creating a JSP-based Web report and would like to learn how to create one, refer to the Oracle Reports Tutorial. The report you will create in this section is the same as the one you created for paper. You will create a report that displays the invoice for a particular customer. This invoice will display the address of the customer, his order, and a barcode that represents the tracking number for the order. The company can use this barcode to find out the status of the order. You can run the final version of the JSP report we have provided to see what you will build in these steps, but please note that you will need to update the location of the images in the source code see Section 43.3.3, Initialize the barcode JavaBean and set its properties before you can run the report to the Web. Note: If you are not sure whether you produced the desired results, you can always open the example report called ShippingManifest.pdf in Acrobat Reader. Or, you can run ShippingManifest.rdf to paper and the report will display in the Paper Design view. Note: Before you begin this section, make sure you have all the necessary files, and that you have imported the Java classes, and set up the class path. See Section 43.1, Prerequisites for This Example and Section 43.2.1, Import the Java classes into Reports Builder .