When exctracting data form a SQL Table, I store data in Object variables in order to be sure not to loose data type.
Then I made a method to check Object data type and transtype automatically the object to the most fitted type in order to use in SetCellValue()
this works on some point, but in most cases, when opening the XLSX file, Excel 2010 ask for a file repair. As I don't have this version on my computer, I can't check differences between files, and Excel 2003 refuses to convert and open the file.
I tried some things but the only one that is working is to transtype Double values in another type (Interger and String work)
Thanks in advance for any hint you can give me about that ! :)
Regards,
Mukuahya
Then I made a method to check Object data type and transtype automatically the object to the most fitted type in order to use in SetCellValue()
this works on some point, but in most cases, when opening the XLSX file, Excel 2010 ask for a file repair. As I don't have this version on my computer, I can't check differences between files, and Excel 2003 refuses to convert and open the file.
I tried some things but the only one that is working is to transtype Double values in another type (Interger and String work)
Thanks in advance for any hint you can give me about that ! :)
Regards,
Mukuahya