vsto

c# excel image

风格不统一 提交于 2019-12-25 04:38:10
问题 hi i have inserted image on an excel worksheet... how is it possible to refer to this image from c#, thanks a lot! 回答1: You will want to use the Clipboard object and the Excel Interop assembly. See here. 回答2: There are two ways to do this: either start excel and get the image via the api, or open the excel file directly using the open xml format. I would recomend the latter. See: http://msdn.microsoft.com/en-us/library/aa338205.aspx for details on the format. 来源: https://stackoverflow.com

Excel VSTO - accessing AutoFilter's Array Criteria throws exceptions

孤街浪徒 提交于 2019-12-25 04:34:09
问题 I am working on a C# VSTO project in Excel that needs to save the current AutoFilter information and re-apply the filter after some table update. I have managed to have it work on simple text and number filters. But it fails on Date Filters. On a closer look, it seems when the filter Criteria is an Array, there is no way to access the criteria? Basically, the code myCriteria = someFilter.Criteria2 , which returns a string for simple text filters, throws a COM exception now. The MSDN doc on

Publisher name of VSTO add-in in outlook add-in list

微笑、不失礼 提交于 2019-12-25 04:18:19
问题 I am facing the issue that my VSTO add-in is not displaying the publisher name in Outlook's add-in dialog. It is showing as <None> . I am using VS2013 for development. I tried by signing it but did not work. Can anybody please give some specific steps to do it? 回答1: Unfortunately showing the publisher name is not possible for VSTO Add-ins. Even if you sign all your ClickOnce files with your Authenticode certificate your assembly With signtool (Authenticode) Strong Name with CA-signed

COM Add-in not going away in word 2007

倖福魔咒の 提交于 2019-12-25 03:54:18
问题 So ive got two different COM addins, one for word 2k3 and one for 2k7. word 2k3 works like a charm everytime, no issues etc...but now when I open word 2k7, the buttons from 2k3 appear in my 2k7 ribbon. This still happens even after I disable my addin or clean my project...i've tried everything, including deleting all dlls for my 2k3 addin but the problem still persists... any suggestions on what the problem is? cheers 回答1: If you make a point of configuring those buttons in a template OTHER

COM Add-in not going away in word 2007

一个人想着一个人 提交于 2019-12-25 03:54:12
问题 So ive got two different COM addins, one for word 2k3 and one for 2k7. word 2k3 works like a charm everytime, no issues etc...but now when I open word 2k7, the buttons from 2k3 appear in my 2k7 ribbon. This still happens even after I disable my addin or clean my project...i've tried everything, including deleting all dlls for my 2k3 addin but the problem still persists... any suggestions on what the problem is? cheers 回答1: If you make a point of configuring those buttons in a template OTHER

Why am i not seeing the security tab in my Office Solution properties?

試著忘記壹切 提交于 2019-12-25 03:39:07
问题 I recently published an office solution as a click once application on my one drive. My client downloaded it from there and when he tried to install, it gave him this error. I want to republish it by making it a full trust application but i cannot find the security tab in project properties. Thanks in advance. 回答1: I had the same issue and the solution was super annoying to figure out. Someone on another website mentioned that the Security tab is only relevant for certain types of ClickOnce

officejs addin - is it possible to share a ribbon with a vsto application? [duplicate]

邮差的信 提交于 2019-12-25 03:38:11
问题 This question already has an answer here : vsto and office web addin in same ribbon tab (1 answer) Closed last year . VSTO addins can use idQ to share ribbons with each other. Can a officejs addin share a ribbon with a VSTO addin too? How about with another officejs addin? 回答1: I'm afraid that that is not possible at this time. Office Add-ins use a different system for customizing the ribbon from VSTO. Sharing is not possible, but it is an interesting idea. Please suggest it on Office

How to Expose Listbox in UserControl in CustomTaskPane VSTO C#

泄露秘密 提交于 2019-12-25 03:33:12
问题 I am creating an application level add-in for Word 2010 using C# VSTO. I created a User Control, placed controls within it, and then used the User Control to add a Custom Task Pane: UserControl myUserControl; myUserControl = new PageElementsPane(); mytaskPane = this.CustomTaskPanes.Add (myUserControl, "Page Elements", doc.ActiveWindow); So far so good. However, the User Control contains a listbox that I have not been able to access after the Custom Task Pane is added to the Custom Task Pane

TaskPane does not draw, appears blank

旧巷老猫 提交于 2019-12-25 03:32:58
问题 I discovered a very specific issue with modal Inspectors in Windows 7 systems running Outlook 2007. I'm developing an addin that places a ribbon button and UserControl (in the form of a taskPane) into the email-compose window. The issue is: with that specific setup, (with Outlook 2007 already running) when the user attempts to launch an email-compose window externally (this can be through 'send via email' in Adobe Reader or many other applications). The TaskPane that appears appended to the