Hi all,
Andreas Saeger wrote:
Matthias B. wrote:
[...]
Sub mkNewDocWithMacro()
oDoc =
Stardesktop.loadComponentFromURL(private:factory/swriter,_default,0,Array())
oDocLibs = oDoc.BasicLibraries
oLib = oDocLibs.createLibrary(testLib)
sCode = REM * BASIC * Chr(10)
sCode =
On 11/16/06, Andreas Saeger [EMAIL PROTECTED] wrote:
[...]
oDocLibs = oDoc.BasicLibraries
oLib = oDocLibs.createLibrary(testLib)
[...]
Does this help?
Thanks. I'm trying to do this from Java. I've checked the IDL docs and
it seems that createLibrary() is provided by XStarBasicAccess, however
Matthias B. wrote:
On 11/16/06, Andreas Saeger [EMAIL PROTECTED] wrote:
[...]
oDocLibs = oDoc.BasicLibraries
oLib = oDocLibs.createLibrary(testLib)
[...]
Does this help?
Thanks. I'm trying to do this from Java. I've checked the IDL docs and
it seems that createLibrary() is provided by
Forgot:
If everything fails, you may consider a Basic-macro to be called from
your Java with appropriate parameters. Add some arguments,
error-handling and
If oDocLibs.hasByName(sLibName) then ...
If oLib.hasbyName(sModuleName) then ...
to my code.