Hi,
Just to make sure, you are using:
- OOo2 Beta
- you do not use the assemblies which were part of the download package
available from udk.openoffice.org
-you find four cli_xyz.dll installed in the GAC (z.B. c:\WindowsXP\assembly
-make sure the registry key points to te correct installation:
HKEY_LOCAL_MACHINE\SOFTWARE\OpenOffice.org\UNO\InstallPath
or
HKEY_CURRENT_USER\SOFTWARE\OpenOffice.org\UNO\InstallPath
Since OOo2 the bootstrap mechanism and deployment have simplified.
- function
XComponentContext defaultBootstrap_InitialComponentContext()
- no need to set the PATH
- no need do copy assemblies (cli_types.dll etc.) in the same directory
where the executable resides.
-
In case you are using the documentation from the dowload package, the
current documentation is in the Developer's Guide (chapter 3.4.5)
Unfortunately it is not online yet but it should be part of the latest
SDK which can be downloaded.
Hope that helps,
Joachim
Schmidt, Frank-P. wrote:
Hello,
I' working with VB.Net and C# and try to connect to OOo 2.0 Beta. With the
"old" 1.1.4 it works fine. In my project I have references to the new
uno-cli, but I haven't changed the source code. I use the method as
described in the uno-cli manual for .Net. Here's the code, taken from this
manual:
'Create a service manager of the remote office
Dim ht As Hashtable = New Hashtable()
ht.Add("SYSBINDIR", args(0))
Dim xLocalContext As XComponentContext
xLocalContext = Bootstrap.defaultBootstrap_InitialComponentContext( _
args(0) & "/uno.ini", ht.GetEnumerator())
Dim xURLResolver As XUnoUrlResolver
xURLResolver = DirectCast(xLocalContext.getServiceManager(). _
createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", _
xLocalContext), XUnoUrlResolver)
Dim xRemoteContext As XComponentContext
xRemoteContext = DirectCast(xURLResolver.resolve( _
"uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"), _
XComponentContext)
Dim xRemoteFactory As XMultiServiceFactory
xRemoteFactory = DirectCast(xRemoteContext.getServiceManager(), _
XMultiServiceFactory)
At this point I'll get a StackOverflowException now. Is something different
with the new version?
Second question, is there any possibility to get more info about OOo and
.Net, examples, docs etc.? Until now it's not really fun to program OOo with
.Net because it takes too much time to get information, and that makes
software development a bit to cost intensive.
Thanks in advance
Frank Schmidt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]