merged tag ooo/DEV300_m102
[LibreOffice.git] / pyuno / demo / swritercompclient.py
blob1076a69eb9b60999600a99815afd28cce01dd113
1 # instantiating
2 import uno
4 localContext = uno.getComponentContext()
5 resolver = localContext.ServiceManager.createInstanceWithContext(
6 "com.sun.star.bridge.UnoUrlResolver", localContext )
7 remoteContext = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
8 remoteSmgr = remoteContext.ServiceManager
10 pyComp = remoteSmgr.createInstanceWithContext( "org.openoffice.demo.SWriter" , remoteContext )
12 pyComp.run( (), )