Add-in for Visio 2010 - c#

I require assistance for the following
I would like to create an add-in for Microsoft Visio 2010 to zoom individual shapes. To achieve this I would like to create a TreeView (using Visual Studio 2010). From this control, based on the selection, either zoom the entire diagram or individual shapes.
I have tried custom task panes but its not possible for Visio to extend custom task panes.
Any suggestions are most welcome.

Been a long time since I've done an addin for Visio, but you may have luck checking here. Go down where it says "Managed Code".
Here is some more info: Overview of Add-ons and COM Add-ins in Visio 2007
and another related answer: how to develop an add-in for visio

Related

How can I modify the Office Custom Task Pane menu?

I'm making a Custom Task Pane for MS Word using Visual Studio (C#), and would like to add an option to the drop-down menu that, as far as I can tell, appears on all such task-panes. This is the menu I mean.
Is there a way to add an option to the default "Move, Size, Close"?
Sorry, but no, you cannot do this.
The Office add-in model is such that you only control the web application portion of the experience. Everything else is controlled by Office.
With the new web-based add-in model, you have much less control over Office itself than previous models.

Create Add-In for Outlook 2013 for add a Button

Good morning,
my company is looking for a solution in order to distribute an add-in for Outlook 2013 that add a button in the ribbon. I want to create an add-in for Outlook 2013 and I saw that is possible using Visual Studio (I use VS 2013 or 2010) but I don't understand how to add a button in the ribbon (in particular in Home section) and execute a macro when I click on the button (the macro is already created). I read this tutorial https://msdn.microsoft.com/en-us/library/cc668191.aspx and this worked. Someone can help me with some piece of code(c#)?
Thanks for your help
VSTO provides two main ways for customizing the Ribbon UI:
Using the Ribbon designer. See Walkthrough: Creating a Custom Tab by Using the Ribbon Designer for more information.
Using the Ribbon XML markup. See Walkthrough: Creating a Custom Tab by Using Ribbon XML for more information.
You need to specify the idMso attribute of the built-in tab if you need to add your custom controls there. See Office 2013 Help Files: Office Fluent User Interface Control Identifiers for control IDs.
Finally, I'd suggest moving your VBA macro to the add-in. It will improve the overall performance and allows to use the BCL classes (a wide varioety of controls and components) for getting the job done. Moveover, you will be able to deplay the add-in easily. VBA macros are not designed for deployiong on multiple PCs.

Office 2013 Ribbon and .Net?

I know that the Office Ribbon has gone under pretty significant changes since 2003 and I've done some modest customization of the ribbon in 2010.
Question: I've seen a number of references to .Net and specifically C# and the Office Ribbon. Is this largely just (maybe) dynamic customizing? I mean, Office 2013 can't run any .Net code, can it? At the end of the day, it is still VBA no?
Thanks
I imagine that you are referring to the Ribbon WPF control, documented here: https://msdn.microsoft.com/en-us/library/ff799534%28v=vs.110%29.aspx
This is a UI control that can be used in custom .NET applications, giving them the look and feel of office applications.
If you are referring to the ribbon in actual office applications- as the comments mention, addins can be written in .NET code (this has been possible for quite some time, actually), and these can modify the toolbar. Links are available at the bottom of the page linked above.

Creating ActiveX on PowerPoint using Visual Studio Tools for Office

I am creating a PowerPoint 2010 add-in created with the help of Visual Studio Tools for Office.
This add-in helps the user to create charts and customize them easily. It also provides a custom menu on right clicking or double clicking the chart. I tried to use the Application.WindowBeforeRightClick and Application.WindowBeforeDoubleClick events provided by PowerPoint but they don't get fired(because of a bug that Microsoft hasn't fixed since PowerPoint 2007).
Now, in order to show my custom menus I am thinking of making an ActiveX control and embed it on my PowerPoint slide. This control will interact with the mouse for events like MouseOver, MouseUp, MouseDown, WindowBeforeDoubleClick, WindowBeforeRightClick etc.
I am not sure if this is possible. If it is then how to write an ActiveX control for PowerPoint in VSTO environment using C#? Also how to make it invisible and responsive at the same time?
Yes you can hook the mouse, there are libraries out there that make this easy.
One I've tried is "MouseKeyboardActivityMonitor" - searching for that on the web should provide a link.
It has an "AppHook" rather than a "GlobalHook" so you can just listen to the PowerPoint editor window.

C# Outlook Addin w/ WPF

I have looked at several tutorials on writing general Outlook add-ins, and have gotten simple examples to work: items in menu, context menu, ribbons, etc.
Many of Microsoft's documentation has send me in circles, or is in VB, so I have run into some questions with what we are trying to accomplish.
Is there a way to add a custom control below the Subject line in a new email? We need to supply a drop-down and add an additional header to emails sent for email tracking. Right now the best I have gotten is adding a CommandBarButton in the "Add-ins" tab of the Ribbon, is there a better method?
Will we run into any issues installing for multiple versions of outlook? (Will only 2007 and higher work?)
Can you host WPF controls directly in a Ribbon, etc.? I know that WPF popup windows work just fine when shown from a CommandBarButton.
Are there some good links out there for what we're trying to do?
2: Multi-version support is a PITA. The hedge-your-bets approach is to develop on a PC running the version of Outlook you want to support; thus you may have multiple setup packages for each supported version. Everybody tries to get around this though, but I've used this approach with success:
Version-Specific UI in Add-ins - Andrew Whitechapel - Site Home - MSDN Blogs:
http://blogs.msdn.com/b/andreww/archive/2008/09/02/version-specific-ui-in-add-ins.aspx
4: Essential resources:
Visual Studio Tools for Office For Office and Outlook for Developers Forums on MSDN
OutlookCode.com
(FYI, I work for Add-in Express)
No, not without implementing the entire message window.
We have to make 2 projects for 2007 and 2010, we are skipping 2003 and below b/c it is much more difficult and would be rarely used.
Can't host WPF in a Ribbon, we're going to display a WPF popup from a Ribbon button press.
Best thing I've found is to just follow the project template in Visual Studio and mess around.
Overall, our add-in is going to do the following:
Make 2 projects for 2010 and 2007 that share a "Shared" assembly
All reusable work is done in the shared assembly
WPF is only displayed via popup windows (you can do a custom task pane, but it doesn't make sense for our add-in)

Categories

Resources