hello everybody,

in OO1.1.4 i used the following code to load (database) documents:

...
oDesktop = createUnoService("com.sun.star.frame.Desktop")
sUrl = "file:///somewhat.sxw"
mFileProperties(0).name = ReadOnly
mFileProperties(0).value = True
mFileProperties(1).name = "MacroExecutionMode"
mFileProperties(1).value = 4
oDoc = oDesktop.LoadComponentFromURL(sUrl, "_default", 0, mFileProperties())
...

with this code i am able to load my document AND execute my Basic-Macros which are incorporated in my code.

now i started to port my app to OO2.0 - with this new version it is not possible to execute my macros within the loaded document.

can anybody tell me what to do?

thank you and appologies for my clumpsy english

helmut

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to