Problem solve Get help with specific problems with your technologies, process and projects.

How can I print a series of docs through a Web client, without knowing the printer type the client w

I need to print a series of documents from an ASP.NET application, where each of them has to be on separate page. On the server side of the application, I don't know which type of printer the client will be using. What is the best way to do this through the Web client?
This is quite a complex task. I assume the relevance of the printer type means that the ASP.NET application generates different output depending on it. The only way I see of achieving this is through JavaScript on the client, instantiating a COM object (a CommonDialog for example) that performs the printing functions (enumeration, etc). From there, you can call a page (or handler) on the server passing the printer type or name, and send the response to directly to the printer.

Dig Deeper on .NET development community

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.