• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 813
  • Last Modified:

I need a vbscript that opens the print dialog box.

I need add a button to the IE 6 Toolbar that will open the print dialog box -- as if the user was clicking on File/Print.

The entire File menu has been disabled, and for security reasons users don't have the option of right-clicking  to customize the toolbar and add Print Preview.

I know how to add an icon to the toolbar using the Group Policy. But I can't seem to figure out how to write a simple vbs file that will invoke the print dialog box. The script is what I need help on.
1 Solution
Hi, try this in your VBS file:

' First create an Exec menu item in IE by following this article:

Set objShell = CreateObject("Shell.Application")
Set objIE = objShell.Windows.Item

Set objIE = Nothing
Set objShell = Nothing


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now