TList for NET now supports new formatting codes for customizing headers and
footers while using PrintOneStep method.
Here is a list of all formatting codes:
\<p>\ - placeholder for displaying current page
number
\<tp>\ - placeholder for displaying total
page number
(Example: to print "Page 1 of 10" use the following format:
"Page
\<p>\ of \<tp>\")
\<align=left>\
\<align=center>\ - alignment of the
header\footer
\<align=right>\ text
across the page
\<font=name, size, bold, italic, underline>\
- font description for the header\footer, where:
name - string representing name of the font
size - string represnting size of the font, in points
bold, italic and underline -
"true"\"false" string
Notes:
I. All entries of "\<p>\" and
"\<tp>\" within header/footer get replaced by
corresponding values
Format example :
"\<p>\/\<tp>\, page
\<p>\ of \<tp>\"
converted and will look like :
"2/18, page 2 of 18"
II. Inside formatting codes "\<p>\"
and "\<tp>\" spaces are NOT allowed.
Invalid format example:
"\<p >\" and
"\< tp>\"
Such header/footer strings will be printed as it is, none of the formatting
codes will be interpreted.
III. You can include "\<align=...>\"
and "\<font=...>\" formatting codes only ONCE
per header/footer.
All subsequent codes will be printed as it is.
Format example:
"\<align=left>\ some text \<align=left>\"
will be left aligned and look like: " some text \<align=left>\"
IV. Inside formatting codes "\<align"
and "\<font" spaces are allowed. Format example:
"Page \<align = left>\ \<font = , 16, true, false, false>\
footer"
will be left aligned and printed with currently selected printer font, size 16,
bold:
"Page footer"
But user CAN NOT include space between "\<" and
formatting code name like "align".
Invalid format example:
"Page \< align = left>\footer"
Such header/footer string will be printed as it is, none of the formatting
codes will be interpreted.
"Page \< align = left>\footer"
V. Parameters of "\<font"
formatting code can be omitted.
Format example:
"Page \<font = ,,true>\ footer"
will be printed with currently selected printer font, size, and bold:
"Page footer"
VI. All formatting code names are case sensitive.
|