How to Printing Network IP through MVC C#
-
Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel
-
Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel
If the printer is connect to the server, and is available to the user account which your application pool is configured to run as, then you might be able to print to it. If the printer is connect to the client, then all you can do is issue a
window.print();
command in Javascript, and hope that the user picks the correct printer, and that the printed output of the current document matches your requirements. There is no way to print to a client printer from server-side code, and client-side code deliberately has very little control over printing for security reasons.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel
Usually you generate a PDF in the correct printer format, present the PDF for download, open the PDF and print.
If it ain't broke don't fix it Discover my world at jkirkerx.com