I am trying to print a barcode to a label printer in older versions raw data was sent to the printer to accomplish this.
I found this vb6 code that I believe prints a barcode by sending commands to the printer. How is this accomplished in .net I can print to the printer but everything is viewed as text to be printed. Is there a way to switch to program mode or something of that nature.
Here is the vb6 code
Debug.Print strvar4 barcode
Printer.Print Spc(2); vbCrLf & "N" & vbCrLf & "Q507,20+0" & vbCrLf & "R0,0" & vbCrLf & "S2" & vbCrLf & "D5" & vbCrLf & "ZT" & vbCrLf & "TTH:m:s:,+" & vbCrLf & "TDy2.mn.dd" & vbCrLf & "B207,10,0,3,2,4,101,B, RC-97-0001" & vbCrLf & "P1" & vbCrLf strvar4;
I found this vb6 code that I believe prints a barcode by sending commands to the printer. How is this accomplished in .net I can print to the printer but everything is viewed as text to be printed. Is there a way to switch to program mode or something of that nature.
Here is the vb6 code
Debug.Print strvar4 barcode
Printer.Print Spc(2); vbCrLf & "N" & vbCrLf & "Q507,20+0" & vbCrLf & "R0,0" & vbCrLf & "S2" & vbCrLf & "D5" & vbCrLf & "ZT" & vbCrLf & "TTH:m:s:,+" & vbCrLf & "TDy2.mn.dd" & vbCrLf & "B207,10,0,3,2,4,101,B, RC-97-0001" & vbCrLf & "P1" & vbCrLf strvar4;