*string* is one of two types of code names: user-created, and Reports Builder-recognized. A user-defined code name is any code that you create. A packaged code is a code name that Reports Builder will use when you select an attribute (for example, BOLD) from a layout object's Display Sheet dialog box.
bold underline off
bold UNDERLINE OfF
Underline Bold Off
This section contains the following five examples of printer files:
dflt.prt
- Default settings
dec180.prt
- DEC 180 printer
declno3.prt
- DEC LN03 printer
hplwide.prt
-
Landscape, wide paper
psport85.prt
- Postscript portrait
dflt.prt
example
printer "dflt"
height 66
width 80
after report control(L)
after page control(L)
return ""
linefeed control(J)
dec180.prt
example
printer "dec180"
height 66
width 180
before report control(L)
after report control(L)
after page control(L)
return ""
linefeed control(J)
>code "bold on" esc "[1m"
code "bold off" esc "[0m"
code "underline on" esc "[4m"
code "underline off" esc "[0m"
declno3.prt
Example
printer "dec LNO3"
height 66
width 80
return ""
linefeed 10
after report control(L)
after page control(L)
box horizontal "-"
box vertical "|"
box top left "+"
box top center "+"
box top right "+"
box center left "+"
box center center "+"
box center right "+"
box bottom left "+"
box bottom center "+"
box bottom right "+"
code "box on" ""
code "box off" ""
code "bold on" esc "[1m"
code "bold off" esc "[0m"
code "underline on" esc "[4m"
code "underline off" esc "[0m"
code "500" esc "[2N"
hplwide.prt
Example
printer "hplwide"
height 66
width 132
before report esc "(s0P" esc "&k2S"
esc "&17.27c66F"
after report control(L)
after page control(L)
return ""
linefeed control(J)
code "bold on" esc "(s7B"
code "bold off" esc "(s0B"
code "underline on" esc "&dD"
code "underline off" esc "&d@"
psport85.prt
Example
printer "postscript portrait" % set printer type
postscript %% declare this a PostScript printer
height 66 %% height of the page in characters
width 85 %% width of the page in characters
return "" %% unnecessary for PostScript
linefeed "" %% unnecessary for PostScript
before report "
PORTRAIT %% set portrait mode
12 FONTSIZE %% pick a suitable font size
8.5 PAPERWD %% 8.5 x 11 paper size
11 PAPERHT %%
66 PAGEHT %% each page is 80 x 66
85 PAGEWD %%
0.2 LEFTMARGIN %% leave small border
0.2 RIGHTMARGIN %%
0.2 TOPMARGIN %%
0.2 BOTTOMMARGIN %%
NORMAL %% set up normal Courier font
after report "" %% unnecessary for PostScript
after page "" %% unnecessary for PostScript
box horizontal "a"
box vertical "b"
box top left "c"
box top center "d"
box top right "e"
box center left "f"
box center center "g"
box center right "h"
box bottom left "i"
box bottom center "j"
box bottom right "k"
code "box on" "BOX"
code "box off" "NORMAL"
code "bold on" "BOLD"
code "bold off" "NORMAL"
code "underline on" "UNDERLINE"
code "underline off" "UNDERLINESTOP"
code "italic on" "OBLIQUE"
code "italic off" "NORMAL"
code "bold italic on" "BOLDOBLIQUE"
code "bold italic off" "NORMAL"
code "bold underline on" "BOLD UNDERLINE"
code "bold underline off" "NORMAL UNDERLINESTOP"
code "italic underline on" "OBLIQUE UNDERLINE"
code "italic underline off" "NORMAL UNDERLINESTOP"
code "bold italic underline on" "BOLDOBLIQUE UNDERLINE"
code "bold italic underline off" "NORMAL UNDERLINESTOP"
code "1" " PROPORTIONAL /Times-Bold 14 SETFONT"
code "2" " MONOSPACE NORMAL "
Copyright © 1984, 2005, Oracle. All rights reserved.