开始VSTO开发 [英] Beginning VSTO Development

查看:242
本文介绍了开始VSTO开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑什么是<一个必要的工具href="http://en.wikipedia.org/wiki/http://en.wikipedia.org/wiki/Visual_Studio_Tools_for_Office">VSTO农业开发。具体来说,我想以编程方式操作的Excel 2003/2007文档。我做了相当多的 VBA 之前,如果你想关联的任何答案。

I'm quite confused with what are the necessary tools for VSTO develpment. Specifically I want to manipulate Excel 2003/2007 documents programmatically. I did quite a lot of VBA before, if you want to relate any answer to that.

几个问题我有VSTO:

Few questions I have about VSTO:

  1. 我可以使用Visual Studio 2008的前preSS版C#/ C ++这个?
  2. 请我需要安装.NET框架?
  3. 是否产生VSTO程序需要有Office安装在同一副本系统运行?

直接链接到相关的工具/插件/ IDE将AP preciated。

Direct links to the relevant tools/plugins/IDE will be appreciated.

注:我完全新VSTO和.NET,但一个Office高级用户。我有一个COM编程经验。

Note: I'm totally new to VSTO and .NET but an Office power user. I have experience with COM programming.

推荐答案

是的,这可能会比较混乱,尤其是考虑到跳级的命名规则,等等。从本质上讲,你将需要:

Yeah, it can get confusing, especially given the skip-level naming conventions, etc. Essentially, you'll need:

  • 的视觉完整版(不防爆preSS) Studio和.NET版本你打靶。
  • 其中VSTO运行时间(VSTO 2003 VSTO 2005年,VSTO 2005 SE,2008 VSTO,VSTO 2010)。对于你的询问,VSTO 2005 SE可能是你最好的选择。
  • 当分发您的应用程序,你会 需要更多,像PIA的,你已经针对性​​的.NET版本。对于VSTO 2010中,您不需要PIA的(就是你正在使用的将您的应用程序自动打包)。
  • Full version (not Express) of Visual Studio and the .NET version you're targetting.
  • One of the VSTO run times (VSTO 2003, VSTO 2005, VSTO 2005 SE, VSTO 2008, VSTO 2010). For what your asking, VSTO 2005 SE is probably your best bet.
  • When distributing your app, you'll need more, like the PIAs and the .NET version you've targetted. For VSTO 2010, you don't need the PIAs (just what you're using will be packaged with your app automatically).

一对夫妇的提示:

  • 从VBE走出办公室内 到VSTO应平稳十岁上下移动 如果您已经使用.NET得多的程度。
  • 的VSTO版本的对象 对于任何给定的程序模型(Excel中, 的PowerPoint等)可能有几 做的事情是更多的方法 不同的/不是在VBA更好 版的对象模型。对于 例如,书签控制 字在VSTO 2008是不一样 的一个是本地的一个 通过VBA访问。
  • 分发您的应用程序可以是一个痛苦。 这是因为如此,这一VSTO的Visual Studio 2010中并不需要你 包括完整的互操作(PIA)文件 用你的包。
  • 目标定位不同的版本 办公室用相同的解决方法是不 为pre-VSTO官方支持的2010年有办法 解决这个问题,有些人 刚才讲了,但你不会得到 从MSFT就可以了很大的支持。
  • Going from the VBE inside of Office to VSTO should be a smooth-ish move if you've used .NET to much extent.
  • The VSTO versions of the object models for any given program (Excel, PowerPoint, etc.) there may be a few more ways of doing things that are different/better than in the VBA version of the object model. For example, the Bookmark control for Word in VSTO 2008 is not the same as the one that is native to one accessed via VBA.
  • Distributing your app can be a pain. This is the very reason that that VSTO for Visual Studio 2010 does not require you to include the full interop (PIA) files with your package.
  • Targetting different versions of Office with the same solution is not officially supported for pre-VSTO 2010. There are ways around this issue that some folks have talked about, but you won't get much support from MSFT on it.

有一些网站,你应该看看:

There are some sites that you should take a look at:

  • 要求VSTO解决方案 。 这是旧的,但是有帮助的读 有关之间的差异 2005年和2005 SE版本。 <一href="http://blogs.msdn.com/andreww/archive/2008/04/02/vsto-loader-and-runtime-components.aspx">This 一个 还过得去的,因为它 包括2008年的版本。
  • 在线资源VSTO 。本 是一个很好的跳的网站学习 更多关于VSTO。
  • 入门(Visual Studio工具 为Office) 。此,它的 姐姐链接的网页,都是不错的跳跃 页面。不,如果你只是用 未来加快速度与VSTO,但 好一点点后。
  • <一个href="http://blogs.msdn.com/andreww/archive/2007/06/15/can-you-build-one-add-in-for-multiple-versions-of-office.aspx">Can您在外接建立一个用于 多个版本的Office? 。 这是旧的,但讨论了一些 围绕建设问题的 多个版本的Office。
  • 本网站用于更好 有组织的,但我总是发现, 影片是一个学习非常快速的方式。 大多数的这些视频使用一个版本 VSTO的。
  • Requirements VSTO solutions. This is older, but is helpful to read regarding the differences between the 2005 and 2005 SE versions. This one is also decent in that it includes the 2008 version.
  • Online resources for VSTO. This is a good 'jump' site for learning more about VSTO.
  • Getting Started (Visual Studio Tools for Office). This, and it's sister link pages, are good jump pages. Not that useful if you're just coming up to speed with VSTO, but good for a little bit later.
  • Can you build one add-in for multiple versions of Office?. This is older, but discusses some of the issues around building for multiple versions of Office.
  • This site used to be better organized, but I've always found that videos are a very fast way to learn. Most of these videos use one version of VSTO.

最后,保存最好的去年,这是我的书,当我刚刚开始,这是非常有帮助的内容如下:的 VSTO凡人(TM):一个VBA开发人员指南到Microsoft Office开发使用Visual Studio 2005工具用于Office

Finally, to save the best for last, this is the book I read when I was just starting out and it was very helpful: VSTO for Mere Mortals(TM): A VBA Developer's Guide to Microsoft Office Development Using Visual Studio 2005 Tools for Office

这篇关于开始VSTO开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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