Issue 16707 - form controls do not work when document is opened via vbs script ...
Summary: form controls do not work when document is opened via vbs script ...
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Windows 2000
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: Mathias_Bauer
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-11 09:11 UTC by Oliver Brinzing
Modified: 2003-07-16 10:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
vbs script (365 bytes, application/octet-stream)
2003-07-11 09:12 UTC, Oliver Brinzing
no flags Details
calc dem file (6.72 KB, application/octet-stream)
2003-07-11 09:13 UTC, Oliver Brinzing
no flags Details
writer dem file (6.67 KB, application/octet-stream)
2003-07-11 09:13 UTC, Oliver Brinzing
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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
,