summaryrefslogtreecommitdiff
path: root/pyuno/demo/swritercompclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/demo/swritercompclient.py')
-rw-r--r--pyuno/demo/swritercompclient.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pyuno/demo/swritercompclient.py b/pyuno/demo/swritercompclient.py
new file mode 100644
index 000000000000..1076a69eb9b6
--- /dev/null
+++ b/pyuno/demo/swritercompclient.py
@@ -0,0 +1,13 @@
+# instantiating
+import uno
+
+localContext = uno.getComponentContext()
+resolver = localContext.ServiceManager.createInstanceWithContext(
+ "com.sun.star.bridge.UnoUrlResolver", localContext )
+remoteContext = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
+remoteSmgr = remoteContext.ServiceManager
+
+pyComp = remoteSmgr.createInstanceWithContext( "org.openoffice.demo.SWriter" , remoteContext )
+
+pyComp.run( (), )
+