如何使用C#将数据表中的数据转储到Excel中? [英] How to dump the data from a data table into Excel using C#?

查看:84
本文介绍了如何使用C#将数据表中的数据转储到Excel中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

谁能帮我编写将数据转储到Excel文件的代码.

我确实只填写了一张工作表.

假设我有一个以上的表,该如何将另一个表转储到不同的工作表中?

Hi everyone!

Can any one help me for writing code for dumping data into an Excel file.

I did to fill in one Sheet only.

Suppose if I have more than one table, how do I dump the different Table into different Sheets?

推荐答案

应该不难.

向我们展示您拥有的代码,我应该可以使用您当前的方法为您提供一种简单的方法.
It shouldn''t be too hard.

Show us the code you have and I should be able to give you a simple way using your current method.


检查我的解决方案:

使用MDAC和Oledb使用MS Excel(xls/xlsx) [
Check my solution to this :

Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^]


这篇关于如何使用C#将数据表中的数据转储到Excel中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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