Avery Dennison Platinum 6039 JavaScript User Manual
Page 28
3-10 Programmer’s Manual
FilePrint
Description
Writes MPCL packets to the Print subsystem.
You can send more than one packet at a time in a file.
A batch packet starts a print job, which makes an asynchronous call to
the Print subsystem. After submitting a print job, the application should
call LastPrintStatus in a loop, waiting until the printer becomes free.
Syntax
FilePrint
Parameters
FileName to be sent for printing
Return Values
None
Example
<SCRIPT src="./jsUltra.js"></SCRIPT>
<SCRIPT type="text/javascript">
strScanData = "C39";
PRINTER.FilePrint = "\\Onboard Flash\\C39Fmt.txt";
PRINTER.Print = "{B,1,N,1|E,0,0,1,1,0,1|";
PRINTER.Print = "1,\"" + strScanData + "\"|2,\"" +
strScanData + "\"|}";
</SCRIPT>
<BODY>
<OBJECT id=”PRINTER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;
HEIGHT: 0px"
classid=clsid:
19C1754D-BA97-43A1-A06D-496D2167400B>
</OBJECT>
//Instantiate
Class
</BODY>