网格视图导出到Excel [英] Grid View Export to Excel

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

问题描述

我需要将Grid View中的数据导出到VB.Net中的Excel工作表.
我所做的事情在本地计算机上运行良好,但是当我在Production Server上载相同的代码片段时,出现了无法找到/创建Active X组件的异常.

请让我逃脱.

I need to export the data in Grid View to an Excel Sheet in VB.Net.
The thing I have done is wroking fine at my local machine but when the same piece of code I upload at Production Server, gives exception that Active X Component can not be find/created.

Please get me path to escape from.

推荐答案

您应该去^ ]了解如何将Gridview导出到Excel.
[由CP的伟大作家撰写的优秀文章]
you should go there There[^] to learn how to export Gridview to Excel.
[excellent article written by great writer of CP]


您说:请让我逃脱.
如果您想逃脱,那就这样.

认真地.您没有告诉我们您的网格导出功能/代码的样子.根据您的描述,您可能正在使用ActiveX,如果是这样,则它仅适用于IE,并且大多数浏览器可能会阻止或要求用户先下载它.因此,它们可能无法在所有开箱即用的情况下使用.
You said: Please get me path to escape from.
That way if you want to escape.

Seriously though. you did not tell us how your grid exporting function/code looks like. From your description you might be using ActiveX, if so, it only works with IE, and most browsers may prevent or ask the user to download it first. So, they may not work in ALL cases out of the box.


这篇关于网格视图导出到Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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