Sign in to follow this  
Followers 0
willwatters

Selecting Print to file in MS Word

3 posts in this topic

In MS Word (2000) when I select File>Print the print box opens. I want to select Print to file, but i'm unable as there is no Class in Window Spy.

I also cannot use the move mouse position option as my script has to run on a 800 by 600 and 1024 by 768 pixels.

Is there any other way of doing this please.

Share this post


Link to post
Share on other sites



How about

send("!L")

or whatever the underlined character is on your print dialog box? the ALT+L combination works to tick the box.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

In Word2003 it is like:

;~ Print to file

Send("^p")         ; sends CTRL-P which is the keyboard shortcut to print in windows.
WinWait("Print")   ; Wait until the Print-screen is activated.
Send("{TAB 12}")   ; number of TAB's until print to file is reached
Send("{SPACE}")    ; Hit space to select

All you have to do is give the number of copies and hit ENTER.

You also program this in the script if U want.

Maybe with you the number of TAB's is different so test that first!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0