使用C#在MS Office上工作(Windows应用程序) [英] Working on MS Office with C# (Windows Application)

查看:105
本文介绍了使用C#在MS Office上工作(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想创建一个将在MS Office 2007应用程序上执行不同操作的应用程序.我需要做一些文件操作.我需要打开,保存,关闭不同的MS Word应用程序,例如WORD,EXCEL,POWERPOINT等.我需要管理执行所有操作的不同过程.

有谁知道通过C#操作不同的MS Office应用程序的想法吗?
我需要考虑哪些因素/问题来进行此应用?
如何将其他MS Office应用程序导入到执行中?

Hi,

I want to create an application that will perform different operations on MS office 2007 applications. I need to do some file operation. I need to open , save, close different MS Word application like WORD, EXCEL, POWERPOINT etc. I need to manage the different process through which I have do all the operations.

Doess anyone have any idea of operating different MS Office Application through the C#?
What factors/issues will I need to consider to make this application?
How do I import the different MS Office application into execution?

推荐答案

您应该创建Office加载项.所有您需要的-将COM引用添加到您的项目中.使用Google查找更多信息和示例.
You should create office add-on. All of you need - it''s add COM references to your project. Use google to find more info and examples.


^ ]是一个非常有用的链接.

我最近在做一些Excel数据工作时使用了此功能,我认为它可能也对您有帮助.
Here[^] is a very helpful link.

I used this when I was doing some Excel data stuff recently and I think it may help you too.


这篇关于使用C#在MS Office上工作(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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