You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
导出是空格,什么内容都没有
Offline
测试了一下格式设置确实无法正确导出,不过结果不是空格,只有纯文本内容,能否请提供一下你的设置类型的代码。
Offline
var dateTimeFormatArgs = new unvell.ReoGrid.DataFormat.DateTimeDataFormatter.DateTimeFormatArgs
{
CultureName = "zh-CN",
Format = "yyyy-MM-dd",
};//日期型
worksheet.SetRangeDataFormat(worksheet.Ranges[0, 0, 1, 1], unvell.ReoGrid.DataFormat.CellDataFormatFlag.DateTime, dateTimeFormatArgs);
worksheet[0, 0] = DateTime.Now;
worksheet.SetRangeDataFormat(worksheet.Ranges[0, 1, 1, 1], unvell.ReoGrid.DataFormat.CellDataFormatFlag.Number, new unvell.ReoGrid.DataFormat.NumberDataFormatter.NumberFormatArgs
{
DecimalPlaces = 1,
});
worksheet[0, 1] = 10.00M;
数字类型也是。还有小数位显示应该为一位,实际上是两位都显示出来。
Offline
已经确认两个类型的导出问题,DateTime类型的data和decimal类型的数值确实无法导出。问题将在下一个版本中修正。感谢提出。
Offline
This problem has been fixed in version 1.2, which can be downloaded from: https://reogrid.net/download. Thanks for reporting!
Offline
谢谢!
Offline
Pages: 1
Topic closed