如何在asp.net中导出到excel时将excel单元格设置为文本 [英] how can i format excel cell is set to text while exporting to excel in asp.net

查看:395
本文介绍了如何在asp.net中导出到excel时将excel单元格设置为文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net c#中将数据从db导出到excel时,如何将excel单元格设置为文本。我的问题是在导出到excel时,excel表中没有显示前导零。

How can i format excel cell is set to text while exporting data from db to excel in asp.net c#.My problem is while exporting to excel the leading zeros are not displaying in excel sheet.

推荐答案

此提示 - 导出使用网页格式的Excel数据 [ ^ ]或许可以帮助您入门。
This tip - Export Data to Excel with formatting in web[^] could perhaps help you get started.


这篇关于如何在asp.net中导出到excel时将excel单元格设置为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆