add-in

How to convert the WordOpenXML property into a System.IO.Packaging.Package?

*爱你&永不变心* 提交于 2019-12-04 05:29:31
I've been experimenting with building an Outlook 2010 addin in C#, using Visual Studio 2008. I am able to obtain a Microsoft.Office.Interop.Word.DocumentClass object from a Microsoft.Office.Interop.Outlook.Inspector object, which represents the e-mail being currently edited. I understand that this DocumentClass is used in various other contexts too (usually for Microsoft Word extensions, unsurprisingly). That class helpfully has a property called WordOpenXML , which seems to be an XML representation of all the files constituting the the .docx package which would be saved to disk when saving

powerpoint c# add-in shape grouping issue

限于喜欢 提交于 2019-12-04 04:20:55
问题 I developing a PowerPoint 2010 add-in using Visual Studio 2010 and am having significant issues with grouping two objects on a slide. I am trying to create the two objects, place them on the slide and group them all in the same function. Adding the objects and placing them on the slide is not an issue. When it comes to the grouping part though.... I have tried: PowerPoint._Application myPPT = Globals.ThisAddIn.Application; PowerPoint.Slide curSlide = myPPT.ActiveWindow.View.Slide; string[]

Command line to start visual studio and disable add ins/Extensions for that instance

安稳与你 提交于 2019-12-04 02:18:41
I am writing a Visual Studio template wizard. And to debug it I have it start a new instance of Visual Studio 2010. My Visual Studio 2010 takes a good while to start up. I believe that this is due the the add-ins and extensions that I have installed for visual studio. I would rather not go disable them all (I really like them). So I was hoping there was a way to disable them via the command line. Just run a clean Visual Studio instance. Is there a way to do that? MikeG Try safemode devenv.exe /safemode which Starts Visual Studio in safe mode, and loads only the default environment and services

Mark or highlight files in Visual Studios Solution Explorer

无人久伴 提交于 2019-12-04 02:17:58
is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ? I searched the Visual Studio Gallery but didn't find anything. Thanks! I found the extension Visual Studio Tags on codeplex that can do what we need, but there's not (yet) visual support (ie, diferent colors in solution explorer). To highlight only the active (open and viewed) item in the solution explorer (without any add-ins): Go to Tools -> Options -> Projects And Solutions Then Check the Track Active Item in Solution Explorer option. But if

VB macro or office addin for mac

半世苍凉 提交于 2019-12-04 02:06:37
问题 Currently we developed a VB macro for word. While we tried to use it on mac it failed with message "VB Macro not supported in mac". Is there a way to c# office add-in for mac? My requirement is to have a simple utility to add comments(read from user) to the selected text in the current word document. Also need the functionality of the OpenFileDialog. 回答1: Mac Office does not (i.e. no longer) support COM/VBA automation. This means that you won't be able to use code from your existing Windows

Visual Studio dump all properties of class into editor

倖福魔咒の 提交于 2019-12-03 17:50:11
问题 Ok, here is one for the people that have lots of handy little add ins for visual studio, or can help with a keypress sequence. Let's say I have a Person class: class Person { string Name { get; set; } int Age { get; set; } } And I'm busy coding away happily. I often get the situation where I need to assign values to all the properties of that class, or assign all the values of the properties to something else. public override void CopyTo(Person myPerson) { myPerson.Name = "XXX"; myPerson.Age

Smart Paster Add-In for Visual Studio 2010

五迷三道 提交于 2019-12-03 17:41:36
问题 Does anyone know of any free add-in similar to Smart Paster , but for Visual Studio 2010? Unfortunately, Smart Paster only works for VS2005 and VS2008. For the ones that don't know what I'm talking about, check it out. 回答1: My simplified (C# only) version for 2010 is here The post explains the VS2010 incompatibility (CommandBarButton.FaceId throws an exception) so you can change the VS2008 source code if you want. Update: full source and binary are now in Codeplex 回答2: Working code for the

Can't find the list of most (all?) tab names for the ribbon in Office

六月ゝ 毕业季﹏ 提交于 2019-12-03 16:40:25
After some heavy googling, I've concluded that I'm unable to locate information on the id names for the different components of the ribbon in Office. For instance, even though the following XML works, I need to hide the add-in error display due to TabMail being at fault when a new email is being created. It's my understand that it's because I currently target all windows in Outlook but should be only targeting the main one. When a new email is being created, my add-in tries to insert itself in there too failing and complaining. <ribbon> <tabs> <tab idMso="TabMail"> <group id="Animals" label=

How can I activate an Excel add-in from Perl or the command line?

﹥>﹥吖頭↗ 提交于 2019-12-03 16:23:45
(Please forgive my ignorance on Excel add-ins, and feel free to correct my teminology where appropriate.) I have an Excel add-in that is used regularly. This add-in inserts a toolbar with a number of buttons. I want to automate the task of opening a spreadsheet in Excel and then "clicking" one of those buttons. In other words, I want to use Perl (or the command line) to activate a particular function of this add-in. I do not have immediate access to the source code for the add-in, but I should be able to request specific information such as procedure names if required. I cannot use CPAN

MS Word Add-in: RIght click handler

眉间皱痕 提交于 2019-12-03 16:13:23
I am developing an Add-in for MS Word 2010 and I want to add a couple of menu items to the right click menu (only when some text is selected). I have seen a couple of examples to add items but couldn't find how to add items conditionally. In short I want to override something like OnRightClick handler. Thanks in advance. This is quite simple, you need to handle the WindowBeforeRightClick event. Inside the event locate the required command bar and the specfic control and handle either the Visible or the Enabled property. In the example below I toggle the Visible property of a custom button