VS2005 VSTO 项目创建

这段时间公司需要在EXCEL上面做开发,使用的环境是VS2005,但是创建的时候,始终创建不了,出现OFFICE 2003 SP1补丁和VSTOR支持的问题,自己仔细的检查了一下环境,这两个都有,但是总是创建不了,纠结了1个多小时,期间重装了OFFICE 2003,但是还是不行,最后机缘巧合之下,让我又可以创建了,下面具体说说,要让VS2005能创建OFFICE操作的VSTO项目应该需要哪些步骤。

 

第一种情况,首先安装OFFICE 2003,然后再安装VS2005的开发人员:

  1.首先OFFICE 2003需要打上SP1补丁,其实直接打SP3补丁也可以,因为SP3补丁覆盖了SP1和SP2。

  2.检查OFFICE 2003是否安装了.Net的支持组件,可以在控制面板中选中OFFICE 2003进行更改设置。

  3.安装VS2005的SP1补丁。

  4.检查是否安装了VSTOR,如果安装了,则在控制面板中可以看到:Microsoft Visual Studio 2005 Tools for Office 运行库,如果没有安装则需要去微软下载中心下载安装。

 

第二种情况,也就是我这种情况,先安装VS2005,然后安装OFFICE 2003的开发人员:

  1.首先OFFICE 2003需要打上SP1补丁,其实直接打SP3补丁也可以,因为SP3补丁覆盖了SP1和SP2。

  2.检查OFFICE 2003是否安装了.Net的支持组件,可以在控制面板中选中OFFICE 2003进行更改设置。

  3.安装VS2005的SP1补丁。

  4.检查是否安装了VSTOR,如果安装了,则在控制面板中可以看到:Microsoft Visual Studio 2005 Tools for Office 运行库,如果没有安装则需要去微软下载中心下载安装。

  5.然后,如果在先安装VS2005的时候,安装了相关的VSTO,在安装OFFICE 2003的时候,也安装SP1以上补丁,那么,这个时候,就要重新安装一次VSTOR,因为可能是先安装的原因,VSTOR没有检查到OFFICE 2003的组件,所以,就要重新安装一次VSTOR,这个问题,纠结了我1个多小时,汗颜。。。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Professional VSTO 2005: Visual Studio 2005 Tools for Office 英文原版非影印版 Professional Visual Studio 2005 Tools for Office satisfies the need to write enterprise software based on Office by delivering practical solutions for those seeking to port existing functionality to VSTO. The book focuses on code and implementation, not theory, with code examples presented in both VB and C#. The book is especially written for enterprise developers - VBA or COM Interop savvy - who need to leverage the power and productivity of VSTO today. .NET developers seeking to explore VSTO as a potential solution will also find ample material that suits their needs. This book covers VSTO 2005 in detail. The approach focuses on the major components that form the suite with the exception that InfoPath is not covered. All other components benefit from an exploration of the key objects that are most likely to be used in common programming scenarios. This book is organized into chapters that present the building blocks of VSTO first. Microsoft Excel and its Range objects form the cornerstone of range manipulation across the VSTO suite. For that reason, the first few chapters explain these basic concepts. Subsequent chapters use these building blocks as a starting point so it is important to be familiar with these concepts before skipping to the back of the book. Once you gain a complete understanding of the Excel Range object in Chapters 2 and 3, you can apply that knowledge to the remaining chapters. In fact, Microsoft Word, Charts and Pivot Table manipulation are all based on the Excel Range object. (VSTO contains a potent charting engine second to none. And this book explores every facet of charting.) The obvious benefit of this clever architecture is that it significantly reduces the learning curve for those who wish to adopt this relatively new technology. And this book is designed to show you how to exploit this architecture.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值