mysantrop Newbie

Joined: 21 May 2010 Posts: 2
|
Posted: Tue May 25, 2010 3:11 am Post subject: How to start OO invisible using Danny |
|
|
Dear OOo-ers;), ///posted also in another thread but without success///
i am making a college project using psql,python,wxpython,psycogp2 and DannyOOo. my problem is following. i have made an application that makes queries using python and psycopg2 over the database in psql and gives the data to open office so that he can save them or just show in odt format. Problem is that open office first open a blank document named untitled and then after first query a new file with the name of the query. I am wondering how can i start open office in invisible mode so that that first document is not visible (cause that is rlly open office up and it is a must). some parts of my code if it helps:
| Code: |
class repporter:
def __init__( self ):
execOOo()
from Danny.OOo import OOoLib
self.desktop = OOoLib.getDesktop()
self.document = self.desktop.loadComponentFromURL( "private:factory/swriter", "_blank", 0, () )
self.cursor = self.document.Text.createTextCursor()
def tablica( self, duzina, sirina ):
tab = self.document.createInstance( "com.sun.star.text.TextTable" )
tab.initialize( duzina, sirina )
self.document.Text.insertTextContent( self.cursor, tab, 0 )
return tab |
//////i had an idea but i havent succeded so i plea for ur help.
p.s.if needed will give the rest of the code but think that the rest is not vial for this
Tnx in advance,
Joseph from Croatia |
|