good idea, but its not quite what I need.
window.print() works if the button is in the html, but mybutton is on the toolbar, so I have to call to an exe, bat or vbs.
Main Topics
Browse All TopicsI'm very new to VBScript and need to use it to create a button on the IE Toolbar that invokes the print dialog box. The existing print button in IE just prints directly to the printer with out letting users select quantity, printer, etc. I know how to add a button to the toolbar, but I'm stumbling on the vbscript to open the print dialog box.
And no, the users can't use File/Print -- the entire File menu has been disabled. And I can't add the Print Preview to the Toolbar for other reasons.
So my question is: what's a simple vbscript to open the print dialog box?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, try this in your VBS file:
'=======
' First create an Exec menu item in IE by following this article:
'http://msdn2.microsoft.co
Set objShell = CreateObject("Shell.Applic
Set objIE = objShell.Windows.Item
objIE.Document.ParentWindo
Set objIE = Nothing
Set objShell = Nothing
'=======
Regards,
Rob.
Business Accounts
Answer for Membership
by: vpt-incPosted on 2007-11-15 at 10:40:54ID: 20291244
Put window.print() in the onclick event of your button. This will pop up the print dialog box to enable the user to choose which printer, pages, etc.