Hi, I’n trying to set a custom currency formatting that corresponds to the following Excel setting. (currency.png)
This is what I have tried but it results in a corrupt file.
var currencyStyle = book.CreateStyle();
currencyStyle.Number = 8; //Or should it be 7?
currencyStyle.Custom = “#,##0 SEK”; //If I remove “SEK” the file is not corrupt
cell.SetStyle(currencyStyle, new StyleFlag { NumberFormat = true });