如何从表导出到excel表..在c#中 [英] how to export from table to excel sheet..in c#

查看:69
本文介绍了如何从表导出到excel表..在c#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从表格导出到Excel表格..在c#

how to export from table to excel sheet..in c#

推荐答案

有很多不同的方法可以做到这一点,从创建CSV文件Excel可以通过XLS文件读取XLSX文件vai Office Interop或ODBC,并且随着输出格式需要变得更加现代化,作业的复杂性也会增加,但Excel本身可以读取它们中的任何一个。



所以,你需要确定你真正想要的文件类型。

但这可能有所帮助:它是一种中间立场的解决方案:DataTable to Excel [ ^ ]
There are a large number of different ways of doing this, ranging from creating a CSV file that Excel can read, through XLS files to XLSX files vai Office Interop or ODBC, and the complexity of the job increases as the output format needs to get more modern, but Excel itself can read any of them.

So, you need to decide what type of file you actually want.
But this may help: it's a sort of "middle ground" solution: DataTable to Excel[^]


这篇关于如何从表导出到excel表..在c#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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