Vaeb Posted August 13, 2008 Share Posted August 13, 2008 Hello guys! I used the Microsoft Word lib of this Topic: http://www.autoitscript.com/forum/index.php?showtopic=30461 My problem is, that there are opening one empty word document and the document i want to open, when i use this code: $oWordApp = _WordCreate ("") $oDoc = _WordDocOpen ($oWordApp, "H:\Documents\test.doc") How can I only open the test.doc? Greets Vaeb I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
maroesjk Posted August 13, 2008 Share Posted August 13, 2008 Why don't you just use/try:ShellExecute('H:\Documents\test.doc') Link to comment Share on other sites More sharing options...
Vaeb Posted August 13, 2008 Author Share Posted August 13, 2008 Because I want to use functions like "_WordDocFindReplace". I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
Vaeb Posted August 14, 2008 Author Share Posted August 14, 2008 help pls I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 15, 2008 Moderators Share Posted August 15, 2008 Try this... #include <Word.au3> $oWordApp = _WordCreate ("H:\Documents\test.doc") $oDoc = _WordDocGetCollection ($oWordApp, 0) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now