Printtext - Citizen CMP-20 series Program Manual

Mobile thermal printer windows ce and windows mobile module
Hide thumbs Also See for CMP-20 series:
Table of Contents

Advertisement

2.5. PrintText

This function is used for supporting text printing
long
PrintText(
LPCTSTR Data,
long Alignment,
long Attribute,
long TextSize
)
[Parameter]
* Data
- Pointer to a null-terminated Unicode string. It sets Unicode text to print.
* Alignment
- This value is alignment. It sets text alignment.
Variable
LK_ALIGNMENT_LEFT
LK_ALIGNMENT_CENTER
LK_ALIGNMENT_RIGHT
* Attribute
- This value is text attributes. It sets text attributes to print.
Variable
LK_FNT_DEFAULT
LK_FNT_FONTB
LK_FNT_BOLD
LK_FNT_UNDERLINE
* TextSize
- This value is text size. It sets text size to print.
Variable (Set up width ratio)
LK_TXT_1WIDTH
LK_TXT_2WIDTH
LK_TXT_3WIDTH
LK_TXT_4WIDTH
LK_TXT_5WIDTH
LK_TXT_6WIDTH
LK_TXT_7WIDTH
LK_TXT_8WIDTH
Description
Left alignment
Center alignment
Right alignment
Description
FontA, Set up as a standard
Set up as FontB
Set up as Bold attribute
Set up as Underline attribute
Description
Set up width ratio as x1
Set up width ratio as x2
Set up width ratio as x3
Set up width ratio as x4
Set up width ratio as x5
Set up width ratio as x6
Set up width ratio as x7
Set up width ratio as x8
- 6 -

Advertisement

Table of Contents
loading

Table of Contents