[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?Page 1 / 1
[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?This in order to communicate with Excel?
Right?
If so, why don't use Excel directly instead? The .csv file is really just an evil necessity that you don't really need?
Invoke Excel as a COM object (user doesn't have to see it) and pass the data straight over.
[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?Thanks for the reply. You are correct that the csv is an evil step to avoid but you have to do what you have to do.
[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?Thanks for the reply. You are correct that the csv is an evil step to avoid but you have to do what you have to do.
[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?Thanks for the reply. You are correct that the csv is an evil step to avoid but you have to do what you have to do.
[Migrated content. Thread originally posted on 05 April 2004]
We are writing a routine to export our data to an Excel CSV file. The export works just fine but reading it back in is a bit tricky if one of the Excel cells contains a comma. Excel will enclose that field with Double quotes. This sort of makes the import much trickier. Does anyone know how to force Excel to always use Double quotes?One of my favourite demoes is to have the cobol application running on Linux. Using the thin client to provide a display on the client side with Windows and Office, the latter, in which we generate a mail merge on Word, based on a vision file the cobol app reads locally on the linux machine...
I promise you, I have seen this executing a number of times, but I still love seeing MS Word print neatly formatted letters under full control of ACUCOBOL-GT on a linux server, somewhere else in the world.
Take care.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.