Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

We have label designer project which creates scripts and sends to label printers.
Up to now it was working ok. But now I have to print labels in cryllic fonts.
I want to print with Zebra ZM400 printer.
Whatever I have tried, I couldn't make it to print in cyrillic.
I know I have to TT0003M_ font for cyrillic text.
Once I try to send the script below from zebra setup utilities via send file
it prints ok but in c# project it prints wrong!

If you can help me I would appreciate that so much.

Thanks in advance

C#
MemoryStream memStrm = new MemoryStream();
StreamWriter sw = new StreamWriter(memStrm);
sw.WriteLine("^XA");
sw.WriteLine("^A@N,30,30,TT0003M_");
sw.WriteLine("^FO100,100");
sw.WriteLine("^FDtestвутуьу^FS");
sw.WriteLine("^XZ");
sw.Flush();

memStrm.Position = 0;
RawPrinterHelper.SendDocToPrinter(PrinterName, memStrm, Encoding.GetEncoding("Windows-1251"));
sw.Close();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900