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

Relative paths for opening and storing writer docs.

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


Joined: 13 Aug 2007
Posts: 67

PostPosted: Mon Sep 10, 2007 12:57 pm    Post subject: Relative paths for opening and storing writer docs. Reply with quote

I have a macro in OOo basic that successfully opens and stores writer docs but uses absolute path names. I am wondering if there is a way to use relative paths using some other function besides ConvertToURL() and LoadComponentFromUrl() who only take absolute paths.

Thanks
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Thu Sep 13, 2007 11:48 am    Post subject: Reply with quote

Have you tried things just using a relative path?

Code:
Print ConvertToUrl("./one/hello.txt")


but, what does this mean? What is the current directory for OOo? Probably not what you think, and dependent on how OOo is started.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
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