Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning

I have a simple program that generate qrcode placed in picture box and save it to specific path as jpg.file.
My question is how can i send this file to thermal printer to print.

What I have tried:

C#
txtQRCode.Text = textBox6.Text + textBox2.Text + textBox7.Text + textBox3.Text + textBox4.Text + textBox5.Text;
                            QRCodeGenerator qr = new QRCodeGenerator();
                            QRCodeData data = qr.CreateQrCode(txtQRCode.Text, QRCodeGenerator.ECCLevel.Q);
                            QRCode code = new QRCode(data);
                            pic.Image = code.GetGraphic(5);
                            pic.Image.Save(@"C:\Algo\2.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
Posted
Comments
Richard MacCutchan 31-Jul-20 3:48am    
Any program that can read a .jpg file will most likely have a print option.
[no name] 31-Jul-20 12:43pm    
Depends on the driver (and utilities) that come with the thermal printer and the "printer codes / language" it supports. Read the manual for the printer; it's not "plug and play" in my experience; most of these things hark back to XP.

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