Creating an Excel file using .NET (C#) - Problems with columns headers!
Posted
by tsocks
on Stack Overflow
See other posts from Stack Overflow
or by tsocks
Published on 2010-03-26T08:05:36Z
Indexed on
2010/03/26
8:13 UTC
Read the original article
Hit count: 343
Hello,
I want to create & fill a .xls file using ADO.NET or LINQ, but I do not want to have the columns names in the first row. I just want to insert rows starting in row no. 1.
I know I have to insert colums first, but... is there a way to 'hide' those columns headers?
The problem is that, in first row of my spreadsheet, I must have only two values (one in A1 and the other in B1), but in the remaining rows I'll be inserting more than just two values (maximum 15 columns).
I'm open to suggestions/hacks/tricks even if that's not the best way of doing this.
Thanks!
© Stack Overflow or respective owner