in reply to Re: Re: Re: Re: Re: csv output
in thread csv output

Could you clarify what you mean by can't produce a useful CSV file?

My understanding and experience is that Excel generally does a reliable CSV export. Here are the limitations and issues that I know about. It cannot successfully export structure that requires metadata which does not fit in CSV format. (Hardly Excel's fault.) Many people do not know how to parse CSV (split does not cut it, and the interface to Text::CSV makes it impossible to produce a reliable solution). (Again not Excel's fault.) And several years ago they had a bug where positive floating point numbers expressed in scientific notation were not recognizable as being numbers by most other spreadsheets (or Access IIRC). That was their fault, but has long been fixed. And Excel, like most Microsoft products, uses pre-emptive locking, which I find rather irritating and inconvenient. (Not to mention a source of significant trouble from time to time.)

Are there any other issues that I should be aware of?

Replies are listed 'Best First'.
Re: Re (tilly) 6: csv output
by tjh (Curate) on Mar 15, 2002 at 21:24 UTC
    Ultimately I guess my Excel issues probably concern a more global desire for predictability of CSV format across products, which will probably seem mundane to you. Not that MS is the only player I have run into with these issues in the not-daily experiences I've had with this.

    The Excel '97 on my laptop will export everything separated by a comma, unless there's a comma within the field (cell), whereupon it exports that cell (and only that cell) with double quote delimiters. It also offers me no controls to set preferences for this export type.

    OTOH, my memory of it is that MS's FoxPro products seem to prefer to use double quote delimiters on all fields, Outlook exports with double quotes on all fields, but Outlook Express seems to export with commas only, just as examples. go figure. The other side of this is for me has been that over the years, various products I would use to import a file expected a CSV file to be in one or another structure (double quotes, no quotes, etc.)

    StarOffice products offers chooices on all the characteristics of these exports, which I of course admire and wish other products did the same.