elitevenkat Active Member Licensed User Longtime User Feb 6, 2018 #1 i am creating a txt file with billing info. i use cmd command and redirect to local/network printer. The document is printed but the printer ignores the esc/pos command for emphasised mode Code: Copy bp.WriteLine(Chr(27) & Chr(29) & "I" & Chr(8) & Utils.CalignText(Main.cHotelName,40) & Chr(27) & Chr(29) & "I" & Chr(0)) 'bp is the file object paper cut Code: Copy bp.WriteLine(Chr(27) & Chr(29) & "V" & Chr(65) & Chr(1)) '; ←Feed paper And cut bp.Close the above control commands don't work. the printer is epson tmu220 any help ?
i am creating a txt file with billing info. i use cmd command and redirect to local/network printer. The document is printed but the printer ignores the esc/pos command for emphasised mode Code: Copy bp.WriteLine(Chr(27) & Chr(29) & "I" & Chr(8) & Utils.CalignText(Main.cHotelName,40) & Chr(27) & Chr(29) & "I" & Chr(0)) 'bp is the file object paper cut Code: Copy bp.WriteLine(Chr(27) & Chr(29) & "V" & Chr(65) & Chr(1)) '; ←Feed paper And cut bp.Close the above control commands don't work. the printer is epson tmu220 any help ?
Daestrum Expert Licensed User Longtime User Feb 6, 2018 #2 Have you tried writing them as bytes instead of char, as it's probably sending the Unicode value? Upvote 0
elitevenkat Active Member Licensed User Longtime User Feb 6, 2018 #3 Daestrum said: Have you tried writing them as bytes instead of char, as it's probably sending the Unicode value? Click to expand... the following code works. added "@" Code: Copy bp.WriteLine(Chr(27) & "@" & Chr(29) & "V" & Chr(65) & Chr(1)) '; ←Feed paper And cut have to try for correct command for emphasised mode. Upvote 0
Daestrum said: Have you tried writing them as bytes instead of char, as it's probably sending the Unicode value? Click to expand... the following code works. added "@" Code: Copy bp.WriteLine(Chr(27) & "@" & Chr(29) & "V" & Chr(65) & Chr(1)) '; ←Feed paper And cut have to try for correct command for emphasised mode.