Does Visual Studio Tools for Office require Office to be installed in order to work with excel files?
From the MSDN
The Microsoft Office primary interop assemblies must be installed into the global assembly cache (GAC) and registered before you can create or run a Visual Studio Tools for Office solution. You can then write managed code to interact with a Microsoft Office application's COM-based object model. For more information, see How to: Install Office Primary Interop Assemblies.
This second link states:
You can install the complete set of primary interop assemblies in the global assembly cache in two ways:
Perform a Complete installation of Microsoft Office.
Install them from the redistributable primary interop assemblies package.
This redistributable can be downloaded from here
The System Requirements say the following:
Version of Microsoft Office: Developing and running Office customizations built with VSTO 2005 or VSTO 2005 SE requires at least one of the following versions of Microsoft Office
Microsoft Office Professional Edition 2003
Microsoft Office Standard Edition 2003 (only application-level add-ins work with Standard Edition)
Microsoft Word 2003
Microsoft Excel 2003
Microsoft InfoPath 2003
Microsoft Outlook 2003
Microsoft Office Visio 2003
Microsoft Office PowerPoint 2003
2007 Microsoft Office system
Microsoft Office Word 2007
Microsoft Office Excel 2007
Microsoft Office Outlook 2007
Microsoft Office PowerPoint 2007
Microsoft Office Visio 2007
Microsoft Office InfoPath 2007
Related
Is it possible to develop VSTO addins for Office 2007/2010 with Visual Studio 2013 ? Seeing only VSTO addins targeting Office 2013 by default in Visual Studio 2013.
Yes, it is. You can support Office 2007/2010 in the single VSTO add-in.
The Running Solutions in Different Versions of Microsoft Office article states the following:
Solutions that were created by using Visual Studio 2013, Visual Studio 2013 or Visual Studio 2010 can run in Office 2013, Office 2010, or the 2007 Microsoft Office system. However, the solution can use only those features and APIs that are available in all three versions of Office.
Hi I recently used a macros which uses Microsoft visual basic for applications extensibility 5.3. I'm using excel 2013 while my boss who uses this macros has 2007. I've run this my computer and other computers which has 2013 excel and they run properly. Butmy boss says he can't find 'extensibility 5.3' on his version of excel. So does it have to installed separately?
I could not found Office 2007 project wizard in VS 2012 , only support for Office 2010. But , i want to create a 2007 Excel add-in so that use this addin on both 2007 office and 2010 office.
Please give me any help to solve this issue.
Thanks in advance.
The link that Doug Glancy addresses the following issue:
You have Visual Studio 2012 and Office 2007 installed on your development computer.
If you have Visual Studio 2012 and Office 2010 installed, and you want your Excel add-in to target Office 2007 as well then you don't have to do anything. An Excel 2010 add-in created with VS2012 will work with Excel 2007, Excel 2010, and Excel 2013.
Is it possible to target Outlook 2003 in a vb.net 2008 Windows application when working on a system that only has Office 2007 installed on it? I downloaded the 2003 PIAs, but they wont install without Office 2003 installed first. The point is, I don't want Office 2003 installed on my development machine.
Thanks
You can do it, but you have to browse to the PIAs directly when adding the reference.
On my development system, I am running Office 2007, and previously had Office 2003 installed, and thus have the Microsoft Office 11.0 and 12.0 Object Models available. Our production environment is in the process of being upgraded to Office 2007, but it hasn't happened yet - still running Office XP in production, and I need to be able to debug an (inherited) VB.Net (VS 2005) app that uses Office Interop against Office XP (10.0) (Excel).
Can I simply download, install, and reference the Office XP PIA's (http://www.microsoft.com/downloads/details.aspx?familyid=C41BD61E-3060-4F71-A6B4-01FEBA508E52) in order to compile an run the app? A previous build has been tested against Office 2007 and it seemed to work with the "old" interop/PIAs.
I have the "old" Interop.Excel, etc., the only reference that is giving me a problem is the Microsoft Office 10.0 Object Model (which says Microsoft Office 12.0 Object Model but has an Exclamation mark in my IDE).
I also found http://www.codeproject.com/KB/office/Compile2003VstoVista2007.aspx (for Office 2003 on a system with 2007) which suggests installing the older version of Office and then massaging the project files in a text editor. While I don't mind using a text editor on the project files, I'd prefer not to install Office XP unless I have to (I have access to it if I do). And I'd prefer to be able to load the project as is (with the "old" reference).