MiniExcel
MiniExcel copied to clipboard
模板填充 Excel 的时候希望增加几个特殊标签
模板填充 Excel 的时候希望增加几个特殊标签。 {{@RowIndex}} 可以直接写入行号 {{@Sum}} 可以直接计算列数值总和 {{@Max}} 可以直接计算列数值最大值 {{@Min}} 可以直接计算列数值最小值 {{@Avg}} 可以直接计算列数值平均值
You can fill the custom dataset with goups as followings:
var data = new { RowList = myDataList, Summary = { max = 2, min = 1, avg = 0}}
Show these values in the template xlsx.
To compute the values before filling the dataset.
As already pointed out, there is little to no benefit to add these tags when the same result they would offer can already be achieved very easily.