使用vb.net将datagrid保存为excel 2003或excel 2007 [英] save datagrid as excel 2003 or excel 2007 using vb.net
本文介绍了使用vb.net将datagrid保存为excel 2003或excel 2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用vb.net代码保存数据网格:
saveFileDialog.Filter =Excel2007(* .xlsx)| * .xlsx |所有文件(*。*)| *。*
i希望给予用户可选择以Excel2003或Excel2007格式保存。我需要在代码中做出哪些更改以及引用和导入?谢谢......
解决方案
将DataGrid导出到Excel,Word和文本文件 [ ^ ]
检查链接..希望它会有所帮助。
i can save a datagrid using the vb.net code:
saveFileDialog.Filter = "Excel2007 (*.xlsx)|*.xlsx|All files (*.*)|*.*"
i wish to give the user the option to save in either Excel2003 or Excel2007 format. What changes do i need to make in the code and what about references and imports? thanks...
解决方案
Exporting DataGrid to Excel, Word and Text Files[^]
Check the link..hope it will help..
这篇关于使用vb.net将datagrid保存为excel 2003或excel 2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文