| View previous topic :: View next topic |
| Author |
Message |
allenrmaher General User

Joined: 19 Jul 2006 Posts: 5
|
Posted: Thu Nov 30, 2006 10:00 am Post subject: How do you get the location of the current file? |
|
|
I am working on a data export function for a calc sheet that is destined for cross platform use (Mac, Linux, Win) and one feature is the ability to write a text file summary.
I am trying to devise a method of coming up with a default data location for writing the file based on where the current file is saved but can't find that as a function. CurDir returns a value of /usr/lib/openoffice/program
Right now I have a user input dialogue but this is a poor substitute solution for me.
Thanks. |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Thu Nov 30, 2006 10:39 am Post subject: |
|
|
Print ThisComponent.getURL
Print ConvertFromURL(ThisComponent.getURL) |
|
| Back to top |
|
 |
allenrmaher General User

Joined: 19 Jul 2006 Posts: 5
|
Posted: Thu Nov 30, 2006 10:43 am Post subject: |
|
|
Thanks much... it is always the simple things that are easy to overlook.  |
|
| Back to top |
|
 |
|