Hi Melba,
You will get that error if you make the following changes in your coding
1. ImportDataTable instead of ImportDataView
2. row["item"] = System.DBNull.Value
Thanks,
Leonid
>Hi Simon,
Thanks for your interest in Essential XlsIO.
I am afraid. I was not able to reproduce the issue [System.InvalidCastException]. Here is the test sample that I used to test this issue.
a rel='nofollow' href="http://www.syncfusion.com/Support/user/uploads/ImportDataTable_Null_661650be.zip">ImportDataTable_Null.zip
Here is the output file generated with out any exception:
SampleOne.xlsCould you please take a look at the sample above and kindly let me know if you still find any problem, if not could you please modify this sample so that I can reproduce the issue. This would help me in investigating this issue further.
Thanks,
Melba