vsto

VSTO 2012: backward compatibility

大兔子大兔子 提交于 2019-12-06 03:23:55
Since lately the Visual Studio Tools For Office 2012 (VSTO 2012) are available for download . Can this new version still used for developing Add-In solutions for older Office versions (2007,2010)? Are there any advantages over VSTO 4.0 (besides Office 2013 support) Yes, it can. I'm using VS2012 for an Excel 2007 project and it works fine. The trick is to change the debug path in your project file so that VS uses the older version of the Office app your plugin is for. Create your VSTO project (let VS create the project for Office 2010) Edit the project file and find the <ProjectProperties> with

Re-enable VSTO add-in that is disabled by the Application due to multiple errors

送分小仙女□ 提交于 2019-12-06 03:02:45
问题 I am writing and debugging an Excel VSTO Ribbon addin and it sometimes crashes due to errors in code. When Excel finally decides it's too much and asked me whether I want to permanantly disable it, I ACCIDENTALLY clicked yes. Now no matter what I do, I cannot get the addin to automatically load on Excel startup. I go to COMs AddIn dialog and set the checkbox; deleted the registry settings manually; cleaned the project in Visual Studio and rebuilt it -- no use. Where should I configure to make

VSTO Alternatives [closed]

陌路散爱 提交于 2019-12-06 02:51:34
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . What alternatives exist for VSTO? What does managedxll do that VSTO does not - When would you use one vs the other Google does not bring much up on this subject This is more of an interview question - What are the pros and cons and both is the crux of the question here VSTO presumes you are using Visual Studio as your development platform, thus mainly targeting professional and corporate developers. 'Power users

Custom excel right click context menu gets overwritten by Quick Analysis defaults

守給你的承諾、 提交于 2019-12-06 02:28:41
I'm following this example to create a custom rightclick custom menu for an excel add-in with VSTO and display it under certain conditions (rightclick inside a range of an Excel named table). My modified version of the code from the example works like a charm when I right click outside a named table range: but it doesn't get displayed when you right click inside a named table range: I suppose it has something to do with the Quick Analysis functionality interfering with my custom context menu overrides. Here is the code I'm using inside ThisAddin.cs: void Application_SheetBeforeRightClick

How to find the named range of a cell - VSTO

时光怂恿深爱的人放手 提交于 2019-12-06 02:15:28
问题 I have generated a series of rows using C# and VSTO. I have basically loaded a couple of rows with data and have given each cell a NamedRange. My question is how would I, knowing the beginning row and end row index, traverse each cell and retrieve it's NamedRange. I've tried Excel.Range range = (Excel.Range)m_worksheet.Cells[x,y]; which gets the range fine, but then when I do a range.Name.ToString(); I get "System.__COM...." instead of the name. Can anyone assist? Thanks 回答1: Here is the

How do I add a reference to a VSTO project to a WiX Installer project in Visual Studio 2010?

梦想的初衷 提交于 2019-12-06 01:44:41
问题 I've got a Visual Studio 2010 solution which contains a VSTO Add-In project. I've also added a WiX Setup project to the solution, and I now need to add a reference to VSTO project in the Setup project, but am unable to do so. When I right click the References in the WiX Setup project, then select Add Reference, then Select the Projects tab the VSTO project doesn't appear in the list of available projects to reference. 回答1: I had the same problem, then I tried to "do it wrong": I added the

VSTO Debug version fine, Installed version doesn't read app.config

ぐ巨炮叔叔 提交于 2019-12-06 01:37:27
问题 I have a VSTO Excel 2007 add-in that should read connectionstrings from the app.config file, and then let the user decide which database to connect to. This works fine when I debug it, but when I run the deployed version (done with Windows Installer) the connectionstrings aren't read at all. I have added the primary outputs from all the projects to the setup project. The app.config file is in the ExcelAddIn project, but not under the Excel heading. The class that manages the connectionstrings

Missing <configSections> in config file after deployment

风格不统一 提交于 2019-12-06 00:53:50
Update: I had a question below but actually my problem would be solved by asking a slightly different question. Why on some machines does my application throw the error: Configuration system failed to initialize - System.Configuration - at System.Configuration.ConfigurationManager.PrepareConfigSystem() where as on other machines it does not. The error as described also here .NET 3.5 - Configuration system failed to initialize exception is caused by a missing configSections element at the top of my app.config. Of course, the problem would be resolved by putting this section in but for some

Adding a section to the To-Do bar in Outlook 2007/2010?

对着背影说爱祢 提交于 2019-12-05 19:13:17
I would like to add a new section to the To-Do Bar in Outlook 2010 (or 2007). I found some code to create a new collapsible task pane and someone claiming you can't modify the To-Do bar, but I also found a product called Add-In Express that claims it can do it (although at $349 it's not worth it for a one-off project). Is is possible to do that? After some research (and after having seen the product documentation of Add-in Express), I figured that it is possible to customize the To-Do Bar in Outlook 2007. There is a proof-poof-concept on CodeProject that embeds a "custom" (read self-written)

VSTO in VBA: AddIn.Object returns Nothing (null) sometimes

天涯浪子 提交于 2019-12-05 19:02:30
Given: A VSTO Add-In An override object RequestComAddInAutomationService() which returns an instance of a class which is called Facade in my scenario. A VBA macro in Excel 2007 which accesses the AddIn.Object to get the Facade and uses it. A plenty of times where this works perfectly fine. A couple of times where out of the blue, this doesn't seem to work. Update: Turns out that it's a particular user that has the problem. She has it all the time, others never have it (? never say "never") In this "couple of times" I get Error: Object variable or With block variable not set at the line of code