Office add-in for word, excel and outlook - c#

i've created an word 2010 Add-in with the VS 2012 word Add-in template and ribbon designer component.
It is possible to use this plugin in other office products, like Excel or Outlook if I add the other interop dlls?
How can I differ which office product (word, excel or outlook) actually is used to run differnt code segments in the add-in?
Or must I create for each an own plugin with own ribbon!?
Please give me some hints.
Regards

If you link statically to the Office Interop assemblies, then you will need to build a different version for each Office version you plan to support. A much better alternative I would recommend you investigate is to use NetOffice, which provides the Office API in a version-independent form:
http://netoffice.codeplex.com/

Related

Developing multiple Office Word VSTO Templates

I am trying to revamp lots of word templates from VBA (.dotm) to C# using VSTO & Visual Studio.
My question is if its possible to deploy multiple word templates with one VSTO installation or bundle so the user does not has to install VSTO for every template?
There are two kinds of VSTO add-ins for Word - application-level and document-level add-ins. The Application level add-ins are not specific or linked to any document, they are installed for the application, not document. So, if you consider creating an application-level add-in for Word you may include any number of templates to the add-in. And there is no need to create a document-level add-in for each of them. See Walkthrough: Create your first VSTO Add-in for Word for more information.
For document-level add-ins, see Walkthrough: Create your first document-level customization for Word.

How to convert excel VSTO add in in to a .xll to add directly through the excel

I need a help to understand VSTO addin vs the .xll excel addin .
what is the difference between both addins?
Is there any possibility to convert VSTO excel addin into a .xll file to directly attach in an excel worksheet?
XLL Add-ins
XLL add-ins are the older native-code add-ins created via the Excel Software Development Kit. These add-ins are written in c/c++ and make use of COM interop.
VSTO Add-ins
Visual Studio Tools for Office (VSTO) add-ins are the contemporary method to create Excel add-ins via managed code such as C#. Microsoft provides a managed API instead of raw COM to access Office products including Excel.
OP:
Is there any possibility to convert VSTO excel addin into a .xll file to directly attach in an excel worksheet?
Yes and no. You would need to re-write the add-in not just to use c/c++ instead of .NET but also to use the COM API instead of the VSTO managed libraries. Sadly there is no easy way to do this.

Excel add-in is being shown as a COM add-in

I want to build an excel add-in which is application level. I followed the instructions to create a project on MSDN.
I don't want to create a COM add-in, I want an Excel plugin. The plugin we create as .xlam file and code it in VBA.
Please suggest me what to do. How to deploy the .vsto file and patch up with the .xlam file?
A VSTO Office add-in is a COM add-in by definition. That is how Microsoft implemented it. They have built a bridge from .NET to the native Microsoft Office code using COM.
If you want an XLAM add-in, as you say, you need to go through this reference, which doesn't involve creating a Visual Studio VSTO project.

Create single VSTO addin for All Ms Office components and its deployment

I want to create a single VSTO addin for all MS office components.
So far I have get individual addins for each component like Word Addin,Excel Addin etc..
But I want to create a single addin for all Ms Office components and also in single deployment it will be added in all ms office components.
I have to add a custom task pane and a ribbon tab in each ms office component,so rather than duplicating the task in each individual addin project,I want a single addin.
VSTO doesn't support creating multi-host add-ins. You need to develop a separate add-in for each Office application. An alternative way is to develop a shared add-in.
You may also consider using Add-in Express instead. It allows to to create one Visual Studio project that supports all versions (2000, XP, 2003, 2007, 2010 and 2013) and editions (Student, Home, Professional etc.) of Microsoft Office and target multiple applications in the Microsoft Office suite (Outlook, Word, Excel, PowerPoint and other apps.)

Can I write an excel add-in using Xcode?

I've written several very helpful excel add-ins using VBA. I'm using Excel for Mac 2011 Version 14.2.2 (120421). I'd like to sell the add-ins via a web site. Can I write the add-ins in Xcode or do I have to use C#?
From Microsoft Support:
In Office 2011 for Mac, there is no concept of add-ins. So using Excel Add-In is not possible...
You'll need to use VBA or AppleScript to emulate the same behavior.

Categories

Resources