导出到Excel - 数字不显示 [英] Export to Excel - Digits not displaying

查看:248
本文介绍了导出到Excel - 数字不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将数据导出到Excel时,我的列显示正确...但数字列未按输入方式显示...



我的代码

 ReqSheet.Cells( 16  2 )。value = ReqDtb.Rows( 13 )。项目( 描述)。ToString()
ReqSheet.Cells( 16 2 )。EntireColumn.NumberFormat = @





以上单元格(16,2)。输入的值=161509120678410321527461244



但是它在Excel中显示为16E + .....等...



那么如何解决这类错误呢?



再次感谢

解决方案

谢谢Richard .... ReqSheet.Cells(16,2).EntireColumn .NumberFormat =####################### 0



这解决了我的问题

Hi, When I try to export my data to Excel, my columns are displaying correctly...But the digit column is not displaying by entered manner...

My Codes

ReqSheet.Cells(16, 2).value = ReqDtb.Rows(13).Item("Description").ToString()
ReqSheet.Cells(16, 2).EntireColumn.NumberFormat = "@"



The above Cells(16,2).Value entered ="161509120678410321527461244"

But It has displaying in Excel as 16E+.....etc...

So how to solve this type of errors?

Thanks Again

解决方案

Thanks Richard.... ReqSheet.Cells(16, 2).EntireColumn.NumberFormat = "#######################0"

This solves my problem


这篇关于导出到Excel - 数字不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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