erreur d'exécution '6' dépassement de capacité : error on word macro

0 votes
asked Dec 10, 2013 in To be sorted by anonymous
Hi,

 

Having perfomed a classical installation of the word macro for plantUML, I have the message :

erreur d'exécution '6' dépassement de capacité

I cannot find why.

 

please help me !

 

regards

1 Answer

0 votes
answered Dec 11, 2013 by plantuml (298,440 points)
Hello,

Could you tell us which version of Word you are using ?
Do you know on which line the VBA macro is failing ?

Thanks,
commented Dec 11, 2013 by anonymous
Hi, thanks for your answer.

I have word 2007, and the line is :

line before ==>    javaCommand = "java -classpath """ & jarPath & "\plantuml.jar;" & _
            jarPath & "\plantumlskins.jar"" net.sourceforge.plantuml.Run -charset UTF8 -word """ & jarPath & "/"""

this is the line====>    Shell (javaCommand)

' This sleep is needed, but we don't know why...
    Sleep 500
commented Dec 11, 2013 by plantuml (298,440 points)
Strange...
What you can do:
1) Insert the following line *before* Shell (javaCommand) :
MsgBox javaCommand
This command will display the command line that Word tries to run
Could you send us a screenshoot of this display ? (plantuml@gmail.com)

2) Check that your macro level is to low.
3) Type "java" in a command line to check that java is running on your system.

Thanks,
...