Chris Kratz wrote: > Hello all, > > Would there be any reason that the csv export filter for a spreadsheet would > create an empty file, while running it interactively would work fine? > > I've been trying to modify the ooextract example application to export csv > with no luck. > > When I run with an existing conversion (--pdf for exmple), the script > produces a pdf file as expected. When I do the same and change the filter to > csv, I get no errors and a 1 byte file. I look at it with a hex dump and it > contains only "0a". > > Doing the conversion directly through the gui works fine and produces the > expected file. It seems as if I either have the wrong filter, or there are > other options that need to be passed in. > > Does anyone have any ideas what I might be doing wrong?
In fact the export fails because you don't provide any filter options. The "csv" filter is not able to operate without them. Unfortunately the API (storeTo/AsURL) does not allow to throw a suitable exception (an API bug we can't fix without losing compatibility), so the error is not notified to the caller. There seems to be an additional bug that the empty file is not removed, I roughly remember to have seen such an issue some time ago. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
