developing office 2003 and office 2007 add-ons with VS2010 - visual-studio-2010

I need to develop an Outlook add-on. I must support Office 2003 and office 2007 (not 2010).
Can I do the work on Visual Studio 2010? is it equipped to handle older outlook versions like 2003? or would I have to do the work on VS2005 or VS2008?

There is no support for Office 2003 addons in visual studio 2010, but there is support for 2007 and 2010.
To create a new Outlook project in Visual Studio
Start Visual Studio.
On the File menu, point to New, and then click Project.
In the templates pane, expand Visual C# or Visual Basic, and then expand Office.
Under the expanded Office node, select the 2007 if you have Outlook 2007 installed, or select the 2010 node if you have Outlook 2010 installed.
In the list of project templates, select Outlook 2007 Add-in or Outlook 2010 Add-in.
In the Name box, type FirstOutlookAddIn.
Click OK.

Related

Missing Outlook 2013 Add-in

I am working on making a Outlook Add-in for Outlook 2013. The issue is, I use Visual Studio 2010. I did some googling and found that I need the Developer Tool Kit and it lead me here. I installed the tool kit, but I am still not seeing any new Templates. What am I doing wrong, or what can I do to get that Outlook Add-in?
Thanks in advance!
Unfortunately VSTO allows creating version-specific add-ins. VSTO 2010 (Visual Studio 2010 Tools for Office Runtime) is shipped with Visual Studio 2010 Professional edition or above. It supports creation and editing of document- and application-level add-ins for Office 2007 and Office 2010. You need to use later Visual Studio versions for creating COM add-ins for Office 2013. However, you can run solutions in Office 2013 that were created in earlier Visual Studio versions, see Running Solutions in Different Versions of Microsoft Office for more information.

Visual Studio 2013 VSTO not creating Word 2010 project

I'm trying to develop a Word Document add-in through Visual Studio 2013, using a Word 2010 Document selected from the Visual Studio project menu of Office/SharePoint Office Add-ins. It is needed to tie in SharePoint 2013 with a collaborative Word document. I keep getting the error message:
Project cannot be created because the "Word Visual Studio Design-Time Adaptor Add-in" is not working correctly. Word might have disabled the add-in or made it inactive, or all add-ins might be disabled in your Trust Center settings. Check the add-in status in Word Options. If the add-in is active and enabled, reinstall or repair Visual Studio Tools for Office.
I have checked that there is no disabled add-ins in the Trust Center, and I do see the Visual Studio Tools for Office Runtime in the Add-ins. I cannot find any other options, as I have reinstalled the Visual Studio Tools for Office as well.
Where should I go from here?
I had the same problem, turned out that one of the updates was causing the problem. (Breaking the VSTO plug-in in some way)
What I did was reinstall Office, and I manually told Microsoft Update not to install updates that were launched after Oct 2016, I could then create Document-Level projects again.

Office 2016 add-in development in Visual studio 2013

We need to develop add-in for the Office 2016. We are using the Visual studio 2013. It is only showing the Office 2013 add-in templates. Is it possible to create Office 2016 add-in from Visual studio 2013? If so, kindly let me know the steps.
You need VS 2015 to get the specific templates for Office 2016. VSTO only ever provides templates for "current" versions of Office.
If Office 2013 is installed you can develop an Add-in for it. There should be no problem installing and running it in Office 2016 - unless you want to use technology specific to 2016. In that case, you could use late-binding (PInvoke) for the 2016-specific portions, but debugging/testing would be a bit of a pain.
You can download the free Visual Studio 2015 Community edition (https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx) as well as the VSTO package (https://www.visualstudio.com/en-us/features/office-tools-vs.aspx): VSTO does integrate into the Community edition for version 2015 (and 2013, for that matter). Licensing restrictions would apply, of course.
Other than that, you'd need to upgrade to a full VS 2015.
You can develop and run Office 2016 addins in VS2013. No need to upgrade to VS2015.
Install VSTO 4.0 extension for VS2013
Create Office 2013 plugin using Visual Studio template
Open project file and replace office version string "15.0" to "16.0" in ProjectExtensions section. Look for this of similar string to edit:
OfficeVersion="15.0" VstxVersion="4.0" ApplicationType="Outlook" Language="cs" TemplatesPath="" DebugInfoExeName="#Software\Microsoft\Office\15.0\Outlook\InstallRoot\Path#outlook.exe"
Yes, it is possible. The add-in created in Visual Studio 2013 can be run in Office 2016. You can read more about that in the Running Solutions in Different Versions of Microsoft Office article.
In case if you need to use new methods and properties available only in Office 2016 you can use the Reflection mechanism (see Type.InvokeMember).
there is an example for Outlook, i tried it for Excel and it works as well.
my example:
<ProjectProperties HostName="Excel" HostPackage="{29A7B9D7-A7F1-4328-8EF0-6B2D1A56B2C1}" OfficeVersion="16.0" VstxVersion="4.0" ApplicationType="Excel" Language="vb" TemplatesPath="" DebugInfoExeName="#Software\Microsoft\Office\16.0\Excel\InstallRoot\Path#excel.exe" DebugInfoCommandLine="/x" AddItemTemplatesGuid="{DCFE8D25-4715-4C33-9EAB-A34A9EBC9544}" />
i changed
OfficeVersion="15.0"
to
OfficeVersion="16.0"
and the path to Excel
#Software\Microsoft\Office\16.0\Excel\
as well, finally it starts in Excel 2016...

Developing Excel 2007 Document-Level Solution in Visual Studio 2013

The Visual Studio 2013 documentation does not list Excel 2007 as one of the versions supported in the document-level customization solutions.
http://msdn.microsoft.com/en-us/library/aa942839.aspx
If I go the route of a document-level customization solution I will need it to be able to be deployed to Excel 2007 because that is the version of Office the users will have.
Do I need to develop in an earlier version of Visual Studio to get this to work? - or can I develop Excel 2007 document solutions in Visual Studio 2013? If so, will I need office 2007 installed on my development machine?
A similar question has been asked regarding Visual Studio 2012 below:
VSTO 2012: backward compatibility
Thanks!

use Outlook Add-In for 2003 in Visual Studio 2010

We created an Outlook add-in 2003 in Visual Studio 2008. We just moved to Visual Studio 2010. When we debug the project, it shows that required version of Office is not installed.
Is there any possible way to use the Outlook 2003 Add-In in Visual Studio 2010?
I need to work my Add-In in all versions of Outlook from 2003-2010 and I have to use Visual Studio 2010 only.
To solve this, you should have Office 2003 installed.

Resources