Ask the Expert

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: