2011-02-08 10 views
4

私は2007年と2010年の両方で動作するはずのExcel Addinを作成しています。Visual Studioで新しいプロジェクトを作成するときは、必要なバージョンを決定する必要があります。私は2007年を前に選んだが、2010年がインストールされて以来、私はそれをデバッグすることはできない。私はエラーを取得する:Excel 2007と2010で動作するExcel Addin

You cannot debug or run this project, because the required version of the Microsft Office application is not installed.

それは私が2007年をターゲットならば、私は2007年と2010年の両方でそれを実行することができるはずというのが私の理解はそれが正しいですか?それがそうなら、私は2010年を使ってそれをデバッグできますか?ここ

+0

あなたはそれを動作させるために管理しましたか?どのようにしましたか?私は2010年のアドインを作成し、それをOffice 2010でもテストしたところ、すべてうまくいきました。しかし、私が2007年の環境に移行すると問題を引き起こすかどうかはわかりません。 – woodykiddy

答えて

0

A shared Add-in is made from a Visual Studio project creating a Com Add-In implementing the IDTExtensibility2 interface. This grants you access to the Excel model (workbooks, worksheets, Range, ...). This kind of project is still today what looks the most like a C# XLA. They are often used for formal commercial development deployed to external clients. While they are more difficult to make and maintain, they do give you deeper control over the Add-in and can be made somewhat version-agnostic (that is, you can use your own IA instead of a specific Office PIA library, and/or can do more in late binding to handle multiple Office versions with lower risks of compatibility problems).

http://metasharp.net/index.php?title=Csharp_and_Excel_Interoperability

0

あなたはあなたがアドオンと一緒にパッチファイルを取得するプロジェクトをビルドしながらエクセル2010のアドインを作成することにより、先に行くことができ、ユーザーはインストールする前にパッチをインストールすることができます。システムでアドインを使用する2007.

関連する問題