将listview项目保存在新的Excel 2007文件中 [英] save listview item in new excel 2007 file

查看:98
本文介绍了将listview项目保存在新的Excel 2007文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想在saveialogbox的帮助下将listview项目保存在新的excel 2007文件中.
我如何使用saveialogbox进行此项工作,请帮助我.

在此先感谢

hello,
I want to save listview item in new excel 2007 file, with the help of savedialogbox.
how i use savedialogbox for this work, please help me.

thanks in advance

推荐答案

看看 ^ ]


在CP,这里有一篇很好的文章,涉及从列表视图将数据导出到Excel: ^ ]

您不需要此操作中的保存对话框,而是需要使用Interop并从C#代码中命令excel.将数据导出到excel后,您可以命令Excel保存工作簿.
At CP here''s one good article concerning exporting data to Excel from a listview: Enhanced ListView Operations Using MVVM[^]

You don''t need the save dialog in this operation, instead you need to use Interop and command the excel from your C# code. After exporting the data to excel, you can command the Excel to save the workbook.


这篇关于将listview项目保存在新的Excel 2007文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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