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

Macro & silent mode

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
LaurentGodard
Guest





PostPosted: Wed Mar 19, 2003 2:33 pm    Post subject: Macro & silent mode Reply with quote

Hi

I'm working on a small project using OOO 644m4 and dealing with macros
Great tool
Nevertheless, i've a problem i want to avoid

When i open a document with
oDocument=oDesktop.loadComponentFromURL(surl,"_blank",0,Noargs())
OPenOffice opens a new session

Is it possible to open this document without seeing it ? somme args ?
I tried to externaly launch my macro with the -invisible switch but it doesn't work

Thanks

Laurent
Back to top
Laurent Godard
General User
General User


Joined: 16 Mar 2003
Posts: 47
Location: Grenoble (France)

PostPosted: Thu Mar 20, 2003 11:23 am    Post subject: Reply with quote

I reply mysef

to open a document in silent mode in a macro

dim args(0) as new com.sun.star.beans.PropertyValue
args(0).Name = "Hidden"
args(0).Value = True

oDocument=oDesktop.loadComponentFromURL(surl,"_blank",0,args())


thanks anyway

Laurent
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API 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