将GridView导出到Excel工作正常,但是我的问题是当excel打开文件时,它变成了数字,这可能会导致问题,导致该字段是信用卡号(例如1234567812345678),excel将显示1.23457E + 15,并且实际值变成1234567812345670,那是完全错误的。
我建议你使用EPPlus.dll导出Excel工作表..你得到它在这里 ..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.