Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 708
  • Last Modified:

VBScript that would disable the Microsoft print pop up screen

Would like two VBScripts:

The first would disable the Microsoft print popup

The second VBScript should re-enable the print popup

- By popup I mean the screen that ask about how many pages to print...
0
Roebuck1967
Asked:
Roebuck1967
2 Solutions
 
YohanShmingeCommented:
Hi Roebuck1967,

Can you be more specific about this popup (dialog box)?  I think I know what you're talking about, but when you tell a program to print, at least through the File->Print menu, you see the printer options dialog box because this is how the program is written.  I don't know of any system-wide setting that will disable this and print without a dialog box.  Most programs do not show this popup if you click the print command on their toolbar... Perhaps I am thinking of something totally different here?

-Yohan
0
 
Roebuck1967Author Commented:
By right clicking on lets say five files and selecting print your are immediately prompted with five dialog boxes.  I would like to eliminate the five dialog boxes if possible.
0
 
zzzzzoocCommented:
"PRB: Printing with WebBrowser from Internet Explorer Raises Print Dialog Box in Internet Explorer 5"
http://support.microsoft.com:80/support/kb/articles/Q247/6/71.ASP&NoWebContent=1

Although the above is mentioned for the WebBrowser control, it should still be relevant if you're trying to print through the DOM. I don't believe you'll be able to disable the dialog and if you can, it would probably just lead to more problems.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
RanjeetRainCommented:
Normally, print dialog can't be disabled. A clever tirck will be to have them printed by the associated program. Most apps support a '/P' switch and that should work for you.
0
 
Roebuck1967Author Commented:
RanjeetRain

I don't quite understand you.  Can you explain?
0
 
RanjeetRainCommented:
YOu can Shell out to the OS with the program associated witht the file that is selected in the explorer. For example, if there is a text file selected, you have to launch Notepad, if a .Doc file is selected, you will launch MS Word.

Algo:

Do while more documents to process
         Get file extension
         Get associated program from registry
         Shell out to the program with '/P' switch (Causes the program to background print the document without displaying the Print dialog)
Loop


0
 
Roebuck1967Author Commented:
Yes, please close and split points as suggested.
0
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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