× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello All,

I have a requirement to produce a csv file with all text strings double
quoted.

We have built a utility that will produce an Excel spreadsheet that can
format the cell as text using the POI classes and we have also tried
enclosing the text values in double quotes.

If we open the excel spreadsheet and then try and save with any of the csv
options we will either get a text filed with double double quotes like
""this is the text"" or if we don't add the double quotes when we save the
file as csv then the text strings will have no quotes at all around the
text string.

My first question is does anyone have a method to generate an excel
spreadsheet either .xls or .xlsx that can then be saved as a csv file that
will include double quotes around text cells ?

The utility we have built enables external user defined spreadsheet
formats and works very well, unfortunately this time we have to produce a
csv file with the double quoted text strings.


As an alternative I was looking at an example Jon Paris provided some time
back on RPG-OA. His example used an externally defined file for the
format that the csv file was to be written out in. We need the external
format to be variable. The obvious answer is just to create a file with
one large field and build the entire record up within the program with the
appropriate formatting and then write the record to a file in the IFS.

Here is a link to that sample:
http://partner400.com/examples/openaccessexample1.htm Not sure if there
were any later versions of this example ?

Is there an alternative to this that still retains the flexible user
defined format of the output ?

Appreciate any suggestions

Thank you

Don Brown


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.