通过VC#2010将我的数据集/ DataGridView /数据库导出到Excel 2007 [英] Exporting my Dataset/DataGridView/Database to Excel 2007 through VC# 2010

查看:70
本文介绍了通过VC#2010将我的数据集/ DataGridView /数据库导出到Excel 2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,感谢您抽出时间阅读这个问题:)

现在,我尝试在谷歌搜索但我不明白代码或我的技能不是足够。

我的问题是:如何通过使用单击按钮将我的数据集SADDatabaseDataSet或我的数据库或我的DataGridViews导出到我的MS Excel 2007?(我使用的是Visual C#2010)

,如果可能的话,仅在1个工作表中。

高级谢谢你我的救星:D

顺便说一下,我的程序有2个函数,第一个是输入每列所需的数据,另一个是(什么)应该)检查已导出到excel的当前数据库

解决方案

如果您使用的是Web应用程序,则必须查看本文。

使用C#格式化将DataTable导出到Excel [ ^

First of all, thank you for your time in reading this question :)
Now, i have tried searching in google yet i don''t understand the codes or my skills aren''t sufficient.
My question is: How can i export my dataset "SADDatabaseDataSet" or my Database or my DataGridViews to my MS Excel 2007 through the use of a button click?(I am using Visual C# 2010)
and if possibile, in just 1 worksheet only.
Advanced Thank you to you my savior :D
btw, my program has 2 functions, first is to input the needed data for each column, the other is to(what should be) check the current database that has been exported to excel

解决方案

You have to check this article if you are using web application.
Export DataTable to Excel with Formatting in C#[^]


这篇关于通过VC#2010将我的数据集/ DataGridView /数据库导出到Excel 2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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