Search the Community
Showing results for tags 'wordex'.
-
New versions of Microsoft Office have been released since the last changes were made to the Word UDF. New file types and new functions need to be supported. This updated version supports Word 2003 up to Word 2010. The latest version of AutoIt is needed to use the latest COM error handler. Some rarely used functionality has been removed, new functions have and will be added. The attached PDF shows what's different between Word.au3 and WordEX.au3 You'll find examples for every function ready to run. Please tell me what you think, about missing functions etc. 2012-07-31 - Version 1.0 - Downloads: 89 2012-08-23 - Version 1.1 - Downloads: 26 2012-08-26 - Version 1.2 - Downloads: 277 2012-12-29 - Version 1.3 - Downloads: 937 2013-07-28 - This download page is no longer needed - the rewritten Word UDF is now part of the latest beta version!
-
I'm using WordEx 1.3 with AutoIt 3.3.8.1, Word 2010, Win 7/64 on a core i5-machine. When i run the following code, i do get what i expect for now: Just a copy of my Template file stored under a different name. #include <..\WordEX\WordEx.au3> const $ERR_NONE = 0 const $ERR_NOWORD = 1001 const $ERR_NOTPL = 1002 const $ERR_NOOUT = 1003 const $ERR_NOCMD = 1004 const $ERR_INCMD = 1005 func l_createtpl_cmd ($arg_tpl, $arg_out, $arg_cmd, $arg_vis) local $err, $oWord1App, $oDoc1 $err = $ERR_NONE $oWord1App = _Word_Create ($arg_vis, true) If @error = 0 Then $oDoc1 = _Word_DocAdd ($oWord1App, $wdNewBlankDocument, $arg_tpl, false) If @error = 0 Then ;work on it ;save the result msgbox (0, "WordTest", "save as "& $arg_out, 0) _Word_DocSaveAs ($oDoc1, $arg_out, $wdFormatTemplate) if @error <> 0 Then $err = $ERR_NOOUT endif else $err = $ERR_NOTPL endif _Word_Quit ($oWord1App) else $err = $ERR_NOWORD endif return $err endfunc l_createtpl_cmd (@ScriptDir &"\test.dot", @ScriptDir &"\out.dot", "any command", true When i take the MessageBox away or answer it before the Word-Document appears, the Word_DocSaveAs function tells me that it was not successfull. If Word runs invisible, the timimg of my operations seems to be alright. Is there a way to tell WordEx to synchronize with it's Word-Window or is WinWaitActive the only workaround? Please give me some advice...