解决导出Excel格式问题

    在通过Datatable或DataGrild或GrildView到出Excel时,经常遇到身份证变成了科学技术发,数字前面的0不见了

解决次问题,必须对其格式进行转换

     td {mso-style-parent:style0;
     mso-number-format:"\@";}
    </style>

原文地址:https://www.cnblogs.com/goldnet/p/1275559.html