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 listen all the open documents

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





PostPosted: Tue Jun 17, 2003 5:06 am    Post subject: How to listen all the open documents Reply with quote

Hi all ! Smile

I'm trying to listen all the open documents but when I call the url propertie , i've a big error Smile Has someone any idee ?

Sub Main
Dim oDesktop As Object, oDocs As Object
Dim oDoc As Object, oComponents As Object
'The hasMoreElements() will fail with the oDesktop,
'I do not know why!
'oDesktop = createUnoService("com.sun.star.frame.Desktop")
oComponents = StarDesktop.getComponents()
analyseobjet oComponents(1)
oDocs = oComponents.createEnumeration()
Do While oDocs.hasMoreElements()
oDoc = oDocs.nextElement()
msgbox odoc.url <--- It's Here ..
Loop

End Sub

Thanks Smile
Back to top
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