Printer Code After property
Printer codes are printer escape sequences that define special printing instructions
(for example, special font sizes or highlighting) for the object. The Printer Code
After property specifies the printer escape sequence to be executed after each
line of the object. The printer escape sequences are inserted after the object
is triggered to print but before it has actually printed.
Applies to |
Layout objects |
Values |
A valid printer code reference
not to exceed 256 bytes in length. Entries may be of the form &number,
where number is a number assigned to a packaged Reports Builder printer
code or a printer code you've created. |
PL/SQL procedure |
SRW.SET_AFTER_PRINTING_CODE
|
Restrictions
- Printer codes are only used when running your
report in character-mode. They are not used when running it in bitmap.
Usage notes
- In most cases, you should be able to accomplish
any special formatting by writing PL/SQL for the layout objects.
Example
- Suppose that in your printer definition file you created two
printer codes named &123 and &456. Code &123 causes the printer
to print a special font and code &456 causes the printer to print the
normal font. Assume that you want all fields in a repeating frame (R_1) to
be printed using the special font. You could either use the printer code for
each individual field or use it for the entire repeating frame. The latter
case is easier to create and maintain.
- In the properties for the R_1 repeating frame, you enter &123
for Printer Code Before, and &456 for Printer Code After. When R_1 is
printed, the printer code will be executed before and after each line of R_1
is printed.
The diagram below shows the points at which
each printer code is invoked:
Copyright © 1984, 2005, Oracle. All rights reserved.