if (result.total==0) //如果没记录
{
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.First;//水平合并单元格
builder.Write("暂无数据");
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;//水平合并单元格
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;//水平合并单元格
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;//水平合并单元格
builder.EndRow(); /* 结束一行 */
}
10-26
3812
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-27
1374
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)