The PSGetLastMessage Method of the NarrowBand ActiveX Object returns the last error message encountered by the Adaptive Printer Driver.
PSGetLastMessage (Method of the NarrowBand ActiveX Object) Syntax strData = NarrowBand.PSGetLastMessage();
Return Values
Name Description StrData String representing the last error message encountered by the Adaptive Printer Driver.
Examples
The following javascript code demonstrates the useage of this method:
<script> var NarrowBand = new ActiveXObject("PocketBrowser.NarrowBand"); var printerID = '2350C'; NarrowBand.PSExternalEx(261, printerID); if(NarrowBand.PSExternalEx(257, 'Hello World') > 0) { alert(NarrowBand.PSGetLastMessage()); } </script>
Copy example to clipboard
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Executes immediately Min. Requirements None