Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: [NPOI.XSSF.UserModel] XLSX file : repair needed when using Double in SetCellValue()

$
0
0
Hello,

Sorry for the long wait, I was stuck on another big project and could not make the test.

Here what I did :
1- When instanciating the new XSSFWorkbook, I added this command :
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
2- In order to keep the application "clean", after writing the final file to the disk, I added this command:
Thread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture
Everything is working alright and there is no more file corruption

Thanks for the support, I hope my thread will help some other people :)

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>