OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to start OO invisible using Danny

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Code Snippets
View previous topic :: View next topic  
Author Message
mysantrop
Newbie
Newbie


Joined: 21 May 2010
Posts: 2

PostPosted: Tue May 25, 2010 3:11 am    Post subject: How to start OO invisible using Danny Reply with quote

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
Back to top
View user's profile Send private message
dubbelpunt
General User
General User


Joined: 21 Sep 2006
Posts: 24

PostPosted: Thu Jan 06, 2011 12:34 am    Post subject: Reply with quote

I think you can send an option -invisible so that the document doesn't open.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Code Snippets All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group