How to install visual studio tools for office? - vb.net

How to install visual studio tools for office runtime in order that I can use Word 2010 Document template in Visual Basic 2010?

in Solution Explorer , Right Click on References >> Add References >>Microsoft.Office.Interop
use in your form :
Imports Microsoft.Office.Interop
or find on google Interop.MSDACS.dll an copy to assembly folder,
and Excel example : http://www.dotnetperls.com/excel-vbnet
and for Word ex: clic link here for Word

How to install visual studio tools for office runtime in order that I can use Word 2010 Document template in Visual Basic 2010?
See Visual Studio 2010 Tools for Office Runtime.
VSTO is a part of Visual Studio. It is included in paid editions only. The Express editions are not supported (except the Community edition of Visual Studio 2013).
Typically you need to include the VSTO runtime as a prerequsite to the add-in installer. See Publishing an Office Solution by Using Windows Installer for more information.

If you're using Visual Studio 2015 Community, go to Office Developer Tools
and click "Get Office Developer Tools", which takes you to:
http://aka.ms/getlatestofficedevtools
https://www.visualstudio.com/en-us/features/office-tools-vs.aspx

Related

where to start with Add-in in Visual Studio when installed in Mac

Dear VBA/VSTO programmers.
I started some months ago programming VBA in excel and now I want to jump into add-ins programmed in visual-studio.
I have three questions.
a) I installed visual studio in my mac, and following this instructions:
Creating the Project
To create a new Excel VSTO Add-in 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/SharePoint. Under the expanded
Office/SharePoint node, select the Office Add-ins node. In the list
of project templates, select Excel 2010 Add-in or Excel 2013 Add-in.
In the Name box, type FirstExcelAddIn. Click OK.
but visual studio for mac does not give me the option of "project". how is that possible.
Do I have to go away from mac to program in viSUAL STUDIO ADD-INS FOR EXCEL?
Assuming I have a Mac Pro and I have a normal windows machine at work, but no excel in Mac Pro, can I do something of my programming in my mac pro at home for my excel at work? (I don't work as a programmer, just programming since a few months VBA).
thanks.
VSTO add-ins can't be run on MAC. You need to develop COM based Office add-ins on Windows and have the desktop edition of MS Office installed if you want to be able to debug them.
You may consider creating web add-ins instead. They can be loaded by Office for MAC too.

visual studio 2015 office 2007

my job is to maintain a word-addin, created many years ago, developed by many young programmers like me ;) the addin works fine and there are only a few and easy changes to do from time to time, so my task is to bring the development environment up to date.
The addin was handed over to me as an visual basic project with Visual Studio 2005(in XP-Mode) and a .dot-file
Now I wanted to use Visual Studio 2015, but when I tried to migrate the project there is an error which says the word-version i'm using is not supported by VS2015 and tells me to use Office 2010 minimum. The problem is, my company just uses Office(Word) 2007.
So how can i get VS2015 to migrate the project properly and to use word 2007? Or do I have to use 2010? I read 2010-addins can be used in 2007 and via versa, so this should not be the problem.
Following software is installed:
Microsoft .NET Framework 2.0 SP2
Microsoft .NET Framework 3.0 SP2
Microsoft .NET Framework 3.5 SP1
Microsoft .NET Framework 4/4.5/4.5.1/4.5.2/4.6
Microsoft Office Developer Tools for Visual Studio 2015
Microsoft Visual Studio 2010 Tools for Office Runtime
Visual Studio 2005 Tools for Office Second Edition Runtime
Visual Studio 2015 Community
Microsoft Office Word 2007
thanks for help :) and please excuse my bad english
The short answer is that you cannot use Visual Studio 2015 to open the original project, but you can recreate the code in a new project that will still work with Office 2007:
https://msdn.microsoft.com/en-us/library/bb772080.aspx

How do I use Visual Studio to edit my Microsoft Office scripts?

I'm a frequent Visual C++ user working on some VBA scripts in MS Office 2010 and I would really like to be able to use Visual Studio 2013 (Professional) to edit them - is this possible? When I try to open my Access Database file from Visual Studio it just loads up in Microsoft Visual Basic for Applications 7.0 (ie. that horrible default IDE)...
What I'd really like is for it to open the module in VS when I click on the module in access. Can this be done?

Write outlook 2007 add-in with visual studio 2013

Is it posssible to write outlook 2007 add-in using visual studio 2013 in C#. Thanks for help.
According to Microsoft, the latest version of Visual Studio that can create an addin for Office 2007 is Visual Studio 2010.
If you want to develop an Office 2010 addin etc., you can use Visual Studio 2010 or Visual Studio 2012.
If you want to develop an Office 2013 addin etc., you can only use Visual Studio 2013.
Office Development and Visual Studio
This probably a bit late, but just for future reference: Running Solutions in Different Versions of Microsoft Office
There's no out of the box template for Office 2007 in Visual Studio 2013, but the addin will run fine in Office 2007.
Your project will have the Object Model for Office 2013 so while you can use it in previous versions of Office, you need to be careful not to call methods that aren't available in the earlier versions. For example in Outlook 2013 there is an inline reply so if you try to call that method in Outlook 2007 it will throw an exception.
If you're just looking to use the newer Visual Studio IDE for Office 2007 development then you can remove the 2013 Office references and add the 2007 references and you won't see any new methods as outlined above.
Edit: Not that you'd want to do this, but if you wanted to use the newer object model from 2007 without pulling in the interop library for 2013 you can actually call those newer methods dynamically and specify non existing delegate types by using Delegate.CreateDelegate, if anything it's pretty neat.

How to get the document-level templates into Visual Studio Tools for Office (VSTO)

"To summarize: if you install VSTO 2005 SE on top of a clean VS 2005 Professional, you won't have the document-level templates. If you want to have them you need to have VS 2005 Team Suite/Team Edition or you need to install the previous version of VSTO: VSTO 2005. So VS 2005 Professional + VSTO 2005 + VSTO 2005 SE will give you the document-level templates!"
So my question is, does anyone have a link to a VSTO 2005 download (it is no longer available from Microsoft).
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/f2909f92-3517-49bc-9e86-c136299956bc/
As Richard said earlier in this
thread, the "document-level" project
templates (Excel Workbook, Excel
Template, Word Document, and Word
Template) are not included in VSTO
2005 SE or Visual Studio 2005
Professional. To get the
"document-level" project templates in
the 2005 release of Visual Studio, you
must have one of the following
versions of Visual Studio:
Visual Studio 2005 Tools for Office (this is a completely separate
edition of Visual Studio for purchase;
it is not a free download).
One of the "Team System" versions of Visual Studio 2005.
The VSTO development story is somewhat
simpler in Visual Studio 2008. In this
release, all of the VSTO projects
(add-ins and the document-level
projects) are now available in Visual
Studio 2008 Professional, as well as
the "Team System" versions. This
includes add-in and document-level
projects for both Office 2003 and the
2007 Microsoft Office system.
Maybe this one will help Microsoft Visual Studio 2005 Tools for Office 2005 Runtime (VSTO 2005 RTM)
The VSTO 2005 redistributable package installs the Visual Studio Tools for Office runtime, which is required to run solutions built using VSTO 2005. This runtime supports document-level customizations for Microsoft Office Excel 2003 and Microsoft Office Word 2003, and application-level add-ins for Microsoft Office Outlook 2003.