#1946 closed Bug (Fixed)
_WordCreate Error?
| Reported by: | Owned by: | Jon | |
|---|---|---|---|
| Milestone: | 3.3.7.11 | Component: | AutoIt |
| Version: | 3.3.7.9 | Severity: | None |
| Keywords: | WordCreate | Cc: |
Description
But in 3.3.6.1 it can work.
Code:
$oWordApp = _WordCreate(@WorkingDir & "\" & $sFileName)
$oDoc = _WordDocGetCollection ($oWordApp, 0)
_WordDocFindReplace($oDoc, "<NO>", $sXQNo)
Error msg:
--> Word.au3 Error from function _WordDocOpen, $_WordStatus_InvalidObjectType
--> Word.au3 Error from function _WordDocGetCollection, $_WordStatus_InvalidObjectType
--> Word.au3 Error from function _WordDocFindReplace, $_WordStatus_InvalidDataType
Attachments (0)
Change History (10)
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
follow-up: 4 comment:3 by , 15 years ago
so use 3.3.7.7 (go to archive beta) until final correction being done.
comment:4 by , 15 years ago
Replying to Jpm:
so use 3.3.7.7 (go to archive beta) until final correction being done.
It can not work in 3.3.7.10 yet...
comment:5 by , 15 years ago
I agree the ticket is not fixed. That's the reason I suggest you use 3.3.7.7 as the regression has been introduce in 3.3.7.8
comment:6 by , 15 years ago
AutoIt is now returning the object names without the preceding underscore. If following lines are changed in Word.au3 it works as expected.
Case "application" If $s_Name = "_Application" Then $objectOK = True Case "document" If $s_Name = "_Document" Then $objectOK = True
Case "application" If $s_Name = "_Application" Or $s_Name = "Application" Then $objectOK = True Case "document" If $s_Name = "_Document" Or $s_Name = "Document" Then $objectOK = True
comment:7 by , 15 years ago
As per discussion with tracexx, backwards compatibility is not required for internal functions within the standard UDF collection.
The code should be changed as follows:
Case "application" If $s_Name = "Application" Then $objectOK = True Case "document" If $s_Name = "Document" Then $objectOK = True
comment:8 by , 15 years ago
| Milestone: | → 3.3.7.11 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [6171] in version: 3.3.7.11
comment:9 by , 12 years ago
This information save me a lot.
But it's very hard find out the latest version of word.au3.
I had download the latest version of AutoIt, after install, there is no word.au3 module at all.
I got one from an old version of AutoIt install, and modify it based on this information.
It works on my Win7 now.
Thanks!
comment:10 by , 12 years ago
This information save me a lot.
But it's very hard find out the latest version of word.au3.
I had download the latest version of AutoIt, after install, there is no word.au3 module at all.
I got one from an old version of AutoIt install, and modify it based on this information.
It works on my Win7 now.
Thanks!

The change occur in 3.3.7.8