469,291 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,291 developers. It's quick & easy.

Set the selected printer when JS window.print() is used?

2
When using JavaScript window.print() command to print in IE, is it possible to set the selected printer in the Print window? In some cases I'd like to have the user's default printer selected, and in other cases have a specific printer selected when the Print window is displayed.

The default behavior seems to be that the first time the Print window is displayed, the default printer is selected. After that, the last selected printer is the one that is selected when the Print window is re-opened. Does JavaScript allow any control of the selected printer? Other methods to select the printer before the Print window opens? Thanks,
Sep 5 '08 #1
3 9019
acoder
16,027 Expert Mod 8TB
JavaScript doesn't allow that sort of control, but you may use a browser-specific solution if it's a controlled user environment, e.g. intranet, with reduced security. For example, for IE, you may use an ActiveX control to control printing.
Sep 6 '08 #2
jpas84
2
JavaScript doesn't allow that sort of control, but you may use a browser-specific solution if it's a controlled user environment, e.g. intranet, with reduced security. For example, for IE, you may use an ActiveX control to control printing.
An IE ActiveX control should do what I need. Does Microsoft have their own ActiveX print control that is part of XP? If yes, can point me in the direction of instructions of how it is used and its' name?

Thanks much,
Sep 8 '08 #3
acoder
16,027 Expert Mod 8TB
I don't know about Microsoft, but a product called Meadroid may be what you need.
Sep 8 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Fotis Andritsopoulos | last post: by
4 posts views Thread by David C. Barber | last post: by
15 posts views Thread by Prisoner at War | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.