| View previous topic :: View next topic |
| Author |
Message |
LaurentGodard Guest
|
Posted: Wed Mar 19, 2003 2:33 pm Post subject: Macro & silent mode |
|
|
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


Joined: 16 Mar 2003 Posts: 47 Location: Grenoble (France)
|
Posted: Thu Mar 20, 2003 11:23 am Post subject: |
|
|
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 |
|
 |
|