closedxml.report IEnumerable 如何垂直扩展而不是水平扩展
How closedxml.report IEnumerable extend vertical not horizontal
我有这样的数据:
"materialFormingFee": [
{
"type": "Cover(盖)",
"des": "ABS 757K+AS 118",
"matching": "100%",
"weight": "0",
"ComponentWeight": 0,
"materilPrice": 0,
"shapingPrice": 0,
"lossPrice": 0,
"totalPrice": 0,
"byProductWeight": "0",
"holeNum": "8",
"eqp": "海天160T",
"WorkPrice": "0",
"period": "0",
"lossRate": "0",
"efficiency": "0",
"up": "0",
"TonerUp": "0",
"TonerQty": "0",
"TonerAmt": 0,
"TonerSpc": "F8756",
"eqp_man_unit_up": 0,
"eqp_fixed_unit_up": 0,
"eqp_manager_unit_up": 0,
"std_man_qty": "0"
}....
]
并且我定义 excel 名称 materialFormingFee
并使用 {{item.propartyName}}
,如下图所示:
但结果水平延伸而不是垂直延伸
我已经阅读了 Github Wiki 和网站 (https://closedxml.github.io/ClosedXML.Report/docs/en/)
上的信息
我终于明白了 [doc] 的要点(
https://closedxml.github.io/ClosedXML.Report/docs/en/Flat-tables)
specifying a vertical table must have at least two columns and two rows
和垂直结果:
我有这样的数据:
"materialFormingFee": [
{
"type": "Cover(盖)",
"des": "ABS 757K+AS 118",
"matching": "100%",
"weight": "0",
"ComponentWeight": 0,
"materilPrice": 0,
"shapingPrice": 0,
"lossPrice": 0,
"totalPrice": 0,
"byProductWeight": "0",
"holeNum": "8",
"eqp": "海天160T",
"WorkPrice": "0",
"period": "0",
"lossRate": "0",
"efficiency": "0",
"up": "0",
"TonerUp": "0",
"TonerQty": "0",
"TonerAmt": 0,
"TonerSpc": "F8756",
"eqp_man_unit_up": 0,
"eqp_fixed_unit_up": 0,
"eqp_manager_unit_up": 0,
"std_man_qty": "0"
}....
]
并且我定义 excel 名称 materialFormingFee
并使用 {{item.propartyName}}
,如下图所示:
但结果水平延伸而不是垂直延伸
我已经阅读了 Github Wiki 和网站 (https://closedxml.github.io/ClosedXML.Report/docs/en/)
上的信息我终于明白了 [doc] 的要点( https://closedxml.github.io/ClosedXML.Report/docs/en/Flat-tables)
specifying a vertical table must have
at least two columns and two rows
和垂直结果: