Creating Excel Files with # in Column Name

Posted by Superdumbell on Stack Overflow See other posts from Stack Overflow or by Superdumbell
Published on 2010-03-26T02:35:09Z Indexed on 2010/03/26 3:03 UTC
Read the original article Hit count: 390

Filed under:
|
|
|
|

I'm having problem creating Excel files using Jet. When I create a table and give it a Column name as

CreateTable [Sheet1] ([ColumnName#] String)

It replaces the header column with

ColumnName.

Is there a way I can make excel give the column headers a name with out any conflict in what characters I can have in it? Are there any escape characters that I can use in the column names?

Is there a cheap(~$50)/free .NET library that would give me better control over the Excel file that would allow me to create both XLS and XLSX files with out having excel installed?

Basically what I'm trying to accomplish is having a DataTable get dumped into an Excel File and have the Column names appear just as they do in the in the DateTable.

© Stack Overflow or respective owner

Related posts about excel

Related posts about oledb