ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Column headers in CSV file for excel (https://www.excelbanter.com/excel-programming/395066-column-headers-csv-file-excel.html)

oceanmist

Column headers in CSV file for excel
 
I have a c# windows form that is using steam writer that is writing rows from
a database instead of a dataset to a CSV file but when I open it in excel
10.0 the Column headers are just the letters. Is there any way to write in
csv so as to rename the column headers?

If not I can write to column headers to the the first row can that be used
in anyway for analysis or would it be useless?

Conor.

joel

Column headers in CSV file for excel
 

All CSV is the actual data witth commar to seperate the data into
diffferentt columns in Excel. I would open the CSV file with notepad and see
whatt datta is actually in the file to determine if the problem is in writing
the data or excel reading tthe data.

Make sure the CR/LF is put in the CSV file.

"OceanMist" wrote:

I have a c# windows form that is using steam writer that is writing rows from
a database instead of a dataset to a CSV file but when I open it in excel
10.0 the Column headers are just the letters. Is there any way to write in
csv so as to rename the column headers?

If not I can write to column headers to the the first row can that be used
in anyway for analysis or would it be useless?

Conor.



All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com