PDASet PosPrintPro User Guide

PDASet Software
http://www.pdaset.com
PosPrintPro ver. 1.0.0 Library
User Manual
Introduction................................................................................................................................................. 2
Connection options and used hardware ...................................................................................................... 3
Matrix printer connected via COM interface.......................................................................................... 3
A matrix printer connected by means of IrDA-COM adapter ................................................................ 4
A matrix printer connected via a cradle with built-in IrDA-COM adapter ............................................ 5
Usage of solution POSPack .................................................................................................................... 6
PosPrintPro API.......................................................................................................................................... 7
Functions................................................................................................................................................. 7
ppVersion............................................................................................................................................ 7
printInstance........................................................................................................................................ 7
Interfaces and Classes............................................................................................................................. 7
ppPrint................................................................................................................................................. 7
ppDocument...................................................................................................................................... 10
ppContext.......................................................................................................................................... 12
Structures .............................................................................................................................................. 14
Settings.............................................................................................................................................. 14
rawPrinterSettings............................................................................................................................. 15
Examples of usage PosPrintPro API......................................................................................................... 18
PDASet Software
A
http://www.pdaset.com
Introduction
PosPrintPro it an easy-to-use tool of a software developer, allowing one to add printing capability (on matrix and POS printers) for hand-helds operating under Pocket PC /Pocket PC 2002 operating systems.
Key features of PosPrintPro library which favorably distinguish it from other libraries of the similar schedule and make it more lucrative, are:
Simple-in-use library engine giving to the designer a print-out capability of elaborating documents with text complex formatting, by breaking documents into the main components, such as header and footer, introduction and conclusion sections, cyclical-output data in the document body, etc.
Simplicity of connection and usage of the library in your applications.
Adding a print preview option for documents prepared for print-out. Printing of any documents, such as invoices, receipts, load reports and others. Possibility of creating your own document templates for their further usage in your applications. Operation with matrix printers that allows one a fast and easy print-out of up to 5 full-page copies of the same document in "field" on-the-go conditions.
PosPrintPro is a program library written in C language which allows the user's application to execute print preview and printout of documents on IBM- and Epson-compatible printers connected to a Pocket PC via COM or infrared (IrDA) interfaces.
Customer Application
PosPrintPro.lib
PosPrintPro API
PosPrintPro Core
PosPrintPro Demo / Sample Application
WinCE
Serial
Comms
API
WinCE
WinSock
PI
COM printer (RS232 UART
IrDA-COM adaptor
IrDA printer
PosPrintPro it is the library unit and the initial code in C++ language, developed for Pocket PC applications and supporting the Pocket of PC and Pocket PC 2002 operating systems.
PDASet Software
http://www.pdaset.com
Connection options and used hardware
PosPrintPro can be used in the various configurations and different hardware. For the sake of brevity, only few options of usage of the given library with various equipment are listed below.
Matrix printer connected via COM interface
Let's discuss the two main options for Pocket PC connection to a standard matrix printer with COM the interface:
1. A pocket computer with a COM port is connected directly to the printer with usage of a special cable. We shall illustrate the given connection type by the example of handheld computer Compaq iPAQ and printer Epson LX 300 +
The required cable for the given connection can be ordered directly from our company.
2. By using a standard cable, printer is connected to COM port of Pocket PC cradle. We shall illustrate the given connection type by an example of handheld computer Rover PC P5 and printer OKI Microline 280.
PDASet Software
http://www.pdaset.com
For the given sort of connection in PosPrintPro library the type of printer PRINTER_COM is used.
An ink-jet printer with built - in IrDA interface
The pocket computer, with help of IrDA interface is connected directly to the printer with built - in IrDA interface. We shall illustrate the given connection type by an example of handheld computer Dell Axim 5 and printer Canon BJC-85.
For the given type of connection in PosPrintPro library the type of printer PRINTER_IRDA_CLIENT is normally used.
A matrix printer connected by means of IrDA-COM adapter
IrDA adapter with built-in support of conversion for RS232 port into IrDA (which does not require any software for usage of a special IrDA protocol) is connected to COM port of a standard matrix printer. The pocket PC with help of IrDA interface is connected to IrDA-COM adapter. We shall illustrate the given connection type by the example of handheld computer Casio Cassiopeia E-125, IrDA-COM ACTiSYS ACT-IR100S adapter and matrix printer OKI Microline 280.
PDASet Software
http://www.pdaset.com
For the given sort of connection in PosPrintPro library the type of printer PRINTER_IRDA_CLIENT is normally used.
A matrix printer connected via a cradle with built-in IrDA-COM adapter
PDASet Software
http://www.pdaset.com
The printer is connected by a standard cable to COM port on a Pocket PC cradle, which, in its turn, is connected to the respective Pocket PC through IrDA interface. We shall illustrate the given connection type by an example of handheld computer Casio Cassiopeia IT-70M30E and printer Epson LX 300 +.
For the given type of connection in PosPrintPro library the type of printer PRINTER_IRDA_SERVER (as in the example considered above), and PRINTER_IRDA_CLIENT for other type of equipment can be used.
Usage of solution POSPack
PosPrintPro can also be applied within framework a ready-made solution POSPack represented on the site http://www.pospack.com/
.
For the given sort of connection in PosPrintPro library the type of printer PRINTER_COM is used.
Loading...
+ 12 hidden pages