Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Resources statement

The resources statement details the strings needed to be sent to the printer to perform operations such as turning bold on, forcing a new page, setting the printer into landscape mode etc.

The resources statement consists of the set of keyword and string pairs listed in the following table. Note that the EndResources keyword does not have an associated string.

Formally, the syntax is:

resources

resources-label

Reset

reset-string

SetPageSize

page-size-string

PreAmble

preamble-string

PostAmble

postamble-string

SetTextColor

text-color-string

BoldOn

bold-on-string

BoldOff

bold-off-string

ItalicOn

italic-on-string

ItalicOff

italic-off-string

UnderlineOn

underline-on-string

UnderlineOff

underline-off-string

StrikethroughOn

underline-on-string

StrikethroughOff

underline-off-string

NewPage

new-page-string

Portrait

set-portrait-mode-string

Landscape

set-landscape-mode-string

SetXPos

set-x-pos-string

SetYPos

set-y-pos-string

IncrementXPos

increment-x-pos-string

IncrementYPos

increment-y-pos-string

CarriageReturn

carriage-return-string

SetGraphicsColor

graphics-color -string

BitmapStart

bitmap-start-string

BitmapEnd

bitmap-end-string

Scanline

bitmap-scanline-string

EndScanline

bitmap-end-scanline-string

BitmapEnd

bitmap-end-string

EndResources

All attributes within a resources statement are strings enclosed in a pair of double quotes. For example:

SetPageSize         "<27>C<0>%c"
PreAmble            "<27>l<0><27>N<0><27>+<2><27>x<1>"
PostAmble           "<13><27>@"
BoldOn              "<27>G"
BoldOff             "<27>H"

Parameters can also be included in attribute strings, for example %c in the SetPageSize string.

Different printers may implement different numbers of resource strings — for example:

There are also eight numbered resources, Resource1 to Resource8, which can be included in the resource statement.