office开发有没有什么sdk包之类的?

nicholasXXX 2010-09-25 03:13:52
我电脑上装VS2010 office 2003 sp3
Winform 引入word和excel 的COm,都没有问题
using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using Word = Microsoft.Office.Interop.Word;



在另一台电脑上,也是VS2010不过是office 2003
编译的时候报错:
错误 34 命名空间“Microsoft.Office”中不存在类型或命名空间名称“Interop”。是否缺少程序集引用? C:\Documents and Settings\Administrator\My Documents\CF-Tool\codevs10\Kenal\BaseWord.cs 6 31 Kenal
还有警告
警告 17 程序集“Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C”不是有效的程序集文件。 多件法(全件

只能重新加载com,之后还要取消:
using Excel = Microsoft.Office.Interop.Excel;
using Word = Microsoft.Office.Interop.Word;

很麻烦。

不知道有没有简单稳定些的方法?
...全文
188 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
微创社(MCC) 2010-09-27
  • 打赏
  • 举报
回复
第三方的有,是MS的ISV合作商,价格贵的要死。

Why Add-in Express?
Microsoft supplied us with another term – Office Extensions. This term covers all the customization technologies provided for Office applications. The technologies are:
• COM Add-ins
• Smart Tags
• Excel RTD Servers
• Excel Automation Add-ins
Add-in Express allows you to overcome the basic problem when customizing Office applications in .NET – building your solutions into the Office application. Based on the True RAD paradigm, Add-in Express saves the time that you would have to spend on research, prototyping, and debugging numerous issues of any of the above-said technologies in all versions and updates of all Office applications. The issues include safe loading / unloading, host application startup / shutdown, as well as user-interaction-related and deployment-related issues.
Add-in Express provides you with simple tools for creating version-neutral, secure, insolated, managed, deployable, and updatable Office extensions.
• Managed Office Extensions
You develop them in every programming language available for Visual Studio .NET.
• Isolated Office Extensions
Add-in Express allows loading Office extensions into separate application domains. So, they do not have a chance to break down the host application.
• Version-neutral Office Extensions
The Add-in Express programming model and its core are version-neutral. It gives you a chance to develop one Office extension for all available Office versions, from 2000 to the newest 2007.
• Deployable Office Extensions
Add-in Express automatically supplies you with a setup project making your solution ready-to-deploy.
• Updatable Office Extensions
Add-in Express uses the start-up and deployment model that allows updating your deployed solutions at run-time.
凯歌高唱 2010-09-26
  • 打赏
  • 举报
回复
要是OFFICE也像其它软件那样弄个SDK之类的就方便多啦!
ACMAIN_CHM 2010-09-25
  • 打赏
  • 举报
回复
没有。

5,139

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧