Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.31/5 (3 votes)
See more:
i finished my C# project(coffee shop)and i don't know how to print a receipt even how to create it usnig thermal printer and C#
Picture of receipt sample
Posted
Comments
glennPattonWork3 13-Feb-14 9:46am    
Silly question but what type of Thermal printer, If it appears as Windows printer just use one of the print out examples here for C# to a printer. If you can't get it to appear in the printer list the manufactures web site is the place to go.
Ganesh KP 13-Feb-14 10:06am    
If you are buying a thermal printer, then you can ask the API provided by the manufacturer, but if they doesn't provide the API at least you can ask them command code where you can send and receive the data via printer. And also mention in your question as to which type of thermal printer you are targeting either a USB or bluetooth or a wifi printer. I have worked on a bluetooth thermal printer but from Android, if you need a sample of it then I can send across your mail.

 
Share this answer
 
If your app is a Desktop one (not ASP.NET) then I'd try to learn the printer target language commands (determine it asking the manufacturer) and would send the raw commands to the printer by using this code http://support.microsoft.com/kb/322091[^]
Printing performance will be way better/faster than using PrintDocument though the Windows driver.
There are also some third party solutions out there that target thermal printers which you can try too and see if your budget allows you to go for them.
 
Share this answer
 
Comments
Member 12172190 8-Apr-16 2:00am    
Hi ,i want to print online restaurant bill from thermal printer using asp.net c#..if there is any solution please help me.

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