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 do you get the location of the current file?

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


Joined: 19 Jul 2006
Posts: 5

PostPosted: Thu Nov 30, 2006 10:00 am    Post subject: How do you get the location of the current file? Reply with quote

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
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Thu Nov 30, 2006 10:39 am    Post subject: Reply with quote

Print ThisComponent.getURL
Print ConvertFromURL(ThisComponent.getURL)
Back to top
View user's profile Send private message
allenrmaher
General User
General User


Joined: 19 Jul 2006
Posts: 5

PostPosted: Thu Nov 30, 2006 10:43 am    Post subject: Reply with quote

Thanks much... it is always the simple things that are easy to overlook. Very Happy
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