将数据从Gridview导出到Excel工作表并附加到文本框 [英] Export Data from Gridview into Excel Sheet and Attach to Textbox

查看:98
本文介绍了将数据从Gridview导出到Excel工作表并附加到文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以将数据从Gridview导出到Excel并将Excel文件直接附加到文本框吗?




我们可以将数据从Gridview导出到Excel中,并且可以直接将邮件发送给相关人员吗?


有可能吗?

我需要帮助:)


问候
Harsha

Can We Export Data from Gridview into Excel and Directly attach the Excel file to Textbox?


Or

Can we Export Data from Gridview into Excel and Directly can we send a mail to the concerned person?


Is it possible guys?

I need Help :)


Regards
Harsha

推荐答案

是的,Harsha您可以轻松地将数据从Gridview导出到Excel.
您可以将gridview数据放入数据表中,并使用以下dll
RKLibExportData.dll [
Yes Harsha you can easily export Data from Gridview into Excel.
you can take the gridview data into a datatable and using this following dll
RKLibExportData.dll[^] u can easily export Data from Gridview into Excel.

and the code that will help you is mentioned below
RKLib.ExportData.Export objExport = new RKLib.ExportData.Export("Win");
                objExport.ExportDetails(dtEmployee, Export.ExportFormat.Excel, "D:\\"+filename+"_CollectionDetails.xls");


尝试以下链接: ^ ]
Try this link : http://weblogs.asp.net/stanly/archive/2011/05/11/send-gridview-as-excel-attachment-in-mail.aspx[^]


这篇关于将数据从Gridview导出到Excel工作表并附加到文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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