C# - Excel Number Formatting Issue with International settings

后端 未结 4 993
说谎
说谎 2021-01-15 06:32

I am trying to write to an Excel 2003 spreadsheet using c# 3.5. However I am unable to get this to function correctly across different country settings. The country settings

4条回答
  •  悲哀的现实
    2021-01-15 07:27

    Excel used over COM has several restrictions most important ones to respect are:

    • Use the en-US culture (LCID bug)
    • Call all the methods from one and the same Thread (set to the right culture "en-US")

    Then you'll get rid of most sporadic crashes regarding Excel automation & localization.

提交回复
热议问题