从网页中导出Excel工作表中的问题 [英] export problem in excel sheet from web page

查看:122
本文介绍了从网页中导出Excel工作表中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从gridview导出数据到excel时遇到问题.其他数据列的导出效果很好,但是时间列在excel中显示错误.像48:10:20.我确定48小时没有时钟.我不知道为什么会这样.没有人有任何想法......

i have problem while i export data from a gridview to excel. other data columns are export well but the time column shows wrong in excel. like 48:10:20. i m sure there is no clock for 48 hr. i dont know why is it happening. do anyone have any idea......

推荐答案

请使用下面的链接在excel中导出

从C#中的GridView导出到Excel [ ^ ]

这是一个很好的链接,将提供所需的输出.
Hi, use below link to export in excel

Export to Excel from GridView in C#[^]

It is a good link, and will give a required output.


您好
如果您使用的是excel模板,请在模板中设置该列的格式.
如果直接导出,请在将数据放入该列之前尝试设置该列的时间格式.

问候,
Naresh S.
Hi
If you are using an excel template, then set the format for that column in the template.
If you export directly, try to set the time format for that column before you put the data in that column.

Regards,
Naresh S.


这篇关于从网页中导出Excel工作表中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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