
July 2nd, 2003, 01:19 PM
|
|
Junior Member
|
|
Join Date: Sep 2002
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Java script to send DOS print command
I'm attempting to print to a Zebra printer (barcode) by taking the results of an .asp page and sending the output to the Zebra printer, which will interpret the output / embedded Zebra Program Language (ZPL). Thus, printing the output at runtime.
Does anyone know how to send a dos command with a java script from an .asp page that will send the .asp result output to a notepad file then send the notepad file to the printer at run-time?
I tried a few scripts, but nothing worked.
<SCRIPT LANGUAGE='JavaScript'>
<!--
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6,-1); WebBrowser1.outerHTML = "";
-->
</SCRIPT>
The script works in Win2K/IE6.0, but craps out on XP an box. Encounters an unreconized object error. Verified and checked all settings.
thanks!
|