Cannot print the barcode label when hosting in IIS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Cannot print the barcode label when hosting in IIS



I have one problem which is when i try to print through visual studio. It's work but when i publish it do not works. Here is my source code:


Dim pd As New PrintDocument
PrinterName = pd.PrinterSettings.PrinterName
Dim PrintString As String
PrintString = "<xpml><page quantity='0' pitch='13.0 mm'></xpml>{D0400,0480,0270|}"
PrintString = PrintString & "<xpml></page></xpml>{C|}"
PrintString = PrintString & "<xpml><page quantity='1' pitch='13.0 mm'></xpml>"

PrintString = PrintString & "{PV01;0280,0240,0022,0022,H,22,B=Asset ID" & "|}"
PrintString = PrintString & "{PV02;0280,0205,0040,0040,H,22,B=" & " " & ddlAssetNo.Text & "|}"

PrintString = PrintString & "{PV03;0280,0170,0022,0022,H,22,B=Department" & "|}"
PrintString = PrintString & "{PV04;0280,0135,0040,0040,H,22,B=" & " " & txtCode.Text & "|}"

PrintString = PrintString & "{PV05;0280,0100,0022,0022,H,22,B=Date In Service" & "|}"
PrintString = PrintString & "{PV06;0280,0065,0040,0040,H,22,B=" & " " & txtService.Text & "|}"

PrintString = PrintString & "{PV07;0280,0030,0022,0022,H,22,B=Category:" & "|}"
PrintString = PrintString & "{PV08;0200,0026,0040,0040,H,22,B=" & " " & txtCategory.Text & "|}"

PrintString = PrintString & "{PV09;0470,0090,0022,0022,H,22,B=" & " " & ddlAssetNo.Text & " " & "-" & " " & "|}"

PrintString = PrintString & "{PV10;0350,0090,0022,0022,H,22,B=" & " " & ddlUnit.Text & "|}"
PrintString = PrintString & "{PV11;0480,0035,0022,0022,H,22,B=" & " " & "#" & "|}"

If txtITTagNo.Text <> "" Then
PrintString = PrintString & "{PV12;0460,0040,0020,0020,H,22,B=" & " " & txtITTagNo.Text & "|}"
End If

PrintString = PrintString & "{LC;0290,0262,0290,0012,0,4,000|}"
PrintString = PrintString & "{LC;0480,0079,0290,0079,0,4,000|}"
PrintString = PrintString & "{LC;0470,0026,0290,0026,0,4,000|}"

PrintString = PrintString & "{XB00;0450,0240,Q,20,08,03,2,C022033=" & ddlAssetNo.Text & "," & ddlDepartment.Text & "," & ddlUnit.Text & "," & txtITTagNo.Text & "|}"
PrintString = PrintString & "{XS;I,0001,0002C2211|}"
PrintString = PrintString & "<xpml></page></xpml>{@007;0014|}"
PrintString = PrintString & "<xpml><End/></xpml>"

PrintDirect.SendStringToPrinter(PrinterName, PrintString)



can someone help what is the issue?Thanks in advance









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results