有时候需要按规则导出到Excel中,用模板的方法外,我提供一个简易的:

1 核心代码如下:

  Response.Write("<table><tr><td>单位负责人</td><td> </td><td>统计负责人:</td></tr></table>");

2 测试效果图

GridView格式化导出Excel

并且可以和表头设置相结合:

 

GridView格式化导出Excel protected void GridViewXinXiLan_RowCreated(object sender, GridViewRowEventArgs e)
    }

 

效果图:

GridView格式化导出Excel

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2021-09-12
  • 2021-09-25
  • 2022-02-04
相关资源
相似解决方案