V
Vagabond Software
I am updating several excel worksheets using ADO.NET (OLEDB objects). Everything is working fine except all the data is inserted as text despite being typed in the DataTable object and when the Excel worksheet was actually created.
If the user-specified Excel Workbook does not exist, one is created and worksheets are added using "CREATE TABLE" statements with type-specific data columns. The data type for each column is specified in the DataTable object as well as the actual "CREATE TABLE" SQL statement.
However, if the user-specified workbook already exists, the worksheets will be updated correctly, but all data will be inserted as text values regardless of how it is typed in the DataTable.
Any help, suggestions, or advice would be greatly appreciated.
- Carl
If the user-specified Excel Workbook does not exist, one is created and worksheets are added using "CREATE TABLE" statements with type-specific data columns. The data type for each column is specified in the DataTable object as well as the actual "CREATE TABLE" SQL statement.
However, if the user-specified workbook already exists, the worksheets will be updated correctly, but all data will be inserted as text values regardless of how it is typed in the DataTable.
Any help, suggestions, or advice would be greatly appreciated.
- Carl