3-18 Programmer’s Manual
FileParse
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. This command is a different from the File
command by reading the passed file and sending the packets one by one
checking the status after each packet has been sent. Any data that is in
between the packets will not be sent to the printer.
Syntax
public string File
Parameters
FileName to be sent for printing
Return Values
None
Example C#
using Ultra;
string strScanData = "C39";
Ultra.Print rPrint = new Print(); //Instantiate class
rPrint.FileParse = "\\Onboard Flash\\AllFmts.txt";
rPrint.Text = "{B,1,N,1|E,0,0,1,1,0,1|";
rPrint.Text = "1,\"" + strScanData + "\"|2,\"" + strScanData
+ "\"|}";
Example VB.NET
Import Ultra
Dim rPrint As New Print ' Instantiate class
Dim strScanData As String = "C39"
rPrint.FileParse = "\Onboard Flash\AllFmts.txt"
rPrint.Text = "{B,1,N,1|E,0,0,1,1,0,1|"
rPrint.Text = "1" & Chr(34) & strScanData & Chr(34) & "|"
rPrint.Text = "2" & Chr(34) & strScanData & Chr(34) & "|}"