Issue 16707

Summary: form controls do not work when document is opened via vbs script ...
Product: General Reporter: Oliver Brinzing <oliver.brinzing>
Component: codeAssignee: Mathias_Bauer
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P1 (highest) CC: frank.schoenheit, issues
Version: OOo 1.1 Beta   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
vbs script
none
calc dem file
none
writer dem file none

Description Oliver Brinzing 2003-07-11 09:11:53 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
Comment 1 Oliver Brinzing 2003-07-11 09:12:28 UTC
Created attachment 7576 [details]
vbs script
Comment 2 Oliver Brinzing 2003-07-11 09:13:05 UTC
Created attachment 7577 [details]
calc dem file
Comment 3 Oliver Brinzing 2003-07-11 09:13:34 UTC
Created attachment 7578 [details]
writer dem file
Comment 4 Mathias_Bauer 2003-07-11 10:12:19 UTC
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.
Comment 5 Mathias_Bauer 2003-07-16 10:34:55 UTC
,