Posted 3 February 2022, 2:26 am EST
Hi Jitender,Using Spread15
I noticed that exporting to xlsx is not going well anymore.
The number format is no longer correct. (PreferText does not help)
Exporting to xls seems to work fine.
Regards Piet
Forums Home / Spread / Spread for WinForms Topics
Posted by: p.feenstra on 3 February 2022, 2:26 am EST
Posted 3 February 2022, 2:26 am EST
Hi Jitender,Replied 6 February 2022, 3:47 pm EST
Hi,Replied 23 February 2022, 4:36 pm EST
Hi Piet,FarPoint.Win.Spread.CellType.GeneralCellType genlcell = new FarPoint.Win.Spread.CellType.GeneralCellType();
System.Globalization.NumberFormatInfo numform = (System.Globalization.NumberFormatInfo)System.Globalization.NumberFormatInfo.CurrentInfo.Clone();
numform.NumberDecimalDigits = 2;
genlcell.NumberFormat = numform;
genlcell.NegativeRed = true;
//Add formatstring
genlcell.FormatString = "n";
Decimal myCurrency = new Decimal(123456.125);
fpSpread1.ActiveSheet.Cells[0, 0].CellType = genlcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = "myCurrency";
fpSpread1.SaveExcel("test.xlsx", FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat);
Replied 25 February 2022, 5:54 am EST
Hi Avnish,Replied 28 February 2022, 6:32 pm EST
Hi Piet,Replied 2 March 2022, 11:40 pm EST
Hi Avnish,Replied 3 March 2022, 6:17 pm EST
Hi Piet,Replied 3 March 2022, 7:09 pm EST
Hi Avnish,Replied 6 March 2022, 8:34 pm EST
Hi Piet,Replied 13 March 2022, 9:59 pm EST
Hi Avnish,Replied 14 March 2022, 3:50 pm EST
Hi,