ASP.Net Printing
-
Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All
-
Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All
-
Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All
This question has been discussed bazillion times previously. The answer is always a No. That is because browser doesn't let web applications to communicate with local devices as they may use resources, such as paper, ink and energy in this case. Browsers always ask the users to intervene and grant permissions. Even if you only mean to print one page, who knows next web app might want to print 25, 100 perhaps? It is better to allow users to print this because if they already need that resource printed they would love to click on print button anyway.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All
Would you want websites sending things to your printer without asking you?
-
Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All
You don't. As you were told last week[^]. The answer hasn't changed in the last six days. If you want to print something on the user's printer, you use
window.print()
, and you live with whatever UI the user's browser shows them.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer