Click here to Skip to main content
15,936,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a .NET MVC application that accepts a set of IMEI numbers and Serial Numbers in excel formal for N number of mobile devices. It then selects a label layout from the many that is designed and saved (HTML) and creates HTML content by using the above loaded numbers into N number of labels.

Is it possible to print this content via an Epson TM - T82 printer like how we print on a normal printer?

What I have tried:

I have googled and searched several forums. But, can't exactly find what I am looking for?
Posted
Updated 11-Jan-18 0:19am
Comments
Jochen Arndt 11-Jan-18 6:21am    
It should be possible but might require creating a HTML page that fits.

Use the print preview of your application or save the HTML page to a file, load it with a browser and use the print preview of the browser (usually automatically opened when choosing Print within the browser). Then select the POS printer and check how the page would be printed.
Lakshmi Goyal 11-Jan-18 6:50am    
This particular printer that I am talking about is a thermal printer. I use the printer settings to adjust the page etc and give print but it gives me a blank print. So, I am kind of stuck as to what I am doing wrong?

1 solution

It's unlikely that you will be able to print HTML directly on any printer - but it should be possible if you use the WebBrowser Control to render it, and then use the WebBrowser.Print Method (System.Windows.Forms)[^] to send it to your printer. You may have to faff with printer settings and selections before you actually do the print.
 
Share this answer
 
Comments
Lakshmi Goyal 11-Jan-18 6:50am    
This particular printer that I am talking about is a thermal printer. I use the printer settings to adjust the page etc and give print but it gives me a blank print. So, I am kind of stuck as to what I am doing wrong?
OriginalGriff 11-Jan-18 7:12am    
Do it manually to test what is happening: Open the HTML in your prefered browser and print it to the printer using the default settings. What do you get?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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