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

Text Export Cell Range

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


Joined: 29 Jan 2004
Posts: 5
Location: Auburn Hills, Mi

PostPosted: Thu Jan 29, 2004 2:13 pm    Post subject: Text Export Cell Range Reply with quote

Hi All,

I'm trying to export a spreadsheet as text (csv), but I only want a range of the cells. Is anyone aware of a way to do this? I'm currently only having success exporting the entire sheet. I had thought to use the FilterOptions property of the text filter, but that doesn't seem to work for export (unless I'm using it wrong).

Any help is appreciated.

Toby
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Thu Jan 29, 2004 8:29 pm    Post subject: Reply with quote

You could use the API to Select the range of cells you are interested in.

Then use the Dispatcher to Copy the selection to clipboard.

Use the API to create new spreadsheet. (It could even be hidden so that it doesn't flash up on the screen.)

Use the Dispatcher to Paste into the new document.

Export the new (invisible) document.

Close the document.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Toby1
General User
General User


Joined: 29 Jan 2004
Posts: 5
Location: Auburn Hills, Mi

PostPosted: Fri Jan 30, 2004 7:04 am    Post subject: Reply with quote

Thanks. I'll give that a try.
Back to top
View user's profile Send private message
Toby1
General User
General User


Joined: 29 Jan 2004
Posts: 5
Location: Auburn Hills, Mi

PostPosted: Fri Jan 30, 2004 9:20 am    Post subject: Reply with quote

Okay, that's still not working for me.

I think my problem is that I'm not properly getting the cell range selected for the dispatcher, can you point me at any examples of doing this for spreadsheet cell ranges?
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