.net - Getting local Printer Names in c# web application -


I have created a simple crystal report as a web application using the C # code. When I print using the Printtoprinter method it is printed with the default printer. I want to list all the printers in favor of the client from that list. I want to choose a printer to print..If any Can I help code in C #? Or give an idea about this?

As you wish it is not possible to crystal report or C # side

"PrintToPrinter" is used to directly print directly to the server's default printer, where your app is hosted / deployed.

It is important that you have HTML-javascript function (Onload

for this you will need to generate an HTML from your C # code and open it with jquery on the second page - The initial function that provides the list of printers

Check the link with the example to get the printer list.



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -