Apache OpenOffice (AOO) Bugzilla – Issue 16707
form controls do not work when document is opened via vbs script ...
Last modified: 2003-07-16 10:34:55 UTC
Hi, since using OO 1.1beta 1 I found the following problem: This will open a demo file: Dim oManager Dim oDesktop Dim mNoArgs() Dim oDoc set oManager = CreateObject("com.sun.star.ServiceManager") set oDesktop = oManager.CreateInstance("com.sun.star.frame.Desktop") set oDoc = oDesktop.loadComponentFromURL("file:///E:/Test.stc", "_blank", 0, mNoArgs ) but form controls (here command buttons) bound to macros in the document will *not* work ... If you open the document via UI everything works fine ... I will create an attachment ... Regards Oliver
Created attachment 7576 [details] vbs script
Created attachment 7577 [details] calc dem file
Created attachment 7578 [details] writer dem file
This is a change in the specification, you have to specify a parameter in loadComponentFromURL to get macros executed. This is necessary to make documents loadable without popping up dialogs from macros. Please search for "MacroExecutionMode" in the archives of the api feature mailinglist.
,