![]() InProps = PropertyValue( "Hidden", 0, True, 0 ), # this is a tupleĭocument = desktop.loadComponentFromURL("private:factory/scalc", "_blank", 0, inProps )įilter = uno.createUnoStruct('.PropertyValue')Īfter a lot of research, I have figured out how to manipulate a Ubuntu LibreOffice Calc sheet using Python 3.7 and P圜harm and MySQL. PropertyValue = uno.getClass('.PropertyValue') ![]() create a new Calc document ( private:factory/scalc):.)ĭesktop = uno_smgr.createInstanceWithContext(".Desktop", uno_ctx ) instantiate Desktop (the root frame for all applications - Calc, Writer, Draw.if succeeded, uno context is all you need. ![]() Url = "uno:socket,host=localhost,port=2002,tcpNoDelay=1 urp StarOffice.ComponentContext" Resolver = smgr_local.createInstanceWithContext(".UnoUrlResolver", local_ctx)
0 Comments
Leave a Reply. |