Q

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.
This was first published in June 2003

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close