2 using unoidl
.com
.sun
.star
.lang
;
3 using unoidl
.com
.sun
.star
.uno
;
4 using unoidl
.com
.sun
.star
.bridge
;
5 using unoidl
.com
.sun
.star
.frame
;
10 static void Main(string[] args
)
15 /** Connect to a running office that is accepting connections.
16 @return The ServiceManager to instantiate office components. */
17 static private XMultiServiceFactory
connect( string[] args
)
20 Console
.WriteLine("You need to provide a file URL to the office" +
22 System
.Collections
.Hashtable ht
= new System
.Collections
.Hashtable();
23 ht
.Add( "SYSBINDIR", args
[ 0 ] );
24 XComponentContext xContext
=
25 uno
.util
.Bootstrap
.defaultBootstrap_InitialComponentContext(
26 args
[ 0 ] + "/uno.ini", ht
.GetEnumerator() );
29 Console
.WriteLine("Successfully created XComponentContext\n");
31 Console
.WriteLine("Could not create XComponentContext\n");