A-48 Programmer’s Manual
string fmtUPCE2 = "{F,1,A,R,E,200,200,\"UPCE2\"|"+
"C,150,49,0,50,8,8,A,L,0,0,\"M6039 Platinum\",1|" +
"B,1,9,V,25,35,12,4,100,7,L,0|" +
"T,2,22,V,133,1,0,1,1,1,O,C,0,0|}";
string fmtUPCE5 = "{F,1,A,R,E,200,200,\"UPCE5\"|"+
"C,150,49,0,50,8,8,A,L,0,0,\"M6039 Platinum\",1|" +
"B,1,12,V,25,20,13,4,100,7,L,0|" +
"T,2,22,V,133,1,0,1,1,1,O,C,0,0|}";
Ultra.Print rPrint = new Print();
// Instantiate Print Class
// --Get the Barcode Type
strType = objForm.txtScanType.Text;
// --Clear any errors
rPrint.ClearError();
// --Print Format & Batch
switch (strType)
{
case "Code 39":
rPrint.Text = fmtC39;
rPrint.Text = "{B,1,N,1|E,0,0,1,1,0,1|";
rPrint.Text = "1,\"" + strScanData + "\"|2,\"" +
strScanData + "\"|3,\"" + strType + "\"|}";
objForm.lblStatus.Text = "";
break;
case "Codabar":
rPrint.Text = fmtCodabar;
rPrint.Text = "{B,1,N,1|E,0,0,1,1,0,1|";
rPrint.Text = "1,\"" + strScanData + "\"|2,\"" +
strScanData + "\"|3,\"" + strType + "\"|}";
objForm.lblStatus.Text = "";
break;
case "Code 128":
rPrint.Text = fmtC128;
rPrint.Text = "{B,1,N,1|E,0,0,1,1,0,1|";
rPrint.Text = "1,\"" + strScanData + "\"|2,\"" +
strScanData + "\"|3,\"" + strType + "\"|}";
objForm.lblStatus.Text = "";
break;