| View previous topic :: View next topic |
| Author |
Message |
abdun nabi sk General User

Joined: 18 Feb 2008 Posts: 10
|
Posted: Thu Apr 03, 2008 4:33 am Post subject: xServiceManager.createInstance("com.sun.star.frame.Desk |
|
|
I have written a program in asp.net c#.
my code is as following..
string iniFile = @"C:\Program Files\OpenOffice.org 2.3\program\uno.ini";
System.Collections.Hashtable _bootstrapParamaters = new System.Collections.Hashtable();
_bootstrapParamaters.Add("SYSBINDIR", @"C:\Program Files\OpenOffice.org 2.3\program");
xLocalContext = uno.util.Bootstrap.defaultBootstrap_InitialComponentContext(iniFile,_bootstrapParamaters.GetEnumerator());
//Gets the service manager
xServiceManager = (XMultiServiceFactory)xLocalContext.getServiceManager();
upto this is working fine.....but here i am getting Runtime exception
xDesktop = (XDesktop)xServiceManager.createInstance("com.sun.star.frame.Desktop");
anybody can help me..please
Thanks
Abdun Nabi Sk |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
|
| Back to top |
|
 |
|