Tag: xtrareport

XtraReports以编程方式导入Excel格式单元格

当使用Designer时,我可以编辑单元格的XlsxFormatString属性为“#,## 0.00”,结果如预期。 当我尝试以编程的方式做到这一点,没有什么改变: private XRTableCell CreateCell(int width, string text, bool haveColor, string color, bool isBold, DevExpress.XtraPrinting.BorderSide border, bool IsNumeric) { //MyWorkaround if (IsNumeric) { if (text.Contains(",")) { if (text.Length > text.IndexOf(',') + 3) text = text.Remove(text.IndexOf(',') + 3); } } //MyWorkaround end XRTableCell cell = CreateCell(width, text, haveColor, color, isBold); cell.Borders = border; if (IsNumeric) […]