Ax Print
Ax Print
Description
AXPrint is an ActiveX control that provides methods for using non fiscal mobile printers via
PrinterUtility drivers package. This ActiveX control works only on devices with Windows
Mobile 5.0 and above.
Installation
Install and configure PrinterUtility drivers package. It is required to do that before
ActiveX control installation.
Install the ActiveX control with double click AXPrint.cab on device.
Usage in HTML
...
<OBJECT
ID="AXPrint"
CLASSID="clsid:4E507664-D8FB-4E2E-BBA7-01CDB7998F37"
WIDTH=0
HEIGHT=0
>
</OBJECT>
AXPrint.OpenPrinter(REGISTER_KEY);
if (AXPrint.ResultCode < 0) {
Alert("Failed to open printer");
}
AXPrint Properties
ResultCode - Read only property that contains result from method execution. If the value is
negative then an error occurs. The error can be one of:
ENONE = 0
EGENERAL = -1
ENOIMPLEMENTED = -2
EINTERRUPTED = -3
EBUSY = -4
EMEMORY = -5
ETIMEOUT = -6
EINVALIDPARAMS = -7
EFAILED = -8
Example:
AXPrint.OpenPrinter(REGISTER_KEY) ;
if (AXPrint.ResultCode < 0) {
Alert("Failed to open printer");
}
ResultData - Read only property that contains data from method execution. The all data
returned is in hex string format.
Example:
AXPrint.ReadSerialNumberEx() ;
serialNumber = AXPrint.ResultData;
IsSmartCardAvailable - Read only property that returns if smart card is available into
reader. After property execution the ResultCode contains whether the property returns a
valid value.
Example:
available = AXPrint.IsSmartCardAvailable;
if (AXPrint.ResultCode < 0) {
Alert("Failed to get smart card availability");
}
Release History
Version 1.0.2.1 (May 4, 2010)
Add align parameter to PrintImage method.
Version 1.0.1.1 (May 3, 2010)
Add PrintImage method.
Change the parameters in LoadLogo method.
Version 1.0.0.1 (April 21, 2010)
Initial public release.