
really mean anything. It is used only to test the printout.\x0d";
const char TextStr1[] = "The last try was not long enough so I have to type some
more. This much text should make sure we see wraps at the end of the lines.\x0d";
OpenPort(ParentWindowHandle);
// Send the data to the printer.
SerialWriteString("\x1b\x50\x01", 3);
SerialWriteString("\x1b\x49\x30", 3);
SerialWriteString("\x1b\x4C\x30", 3);
SerialWriteString("\x1b\x4D\x30", 3);
SerialWriteString(TextStr0, -1);
SerialWriteString(TextStr1, -1);
SerialWriteString("\n Blackroc Technology\n", -1);
SerialWriteString(" Pro60 Printer\x0d\x0d", -1);
// Set up for mark detection... also sets top of form
SerialWriteString("\x1b\x70\x0a\x01", 4);
SerialWriteString("Top of form set.\x0dMark detect set.\x0d", -1);
SerialWriteString("\x0dCharacter Set...\x0d", -1);
PrintCharSet();
SerialWriteString("\x0d\x1b\x49\x31", 4);
SerialWriteString(" This is inverse! \x0d", -1);
SerialWriteString(" ", -1);
SerialWriteString("Check for missing lines \x0d", -1);
SerialWriteString("\x1b\x49\x30This is normal\x0d", 18);
SerialWriteString("\x1b\x4c\x31This is underlined\x0d", 22);
SerialWriteString("\x1b\x4c\x30This is normal\x0d", 18);
SerialWriteString("Form feeding...\x0dlooking for mark\x0d", -1);
SerialWriteString("\x0C", 1);
SerialWriteString("After form feed\x0d", -1);
Sleep(1000);
ClosePort();
return TRUE;
}
// ---------------------------------------------------------------------------
7 WinCE Printer Driver Programming
The Pro60 is supplied with a suitable driver for WinCE. This driver is presently available for
devices based upon the ARM processor.
Access to the printer is available to a programmer via a dll that must be present on the machine.
This dll is invoked by the following code and is further illustrated in the example application
described later in this document.
PrinterDC = CreateDC(L"Pro60_ArmI.dll", NULL, L"COM7:", &DeviceMode);
7.1 Example WinCE Application – Printer Driver Version
The following code samples describe an example WinCE application that will generate some simple
output on the printer. The application assumes that a Bluetooth connection has been established
between the handheld and the printer. The application therefore prints to a (virtual) serial port. It
exercises some basic GDI functionality by drawing some text and some basic line graphics together
Содержание Pro60
Страница 1: ...Blackroc Pro60 Thermal Printer Programming Manual March 2007 V1 4 ...
Страница 21: ...DeleteObject BitmapHandle return TRUE ...
Страница 24: ...Windows Mobile 2003 ...
Страница 25: ......
Страница 26: ...Alphabetical Index ...