Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 5th, 2008, 09:59 PM
Newbie
 
Join Date: Sep 2008
Posts: 2
Default Set the selected printer when JS window.print() is used?

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,
Reply
  #2  
Old September 6th, 2008, 12:19 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,727
Default

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.
Reply
  #3  
Old September 8th, 2008, 01:40 PM
Newbie
 
Join Date: Sep 2008
Posts: 2
Default

Quote:
Originally Posted by acoder
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,
Reply
  #4  
Old September 8th, 2008, 03:03 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,727
Default

I don't know about Microsoft, but a product called Meadroid may be what you need.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles