Trying to automate document creation with OpenOffice.

Created a vbscript shell script to call a mail merge document.

Tried calling the script from an external action and got the following error...

Unable to execute command line external action. Command: "C:\bat\OOo.vbs" DOCUMENTURL DATASOURCENAME COMMANDTYPE COMMAND OUTPUTTYPE OUTPUTURL ; Code: 193; Error: %1 is not a valid Win32 application.

Then created a bat file to call the .vbs file and got the following error returned in the resultset of the external action...

C:\bat\ooo.vbs(25, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'com.sun.star.ServiceManager

First question is why I can't call a .vbs or .js WSH shell script from an external action?

Second question is why I can't access ActiveXObjects when called by an external action with a batch file? Whenever I open up the windows terminal and call these scripts they work fine.

Reply via email to