Click here to Skip to main content
15,937,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Help me how to print ticket with c#
Epson TM T20

Example:

----------------------
invoice 2
----------------------
id | name
1 | Phnone
2 | Laptop
---------------------
Posted
Comments
CHill60 19-Jan-15 10:24am    
The printer make is not relevant. What have you tried?
Richard MacCutchan 19-Jan-15 11:11am    
You have tagged your question C++, C# and HTML, but which is it? The answer will vary depending on which language and platform you are using.
faresdev7 19-Jan-15 11:54am    
how to print page html with this printer in c# or c++
Richard MacCutchan 19-Jan-15 12:05pm    
What does that mean? Please edit your question and add some more detail about where the data is coming from and what application you are using to do the printing.
faresdev7 19-Jan-15 12:29pm    
I Create application For Restaurant, How to print ticket with The Epson Tm T20 Printer this application in c# language
link:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQREBIQEhQVERQVFBgXFhAYFBYQFxIUFBQXFhURFxUaHCggGBwlGxcUIjEhJSksLi4uFx8zODQtNyotLiwBCgoKDQ0NFA0PFDcZFBkrKyssMSwrKys3KzcrLCsrLCsrLSsrKysrKysrKysrKys3NysrKzcrNzcrKys3Kys3N//AABEIAN8A4gMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAAAQIDBQYHBAj/xABDEAABAwICBgYHBgQFBQEAAAABAAIDBBEhMQUGEkFRYQcTInGBkSMyQlJiodEUgpKiscEzQ3LwU7LC0vEVY2SDowj/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/EABYRAQEBAAAAAAAAAAAAAAAAAAARAf/aAAwDAQACEQMRAD8A7iiIgIiICIiAiIgIiICIiAigOByxUoCIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiASuW6867GUupqVxbGMHzNNjId7WEZN57+7OvX3XHrSaSmddl9mSRv8AMOXVst7PE78ss9EqKd8Z2ZGujPuuaWHyKCKWofE7bie+J3vMcWHxIzWz6N6Q6yKweWVDfjbsutyc23mQVqqKK6rozpNpn2EzH054261nm3t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nVxsa6PaLrAm4Ls7EnkvBteKpMbTxaeIQdK0PrtDI/tOMZtk42F8PDxWzSaRD2jZde/tBw8xxXDXRnk8eRVdPWPjPYe5nwnEFB3eimbcuJF8stknAXu3du81kA9cd0ZrpLHsiVgkaN7cCf75LbqDXSCZpAfsOIPZcLY28j3XUG3UmN3G+PEC+ONrjPd5K5O8i1iASbY435LwUVY0sbskWthbLwXoM4Lm48TnbC3DerR59Z9K/ZKOoqczHG5zR7z7WY3xcWjxXy227iS4lziSS45kk3JPMldu6b6xxooKaM2M9Q0uPCOEGQuPIO6tcq0fTmqn2Wg9WwAOmtnb9zuCIv6v6G647TsIxnu2j7o/crL1GrLfYd4Ox/MFnYY2saGtFmgWACrKo0uo0S+PEggcfWHnuXklkLSLFZbWPSpcTEw4D1jx5LXybYqA99sf7JVLRa5Oe/lyRoubnwHDn3oMe79eaKNG8+XBVIoRHeuiWO2ioT7z5T/9XD9luK1no1j2dFUg4scfxSOd+62ZUEREBERAWH1u0kaajllabOsGtPBzyGh3he/gswtW6TItrR0hHsujd+cN/dByYgFUGNeZshCutnUVJaqVeEgKFoKCyirMaoIQFJN88VChBBiG4lqpcw7wHcxgVcQFBeoNLywn0UrmfA7EeRwWy6O18ka4ddHtYW2md+dlqjscxdWJYLizXFvK9kHq1/1kdWyhrAQyMEAb7OttXtvNhhyHNYGhmlgu6F9ic23u0/1NXugog3mrzoQcx47/ADQXKTW0jCeIj42fu36Be2s0/G6NxjeHYYDI3O4jln4LES04tfdz+v8AysabXwFkQJ3nHnxVsdrHcMuZ49yOxNt28/6VLjuH/A4ooccPP6KpQBZERKhFSSg+kdR49nRtEP8Ax4z+JgP7rOLH6ux7NHTN4QRDyjaFkFQREQEREBYfXCDboKpv/Zc7xYNofoswrNZFtxvZ7zHN8wQ

Assuming this is .NET, look at the PrintDocument class[^]
 
Share this answer
 
If the ticket is in the form of a text file, try http://msdn.microsoft.com/en-us/library/aa287530%28v=vs.71%29.aspx[^].
 
Share this answer
 
Comments
faresdev7 19-Jan-15 11:53am    
how to print logo(bmp) with this method
I have already given code for same like this question. You can check answer from below link:
label printing help needed[^]
 
Share this answer
 
v2

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