Creating page numbers Resetting page numbers

4-68 Oracle Reports Users Guide to Building Reports

2. From the Format menu, choose Font, Justify, Text Spacing, or Direction.

4.9.2.10 Changing text attributes using PLSQL

To change the font or justification of a text object using PLSQL instead of the user interface:

1. In the Object Navigator, expand the Paper Layout node.

2. Double-click the PLSQL icon next to the text objects.

3. In the PLSQL Editor, use the following built-in procedures to change the font or justification of the object as desired: SRW.SET_CHARMODE_TEXT SRW.SET_FONT_FACE SRW.SET_FONT_STYLE SRW.SET_FONT_WEIGHT SRW.SET_FONT_SIZE SRW.SET_JUSTIFICATION See also Topic SRW built-in package in the Reference PLSQL Reference Built-in Packages section of the Oracle Reports online Help.

4.9.3 Page Numbers or DateTime Stamps

This section provides procedures for the following tasks that you may perform as you work with page numbers or datetime stamps: ■ Creating page numbers ■ Resetting page numbers ■ Creating a time or date stamp

4.9.3.1 Creating page numbers

To create default page numbers:

1. In the Paper Layout view or Paper Design view, choose Insert Page Number.

2. In the Insert Page Number dialog box, choose from the list the location for the page number.

3. Click the desired page number format: Page Number Only or Page Number and

Total Pages . 4. Optionally, change the default attributes of the page number text as desired. Tip: To select multiple objects, click one object, then Shift-click all other objects. To select all objects, choose Edit Select All. Tip: To select multiple objects, click one object, then Shift-click all other objects. To select all objects, choose Edit Select All. How To... 4-69 To create customized page numbers: 1. In the Paper Layout view or Paper Design view, click the Edit Margin button in the toolbar. 2. Create a field object see Section 4.9.1.1, Creating a field object in the margin area for each page number value you require, for example Physical Page Number, Total Physical Pages.

3. In the fields Property Inspector, under the Field node, set the Source property to

the source for the page number, and set the Visible property to No. Under the General Layout node, set the Horizontal Elasticity property to Variable. 4. Create a boilerplate text object see Section 4.9.2.1, Creating a boilerplate object for text in the margin area, and reference the page number fields see Section 4.9.2.5, Referencing a field in boilerplate text using fieldname. Usage notes ■ To generate odd page numbers on the right and even pages numbers on the left, you have to create two fields: one on the right side, one on the left side. In the format trigger of each field, you test if it is an odd or an even page by using SRW.GET_PAGE_NUM. Then, you specify whether or not to display the field.

4.9.3.2 Resetting page numbers

To reset default page numbers created with Insert Page Number: 1. In the Paper Layout view or Paper Design view, click the default page number field, then choose Edit Delete to delete it.

2. Create customized page numbers see

Section 4.9.3.1, Creating page numbers .

3. In the page number fields Property Inspector, under Field, double-click the Page

Numbering property value.

4. In the Page Numbering dialog box, click the desired Reset At setting. Page

numbers will reset to the Start at value each time the selected frame is formatted. Click OK.

4.9.3.3 Creating a time or date stamp