add-in

Building a C# addin for Solidworks [closed]

陌路散爱 提交于 2019-12-06 02:33:46
It seems quite complicated on multiple sites. What are the proper steps to build a Solidworks Addin in C# with Visual Studio 2017? I'd like to share my experience on building a C# addin for Solidworks 2016 using Visual Studio Professional 2017 and Windows 10. I wish I had such a post to save me time so I think future users could find help into this one. 1. Downloading the C# template for visual Studio and installing it I basically followed the steps provided by Solidworks (requires a Solidworks Customer Portal account) that you can find here : Problem Encoutered : The exe would be extracted

Is it possible to store hidden metadata information that is tied to a specific Table or Cell within a Word document?

安稳与你 提交于 2019-12-06 02:29:53
问题 I am trying to store metadata (basically a unique id) along with each cell of a table in a Word document. Currently, for the add-in I'm developing, I am querying the database, and building a table inside the Word document using the data that is retrieved. I want to be able to save any of the user's edits to the document, and persist it back to the database. My initial thought was to store a unique id along with each cell in the table so that I would be able to tell which records to update. I

Vertical lines for things like “if statements” in Visual Studio 2008?

梦想的初衷 提交于 2019-12-06 02:25:41
问题 Is there an add-on or setting that can add vertical lines that link things like "if statements" in Visual Studio 2008? Thanks 回答1: CodeRush from DevExpress: http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/navigation.xml (See the "Structural Highlighting" section) 来源: https://stackoverflow.com/questions/2269756/vertical-lines-for-things-like-if-statements-in-visual-studio-2008

Developing MS Word add-in

社会主义新天地 提交于 2019-12-06 01:51:41
问题 Anyone knows of a good tool for developing add-ins for Word in .net? Hopefully something that supports both office 2003 and 2007. Thanks. 回答1: There are lots of options for development tools for Office. The most obvious one is of course Office itself. It has rich support for macros and VBA. You could also use SharePoint to extend document sharing and management functionality. But if your add-in is more complex than can be handled inside of Office, I suggest you use Visual Studio 2008 or the

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

徘徊边缘 提交于 2019-12-06 01:24:36
问题 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

.NET Deploying Office 2003 Redistributable Primary Interop Assemblies (o2003pia.msi)

我的未来我决定 提交于 2019-12-05 20:10:39
Has anyone out there actually succeeded in creating a prerequisitie for o2003.msi? There are a lot of people out there asking about this, but I cannot find anyone who actually succeeded. I find some extremely complicated solutions where you are required to comple .cpp-files for which the soure may or may not be supplied. I even tried to complie one of those but got configuration error on the target machine... :-( If I don't install o2003.msi, my Office "Shared Add-In" will throw an exception because office.dll cannot be found. So I would very much like to have it included in my installer. And

Add Trigger to Transition

被刻印的时光 ゝ 提交于 2019-12-05 18:38:19
How does one add a trigger to the "Properties-Constraints-Triggers" area of a state machine transition in Enterprise Architect? The quotes are how you get there manually within EA. What I've Tried Below, this actually results in the trigger being added to the state machine, but I need to link it to a specific transition. Variable stateMachine is of type EA.Element. EA.Element trigger = (EA.Element)stateMachine.Elements.AddNew("trigger", "Trigger"); State is of type EA.Element. connector is of type EA.Connector (the specific StateFlow transition that I'm trying to add the trigger to). All of

C# - can't debug office word add-in

那年仲夏 提交于 2019-12-05 17:53:36
Here's what I did: From VS2010 > new C# Project (from Other Project Types > Extensibility > Shared Add-in) > some basic configuration in the Connect class After that I set in the project properties > debug > start external program, the path for winword (C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE) When creating a shared add in, the setup files are in a separate project, in the same solution. so i did a build for the add-in, and installed it. when i start word (separately or from Start with debug from visual studio) the add-in runs fine, but it can't seem to hit any breakpoints

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

橙三吉。 提交于 2019-12-05 17:44:05
问题 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? 回答1: Try safemode devenv.exe

popup dialog box in word addin

旧时模样 提交于 2019-12-05 15:51:37
I am creating a ms office word addin using c#. I have a ribbon with several button. On clicking one of the button I need a popup with few textboxes. Question: How to create a popup dialog in word addin? Add a new Form to your add-in project and design as desired. In your button click handler you just need to do "new MyPopupDialog().Show();". If you want to make the Word window the parent of your dialog so you can centre it and make it modal to the word window you can make a window wrapper class that you can use in "new MyPopupDialog().ShowDialog(WordWindowWarper);". Something like this: public