使用C#归档Excel [英] File Excel with C#

查看:52
本文介绍了使用C#归档Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个excel文件,当我单击文件"表单中的按钮时,我希望将内容放到Microsoft excel中.
请告诉我怎么做

I have an excel file and when I click a button in form File I want the content dislayed in microsoft excel.
Please tell me how to do

推荐答案

我想我知道你的意思...

我会尝试解释(假设我的假设是正确的...大声笑)

I think I know what you mean...

I will try and explain (assuming that my assumption is right... lol)

Process p = new Process();
p.StartInfo.FileName = "excel";
p.StartInfo.Arguments = @"C:\Temp\doc.xls" <-- your path here
p.Start();



HTH.

Dave



HTH.

Dave


非常感谢,对不起,因为我一个月前学习英语,所以我的英语语法不好,谢谢您的回答
我做到了
Thank you very much, i sorry, because I learned English one month ago so my English grammar is not good,Thanks your answer
I did it


这篇关于使用C#归档Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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