ASP.NET(C#)将DATASET导出XLS文件【1】
这个是主程序,其中调用了下面的代码
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
下面是被调用的代码,将DATASET编写成为HTML格式。
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
下面是我从别的地方找到的。写的是每个单元的格式
1) 文本:vnd.ms-excel.numberformat:@
2) 日期:vnd.ms-excel.numberformat:yyyy/mm/dd
3) 数字:vnd.ms-excel.numberformat:#,##0.00
4) 货币:vnd.ms-excel.numberformat:¥#,##0.00
5) 百分比:vnd.ms-excel.numberformat: #0.00%