Hi,
I am trying to import data from database into Excel using ImportDataTable. Few records have some data similar to following causing unExcepted exception
Sample data in table
| Contact# | Price Desc |
| T-7916 | .1457 Basis + .4389 Board |
| T-7939 | .1647 Basis + .4519 Board |
| T-7941 | .4461 Board + .1274 Basis |
| T-7946 | |
| T-7951 | .8403 per lbs del |
| T-7959 | .8675 per lbs del |
| T-7980 | .1431 Basis + .4514 Board |
| T-7980 | .1431 Basis + .4514 Board |
| T-7981 | .1485 Basis + .4514 Board |
As you can see, highlighted rows causing the issue.
How can I import this data as normal text. I tried to set the number format as Text ("@"), disabledFormulaCalculations etc. nothing worked out. Please suggest how to solve this.
Thank you!
Sunil
|
Contact# |
Price Desc |
|
T-7916 |
=.1457 Basis + .4389 Board |
|
worksheet.ImportDataTable(table, true, 1, 1, true); |
thanks a lot Ramya! that solution worked!!
Thanks,
Sunil