Newbie questions about Printers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am not sure if this is possible. I have a scenario where I am using SQL
Server Reporting Services to render HTML reports. No problems there.

Now it is time to print. So simplify my questions, assume I have an HTML
page displayed. Using the Javascript print is my last resort; I would prefer
a little more control over the process if possible.

1. Is there a way to get a list of printers that are installed on the PC
where the browser is running?

2. If so, how?

3. Can I programmatically get values the user may set? (I.E., page
orientation, size, etc.)

I don’t mind getting my hands dirty if you tell me that I have to use the
API or some other trick.

Is this even possible?

Thanks!
Michael
 
Is this even possible?

My understanding that this is only possible via an activeX control.

That said, I guess I have to ask why you would want to do this? Printing is
a basic function that pretty much any office drone should know how to
handle. I say it's best to let the actual printing be handled by the
browser/operating system/user.

Yea, yea, I know...never underestimate in inability of a boss to print
something... ;o)

-Darrel
 
Michael,

Everything is possible if you use ActiveX controls. Shop for one.

Eliyahu
 
Hi Michael,

Your app's access to printers is going to be limited by the browser, which
means that it has virtually no ability to control or access the printers,
other than throwing up a Print dialog, which the user can then tailor
according to their desire.

The only way around this would be to use a client-side executable, such as
an ActiveX control or Java applet, which has more permissions than the
browser. It is entirely possible that such controls are already available
for purchase or download. Try Google.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
If the users are running ie6 pre sp2 there are some vbscript tricks that
work. SP2 closed the holes though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top