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

VB6 Open xls in readonly

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


Joined: 26 Apr 2005
Posts: 2

PostPosted: Tue Apr 26, 2005 8:47 am    Post subject: VB6 Open xls in readonly Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Apr 26, 2005 9:03 am    Post subject: Reply with quote

Do you know :
A tutorial for Programming OpenOffice.org with Visual Basic http://www.oooforum.org/forum/viewtopic.phtml?t=11854&highlight=
It's written by a French and I think it exits a French version.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
tis01
Newbie
Newbie


Joined: 26 Apr 2005
Posts: 2

PostPosted: Tue Apr 26, 2005 11:22 pm    Post subject: Reply with quote

very usefull...thanks Very Happy
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 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