The PSExternal Method of the NarrowBand ActiveX Object is used to send commands via the Adaptive Printer Driver without returning a result.
PSExternal (Method of the NarrowBand ActiveX Object) Syntax NarrowBand.PSExternal(iCommand, strParameter);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value iCommand See APD documentation for function values A four digit numeric value representing the required Adaptive Printer Driver function ID. N/A strParameter See APD documentation for function values String containing function specific parameters/data to be passed to the Adaptive Printer Driver. N/A
Examples
The following javascript code demonstrates the useage of this method:
<script> var NarrowBand = new ActiveXObject("PocketBrowser.NarrowBand"); var printerID = '2350C'; NarrowBand.PSExternal(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