Printing to a thermal printer from an mvc web application
Myself and team are currently in the planning stages of a re-write of a legacy visual basic 6 application. There are a few aspects 开发者_运维知识库of this application that don't seem to fit well with a web app as output is at times directly pushed to a thermal printer.
We were thinking of building a small standalone console application that simply listened to a print queue to handle this output.
Does this sound feasible?
PDF for client-side printing seems to be WTG: Printing receipt ASP.NET
Otherwise if this is an internally accessed web app you may be able to use the thermal printer in server-side code - or from server-side code call a console app to queue print jobs.
We actually just implemented a solution similar to this in our own MVC application. We render what we need to print to a PDF and we print the PDF using the Foxit command line.
精彩评论