addMacroFromDoc

addMacroFromDoc

BASIC / ADVANCED / PREMIUM

Imports a macro from another Word document.

Description
public addMacroFromDoc ( string $path )

With the help of this method you can import the macros from an existing Word file.

You should create an instance of CreateDocx with the 'docm' option in order to obtain a functional Word document with macros as a result.

Parameters

path

The path of the Word document (.docm) from which we wish to import the macros.

Return values

Void.

Code samples

Example #1