qPrinter² allows inline styles to be included in
the text of FormatBlocks and TextBlocks. This includes Bold,
Italic and Underline. A new inline style command
in qPrinter² is the <TAB=n> command. This will
position the next piece of text at position 'n' horizontally on the
page.
qPrinter² also allows Variable inserts to be
included in the text. These include Page Number and Page
Total.
| Style Inserts |
| <B> |
Bold |
| <I> |
Italic |
| <U> |
Underline |
| <FONT=n> |
Change
font face where n is a string indicating the name of the font
face |
| <SIZE=n> |
Change
the size of the font (n) |
| <COLOR=n> |
Change
the colour of the text where n is a hexadecimal represented by
#rrggbb |
| <ALIGN=n> |
Change
the Alignment (Left, Centre, Center, Right or Justify).
Only one call can be made per line. If more than one
call is made, the last one will be used. The new
alignment will value will be used for all subsequent lines
until changed or an end tag is encountered. The end tag
will return the alignment to the TextItem default. |
| <LINDENT=n> |
Change
the Left Indentation of the TextItem. This is
independent of the default .IndentLeft value. A forced
same line print will be initiated. Anything that has
already been queued for the line will be printed before the
Indent is implemented. This allows lefthand margin
titles similar to the layout of this page. |
| <RINDENT=n> |
Change
the Right Indentation of the TextItem. See
<LINDENT=n> |
| <FORCE> |
Anything
on the line prior to the FORCE call will be sent to the
printer/preview and the next piece of information will be
printed at the same vertical position. This allows
left/right alignment on the same line e.g.
Left<FORCE><ALIGN=Right>Right
would print Left on the left hand margin and Right
on the
right hand margin. |
| <TAB=n> |
Move the
next piece of Text to 'n' horizontally. This insert is
dependent on the ScaleMode
of the document. This can include a right to left
movement. |
| End
Tags |
All style
tags can be closed using </style> e.g.
</B></FONT> there is no requirement for a
closing FORCE tag or TAB tag. |
| Variable Inserts |
| #PageNumber# |
Inserts the Current Page number. |
| #PageTotal# |
Inserts the Total number of pages
in the document |
| #LongDate# |
Inserts Date in Long format |
| #ShortDate# |
Inserts Date in Short format |
| #LongTime# |
Inserts Time in Long format |
| #ShortTime# |
Inserts Time in Short format |
| #AppName# |
Inserts the name of the
Application printing the document specified in the AppName
property. |