Word UDF: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
@extended no longer contains the number of the invalid parameter. The code returned in @error tells exactly what went wrong.
@extended no longer contains the number of the invalid parameter. The code returned in @error tells exactly what went wrong.


=== _Word_Create ===
=== _WordCreate/_Word_Create ===
It's mandatory now to call this function. You could use _WordCreate or _WordAttach in the old Word UDF.
It's mandatory now to call function _Word_Create. You could use _WordCreate or _WordAttach in the old Word UDF.
@extended is set if Word was already running
@extended is set if Word was already running
=== _WordDocPropertyGet ===
=== _WordDocPropertyGet/- ===
=== _WordDocPropertySet ===
=== _WordDocPropertySet/- ===
=== _WordMacroRun/- ===
=== _WordPropertyGet/- ===
=== _WordPropertySet/- ===


[[Category:UDF]]
[[Category:UDF]]

Revision as of 16:30, 31 December 2013

The Word UDF offers functions to control and manipulate Microsoft Word documents.

Script breaking changes after AutoIt version 3.3.8.1

New versions of Microsoft Office have been released since the last changes were made to the Word UDF. New file types and new functions needed to be supported, hence the UDF was complete rewritten.

Some functions/parameters have been removed or renamed, new functions/parameters have been added. A detailed list of changes can be found here.

General

All function names have been changed from _Word* to _Word_*.

In the following sections you will find some example scripts how to mimic the behaviour of the "old" UDF for some removed functions/parameters. If there is no entry for a removed function/parameter then there is no need for this functionality.

@extended no longer contains the number of the invalid parameter. The code returned in @error tells exactly what went wrong.

_WordCreate/_Word_Create

It's mandatory now to call function _Word_Create. You could use _WordCreate or _WordAttach in the old Word UDF. @extended is set if Word was already running

_WordDocPropertyGet/-

_WordDocPropertySet/-

_WordMacroRun/-

_WordPropertyGet/-

_WordPropertySet/-