| View previous topic :: View next topic |
| Author |
Message |
tis01 Newbie

Joined: 26 Apr 2005 Posts: 2
|
Posted: Tue Apr 26, 2005 8:47 am Post subject: VB6 Open xls in readonly |
|
|
I try to open .xls with visual basic 6 in openoofice but I can't open it in readonly mode.
I try this but I'm steel a newbie
Dim loadArgs()
loadArgs(0).Name = "ReadOnly"
loadArgs(0).Value = False
' Création d'un service OpenOffice
Set ServiceManager = CreateObject("com.sun.star.ServiceManager")
Set Desktop = ServiceManager.createInstance("com.sun.star.frame.Desktop")
' Création d'un nouveau classeur
' Ouverture d'un document existant
Set Document = Desktop.loadComponentFromURL(Fichier, "_blank", 0, loadArgs)
Thanks |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
tis01 Newbie

Joined: 26 Apr 2005 Posts: 2
|
Posted: Tue Apr 26, 2005 11:22 pm Post subject: |
|
|
very usefull...thanks  |
|
| Back to top |
|
 |
|