问题描述
我使用 FastReport 社区。我从使用 .Net Core 5.0 的 person 类创建一个列表并发送到报告,但 fastreport 由列表第一个元素中的一行组成。
List<Person> data = GetDummyData();
Report report = new Report();
report.Load("C:\\Users\\test\\Desktop\\PersonjsonTest.frx");
report.RegisterData(data,"JSON.item");
report.Prepare();
我使用的json格式如下;并且 json 模式是自动创建的。
{
"Id": {
"type": "integer"
},"Name": {
"type": "string"
},"Surname": {
"type": "string"
},"Age": {
"type": "integer"
}
}
报告已成功生成,但仅从一行生成,尽管我在“.frx”报告中使用了表格。我用了很多不同版本的json,结果都一样。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)