| View previous topic :: View next topic |
| Author |
Message |
Shhmiggly Power User


Joined: 13 Aug 2007 Posts: 67
|
Posted: Mon Sep 10, 2007 12:57 pm Post subject: Relative paths for opening and storing writer docs. |
|
|
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 |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Thu Sep 13, 2007 11:48 am Post subject: |
|
|
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 |
|
 |
|