vsto

WCF VSTO client cannot find default endpoint when deployed on win2k8

佐手、 提交于 2019-12-23 04:56:09
问题 I created and deployed a WCF client (launched from a VSTO Word Addin) on a Win2008R2 Terminal Server. When excution the default constructor of the WCF proxy an InvalidOperationException is thrown, stating that the default endpoint for the contract cannot be found. The same WCF client when deployed to a Win7 x64 machine just runs fine using the same .dll.config I tried to create an instance inside PowerShell and receive the same error. If creating a dedicate endpoint in PowerShell I can excute

Slide animation when showing/hiding CustomTaskPane in VSTO

梦想的初衷 提交于 2019-12-23 03:19:08
问题 I have a CustomTaskPane in my VSTO project that I can show/hide using .Visible = true/false property. However it's an ordinary showing/hiding element with no animation whatsoever. However the "Smart Lookup" button, that comes with Excel 2016, also opens an Excel Pane by sliding left/right. I guess that the Smart Lookup addin is built in the newer technology using JavaScript instead of the outdated VSTO COM plugin and thus might have such feature. Am I able to have it in the VSTO plugin as

VSTO Outlook - Contact iteration is SO SLOW!

点点圈 提交于 2019-12-23 03:00:21
问题 I'm working on an outlook add-in and I have a dialog window that allows the user to select contacts. I havent been able to find a way to use the outlook contact window so I am looping through the ContactFolder.Items and doing my work that way. The problem is that I have to handle up to 70K contacts. I tried multi-threading and many other things but it is just so slow. It takes 15 seconds to load 30k contacts. I can load and bind 500k POCO objects in milliseconds but when I need to get the

Get MessageID of a sent mail in Outlook

倾然丶 夕夏残阳落幕 提交于 2019-12-23 02:06:09
问题 I'm currently writing on an Outlook VSTO AddIn. Using this AddIn, I would like to keep track of E-Mail conversations and be able to uniquely identify mail messages. We are using Exchange as MTA. For all the mails in the Inbox (and many other folders) I can use the Message ID from the mail's header to do the matching, but mails lying in the "Sent Items" folder do not have a Message ID set. Is there a way to get the Message IDs from those mails? (I guess that the mails do not have a header, as

powerpoint 2013 - progress for export to video

十年热恋 提交于 2019-12-23 01:52:14
问题 I'm working on an application which reads a Powerpoint presentation from disk and saves it in video format using the following pseudocode: var app = new ppt.Application(); ppt.Presentation file = app.Presentations.Open( this.SourceFilename, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse); file.CreateVideo(this.DestinationFilename); while (true) { switch (file.CreateVideoStatus) { case PpMediaTaskStatus.ppMediaTaskStatusDone: ... case PpMediaTaskStatus.ppMediaTaskStatusFailed

Unit Testing VSTO projects

强颜欢笑 提交于 2019-12-23 01:19:23
问题 In most unit test tutorials I follow it has me create a second unit test project and then add a solution/project reference from the test project to the other project. I have a VSTO addin, and when I go to add the reference I don't see anything listed under Solution > Project. Why is this? How else can I add a reference to the addin project to test it? 回答1: If this is your first time at unit testing, then VSTO might be a steep learning curve. As suggested by @Sam Holder, you might want to put

Adding to registry without manifest in MS Office AddIn

谁说我不能喝 提交于 2019-12-23 01:16:23
问题 I am making a Outlook 2007 AddIn in c#. So while making the setup file I need to modify the registry entries. One of them is is "Manifest" string which has the link to the AddIn's manifest file. By loading this the office application loads the AddIn. But When I looked at the WebEx registry entries it doesnot have any Manifest link. Why is it so? How did WebEx manage to do with out having a Manifest link? 回答1: There are (2) types of Outlook Add-ins - COM Add-ins and Exchange Client Extensions.

How to search for the name of the UserProperty in Outlook.MailItems, not their value

梦想与她 提交于 2019-12-23 01:08:06
问题 BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). string propertyValue = "true"; string filter = "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/IsProcessed LIKE \'%" + propertyValue + "%\'"; I am using this filter string in advancedSearch link to doc PROBLEM STATEMENT: My usecase is to search if these mailItems have any UserProperty assigned where name of

Excel VSTO Add-in error - application domain could not be created

可紊 提交于 2019-12-22 18:05:09
问题 I have an Excel VSTO Add-in that is not installing on one of my users machines. It installs fine on everyone else's machine so far (8 machines), but on this one specific machine it is giving the following error message. Customization could not be loaded because the application domain could not be created. ************** Exception Text ************** Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the

VSTO 2012: backward compatibility

匆匆过客 提交于 2019-12-22 10:35:30
问题 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) 回答1: 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