如何将datagrid视图导出到exel文件 [英] how to export datagrid view to exel file

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

问题描述

我想将datagridview结果保存在exel文件中,因此,如果可能的话,请帮帮我

i want to save datagridview result in exel file so if possible , please help me

推荐答案

尝试 ^ ]

并学习使用Google.
希望对您有所帮助:)
try This[^]

and learn to use Google.
hope it helps :)


如果已安装Office,则可以使用Excel互操作程序,也可以使用库.我们使用一个名为Flexcel的库,非常好.

有一次,我手动创建了Excel XML文档(不是新的xlsx格式,不是旧的XML格式).它允许您添加所有正常的Excel功能-公式,格式等.
You could use the Excel interop if Office is installed, or use a library. We use a library called Flexcel, very nice.

At one point I created the Excel XML document manually (not the new xlsx format, the old XML format); It allows you to add all the normal Excel features - formulas, formatting, etc.


快速的Google搜索:
将DataGridView导出到Excel的最佳方法 [ ^ ]
如何使用vb.net将datagridview导出到excel? [ ^ ]
代码片段:将GridView导出到Excel [ ^ ]
A quick Google search:
Best method for exporting a DataGridView to Excel[^]
How to export datagridview to excel using vb.net?[^]
CodeSnip: Exporting GridView to Excel[^]


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

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