plantUML support with Word 2007

0 votes
asked Mar 21, 2015 in Wanted features by anonymous
Hello,

 

I know that the "PlantUML_Template_v30.dotm" supports MS word 2010/2013 but unfortunately I have only 2007.

I followed the installation istructions but when I try to execute it (push the UML.* button in the PlantUML ribbon) it gives the follwing error:

 

Microsoft Visual Basic

Compile error in hidden module: ShellUtil

 

 

Could You please give advice ?

Or is there an older "dotm" version which supports word 2007?

 

Thanks in advance !

 

Br,

Tamas

1 Answer

0 votes
answered Apr 12, 2015 by anonymous
edited Apr 12, 2015

Try to do the following:

- Open the dot file which shall be located at %appdata%\Microsoft\Word\STARTUP

- Open the Visual Basic Editor (show macros, then click edit)

- Click on module 'ShellUtil' so the source code will be visible

- At the following location change keyword 'LongPtr' to 'Long', so it looks like the following

Private Declare Function WaitForSingleObject Lib "kernel32" ( _

        ByVal hHandle As Long, _
        ByVal dwMilliseconds As Long) As Long

- Save the macro (finally copy .dot to STARTUP-location if necessary) and restart Word.

This worked for me...

Stupid hint: when adding PlantUML to fresh Word file, keep cursor outside the "code" when pressing the 'Generate images'-button, otherwise you will get cryptic error

commented Oct 12, 2016 by anonymous
Worked for me. Thanks
...