Public class WebClientPrintAPIController : Controller NET Core, MVC/C#, MVC/VB, SPA/AngularJS+WebAPI, WebForms/CS or WebForms/VB:Ĭreate a new Controller and name it WebClientPrintAPIController and then copy/paste the following code:
![how to print .prn file using c# how to print .prn file using c#](https://timxn.com/sites/default/files/inline-images/printPreview.png)
#HOW TO PRINT .PRN FILE USING C# HOW TO#
In this walkthrough, you'll learn how to print multiple files or documents (like MS Word *.doc or *.docx MS Excel *.xls or *.xlsx Adobe PDF Text files or images) from an ASP.NET website to different printers installed at the client machine without displaying any print dialog. The great thing about this is that you can print those files without displaying any print dialog to the user i.e. The new PrintFileGroup feature of WebClientPrint for ASP.NET will allow you to get that working by just writing a few lines of code. Both Printer1 & Printer2 are available at the client machine. Let's say you want to print an "Invoice" to Printer1 and a "Dispatch Form" to Printer2. Suppose you have an ASP.NET website and you need to print two different documents or reports to two different printers installed at the client machine. Product WebClientPrint for ASP.NET Published Updated Author Neodynamic
![how to print .prn file using c# how to print .prn file using c#](https://csharpcorner-mindcrackerinc.netdna-ssl.com/article/printing-text-file-in-C-Sharp/Images/PrintTextFileinC%23.jpg)
How to print multiple files to client printers from ASP.NET