vsto

In Visual Studio, can I disable signing my application when in debug?

♀尐吖头ヾ 提交于 2019-12-10 19:56:40
问题 In Visual Studio's Project Properties -> Signing tab, I have signed my project with a code-signing certificate. On my team, however, I'm the only one with the code-signing certificate, even though we're in a multiple-developer environment. When the other developers try to "Start Debugging", they get the following message: "cannot find the certificate that matches the project system thumbprint" Anyone have any suggestions for allowing them to debug their project, but only allow me to publish?

VSTO: Drawing on top of Excel worksheet

梦想的初衷 提交于 2019-12-10 19:34:02
问题 I've written a bunch of handy Excel add-ins in C#, and everything works great. But the one thing I haven't been able to figure out is if it's possible to place graphics (bitmaps, shapes, whatever) on a worksheet control, e.g. by appending a function to its paint event handler. I don't want to actually change the document in any way, it's only for temporarily highlighting things to indicate how my add-ins are finding and interpreting data in the sheet. The simplest thing I want to be able to

Better way to programmatically Lock/Disable multiple UI controls on Ribbon bar

别说谁变了你拦得住时间么 提交于 2019-12-10 19:16:19
问题 I have been wondering, what would be the better way to implement Locking/Disabling a bunch of Ribbon UI controls by just a click? Currently, my approach is kinda simple and basic: private void tbtnLock_Click(object sender, RibbonControlEventArgs e) { if (tbtnLock.Checked) { control1.Enabled = false; control2.Enabled = false; control3.Enabled = false; //... //controlN.Enabled = false; } else { control1.Enabled = true; control2.Enabled = true; control3.Enabled = true; //... //controlN.Enabled =

How do I enable/disable my Ribbon Buttons in Outlook

孤人 提交于 2019-12-10 19:14:09
问题 I have an Outlook Add-in created with VSTO. Using the Ribbon Designer I have created a tab with three buttons on it. ( Environment: Outlook 2010, .NET 4.0, VSTO latest runtime ) When one of the buttons is pressed a modeless dialog is opened. As long as the user is working on this dialog I do not want him to be able to press the button again. So basically I want to gray out the button till the dialog is closed. How can I do this? For whatever reason, in the button click handler, if I do this

Bundling only part of the prerequisites with ClickOnce

感情迁移 提交于 2019-12-10 18:53:06
问题 Is it possible to configure the ClickOnce installation so that it requires .Net Framework and VSTO but includes only the VSTO binaries and downloads .Net Framework if necessary? Including the VSTO in the package isn't too much of a problem but the 350MB .Net Framework is something I'd do away with if possible. (Dynamics CRM SDK depends on some non-client profile features so I need the full one.) In most cases the users have the .Net Framework installed so in these cases it's okay to leave the

Does VSTO Add-In support to Mac(iOS) Operating system?

痴心易碎 提交于 2019-12-10 18:37:39
问题 I have created a VSTO Add-In. It will add new Tab to ribbon. Currently, it is working fine in Windows system. I don't know whether it supports to Mac(iOS) operating system. Can anybody please suggest me about it support? If it doesn't, what I should use to create project which support both windows and Mac(iOS)? 回答1: The straight answer is that VSTO add-ins are based on the COM technology which doesn't exist on MACs. It is for Windows OS only. VSTO in particular and COM addins in general donot

Excel VSTO WorkbookNew event

﹥>﹥吖頭↗ 提交于 2019-12-10 18:26:38
问题 In one Excel Add-in project for Excel 2007 I need to check the event for the creation of a new workbook. I also needed to catch the Workbook_Open event which I did quite easily... On my research on the internet I found the following: Application.WorkbookOpen is raised when any workbook is opened. Excel passes the Workbook that is opened as a parameter to this event. This event is not raised when a new blank workbook is created. The Application.WorkbookNew event is raised instead.

C# VSTO Add-in - Convert plain text email to HTML

荒凉一梦 提交于 2019-12-10 17:50:14
问题 We have written a VSTO addin for Outlook 2010/2007. At one point, our addin must convert plain text emails to HTML from a ribbon control. This causes some strange behavior in Outlook: We're using the MailItem COM object We set MailItem.HTMLBody Email is converted to HTML, but for some reason the font is Times New Roman at 10pt The default font in Outlook is Calibri 11pt, which makes our email conversion look pretty strange to the user. It works as expected when you use the existing button in

Change Outlook settings using VSTO

混江龙づ霸主 提交于 2019-12-10 17:47:04
问题 I have just spent about 4 hours trying to figure out how to retrieve/set outlook settings for Microsoft Outlook 2010 programmatically. What i mean by 'settings' is settings under the File/Options/Mail. What i am trying to do is to retrieve a list of settings set by the user, automate a whole print process that we need to run daily on some messages and then restore the settings. to their original. I have noticed that in Word the code below can be used to set certain settings through Word

how to use Application.OnKey by C# without involving VBA code?

一个人想着一个人 提交于 2019-12-10 17:42:23
问题 I want to use the UDF in excel template(.xlt) I have used Application.OnKey("^v","MyFunction"); i want to use separate function when user paste the the cell in excel i.e. MyFuction but when i defined function with in the thisworkbook.cs i wont work... Thanks in advance.. 回答1: This won't work. You need to define the function in VBA and call you .NET method from that VBA function, like explained here at the end: http://msdn.microsoft.com/en-us/magazine/cc163373.aspx 来源: https://stackoverflow