使用C#应用程序在MS Office 2007上工作 [英] Working on MS Office 2007 using C# application

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

问题描述

大家好,
我目前正在开发一个学习应用程序,它实际上将指导用户如何使用Office工具(如MS Word,MS Excel,MS PPT等),因此出于要求,我已经开始收集信息.我想为相同的导入不同的库.例如MS Word 2007我使用了Microsoft Word 12.0对象库,所有其他工具也是如此.
现在,我的主要目标是完全访问文档.使用它,我可以验证相同的更改.例如,如果假设用户更改了字体颜色,那么我需要从同一文档中计算所有必要的值.
因此,凡是拥有与使用C#的MS Office工具有关的参考资料的人,请提供其参考.

谢谢与问候,
Balkishna Raut

Hello everyone,
I m currently working on e learning application, which actually will guide user how to user Office Tools like MS Word, MS Excel, MS PPT etc. so for the requirement i have started collecting information. I suppose to import different libraries for the same. For e.g. MS word 2007 i have used Microsoft Word 12.0 Object Library, same for all other tools also.
Now my main Target is to get into complete access to document. using that i can verify the changes for the same. e.g if suppose user has made changes in font color then i need to calculate all necessary values from same document.
So anyone having any reference material related to MS office Tool using C#, kindly provide it for the reference.

Thanks & Regards,
Balkishna Raut

推荐答案

当您对excel文档的结构进行数据表化时,您将获得包含单元格样式的格式.

您可以从那里建立业务逻辑.

我建议避免使用对象库,因为它需要在需要运行应用程序的位置安装Office.

查找替代参考.
When you datatable the strucutre of the excel document you will get a cell style format included.

you can build business logic from there.

i advise to avoid using Object Library as it requires Office to be installed where your application needs to run.

Find an alternative reference.


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

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