The PSExternalEx Method of the NarrowBand ActiveX Object is used to send commands via the Adaptive Printer Driver and return the result of the command.
PSExternalEx (Method of the NarrowBand ActiveX Object) Syntax iResult = NarrowBand.PSExternalEx(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
Return Values
Name Description iResult Integer representing the result of sending the command (see APD documentation for return values)
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