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

Error "com.sun.star.io.IOException" at Macro OOo 2

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


Joined: 11 Apr 2006
Posts: 5

PostPosted: Thu Apr 20, 2006 7:39 am    Post subject: Error "com.sun.star.io.IOException" at Macro OOo 2 Reply with quote

Anybody here knows if there is error in this code:

sub consult

Dim oFonte As Object
oFonte = createUnoService("com.sun.star.sdb.DataSource")
oFonte.databaseDocument.storeAsURL("c:/racap.odb", Array())
oContexto.registerObject("racap", oFonte)


oFonte.DatabaseDocument.store()

end sub

I execute a Macro at OOo 2.0.2 Calc and appear an error in the line:
oFonte.databaseDocument.storeAsURL("c:/racap.odb", Array())

Error: Basic Runtime Error
An exception occurred
Type: com.sun.star.io.IOException
Message: .


Thanks
Back to top
View user's profile Send private message
ms777
Super User
Super User


Joined: 07 Feb 2004
Posts: 1355

PostPosted: Thu Apr 20, 2006 1:41 pm    Post subject: Reply with quote

unix or windows ? If the latter, try a backslash ...
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