Solved

VBScript that would disable the Microsoft print pop up screen

Posted on 2004-07-31
9
696 Views
Last Modified: 2012-05-05
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
Comment
Question by:Roebuck1967
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 11

Expert Comment

by:YohanShminge
ID: 11685743
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
 

Author Comment

by:Roebuck1967
ID: 11685983
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
 
LVL 17

Accepted Solution

by:
zzzzzooc earned 250 total points
ID: 11686123
"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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 19

Expert Comment

by:RanjeetRain
ID: 11693031
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
 

Author Comment

by:Roebuck1967
ID: 11693325
RanjeetRain

I don't quite understand you.  Can you explain?
0
 
LVL 19

Assisted Solution

by:RanjeetRain
RanjeetRain earned 250 total points
ID: 11694426
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
 

Author Comment

by:Roebuck1967
ID: 12333604
Yes, please close and split points as suggested.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question