MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

模板填充 Excel 的时候希望增加几个特殊标签

Open wflc opened this issue 2 years ago • 1 comments

模板填充 Excel 的时候希望增加几个特殊标签。 {{@RowIndex}} 可以直接写入行号 {{@Sum}} 可以直接计算列数值总和 {{@Max}} 可以直接计算列数值最大值 {{@Min}} 可以直接计算列数值最小值 {{@Avg}} 可以直接计算列数值平均值

wflc avatar Feb 23 '24 09:02 wflc

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.

tomexou avatar Apr 22 '24 05:04 tomexou

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.

michelebastione avatar May 15 '25 21:05 michelebastione