vsto

VSTO WPF Outlook Addin - Unresponsive UI at random occasions

◇◆丶佛笑我妖孽 提交于 2019-12-12 19:24:17
问题 We have a VSTO addin for Outlook 2007 developed using .Net 4.0 WPF. One of the PC where it got deployed, is having an issue with UI. At some occasions UI becomes unresponsive for few moments. Clicks does not work. After few moments everything gets back to normal and user can click the buttons. Other addins installed on the PC are - SnagIT and Google Desktop Outlook Toolbar. Please help us if you have any input on this kind of issue. 回答1: I had the same issue with a Word Add-In -- on a very

Create registry key in 32-bit hive on x64 PC using Installshield 2012 LE - Avoid redirection

天大地大妈咪最大 提交于 2019-12-12 18:45:07
问题 I am trying to deploy an Outlook 2010 x64 AddIn in a x64 OS. For this AddIn I have to create the registry keys at HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\[add-in ID] . But Installshield Spring 2012 LE insists in creating the registry keys at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Outlook\Addins\[add-in ID] . I know there's a redirection of the registry creation taking place, but how do I avoid this redirection? The AddIn registry keys need to be created

F# Excel UsedRange has no Properties or Methods

。_饼干妹妹 提交于 2019-12-12 18:04:03
问题 This is a continuation of the discussion begun on F# Excel UsedRange is not Defined, which has been solved by down-casting the ActiveSheet object to a Worksheet. Upon doing that, however, I was presented with a new problem: UsedRange exposes no properties or methods other than the standard object methods. My solution has references to Microsoft.Office.Interop.Excel and Microsoft.Office.Tools.Excel.v4.0.Utilities. open Microsoft.Office.Interop.Excel open Microsoft.Office.Tools.Excel let xl =

Outlook Ribbon Load Inspector.CurrentItem is null

…衆ロ難τιáo~ 提交于 2019-12-12 17:29:12
问题 Overview I have an Outlook add-in created with VSTO. The add-in has a single ribbon (visual designer) for the Mail.Compose ribbon type. The ribbon tab ControlIdType is set to "Custom". The only code in the add-in other than designer code is the following Load handler for the ribbon. this.Context.CurrentItem is unexpectedly returning null. Code private void RibbonComposeMail_Load(object sender, RibbonUIEventArgs e) { try { var inspector = this.Context as Outlook.Inspector; if (inspector ==

Copying a range of cells from excel into powerpoint using VSTO

淺唱寂寞╮ 提交于 2019-12-12 17:25:36
问题 How do I copy a range of cells from Excel to Powerpoint. I want to do the same thing as when you select a range of cells, copy to clipboard and then paste in a slide in powerpoint. I have tried Range.Copy(missing) and Slide.Shapes.Paste this code but it's not working. It throws an exception like 'Shapes (unknown member) : Invalid request. Clipboard is empty or contains data which may not be pasted here.' The clipboard does contain data though and googling the error shows that other people are

Is there any way to change custom task pane color in VSTO outlook add in?

我与影子孤独终老i 提交于 2019-12-12 17:19:08
问题 Is there any way to change custom task pane background color in mail compose window ? UPDATE UserControl.BackColor gives me this result. But I want whole custom task pane to be white My code for setting up usercontrol is here: public partial class UserControlTest : UserControl { public UserControlTest() { this.BackColor = Color.White; InitializeComponent(); } } 回答1: You can change the background of the task panel by setting the BackColor of the UserControl . This is how I set mine to the same

Identify unique references to objects from Interop Libraries (Doument.Paragraphs, etc)

时光怂恿深爱的人放手 提交于 2019-12-12 16:33:19
问题 I would like to be able to identify when two interop variable objects refer to the same "actual" object. By "actual", I mean for example a given paragraph or footnote in a Microsoft Word document. Example in vb: (note c# answers are ok too, the question is not language related) Imports Microsoft.Office.Interop Sub Tests() Dim WordApp as Word.Application = Globals.ThisAddIn.Application Dim ThisDoc as Word.Document = WordApp.ActiveDocument Dim ThisSelection As Word.Selection = ThisDoc

Retain the source template when saving slides in ppt

孤街浪徒 提交于 2019-12-12 15:45:42
问题 I am trying to save selected slide so it doesnt retain my source template. how do i retain the existing template while i save the slides private void SaveSelectedSlide_Click(object sender, RibbonControlEventArgs e) { try { PowerPoint.Application ppApp = Globals.ThisAddIn.Application; PowerPoint.SlideRange ppslr = ppApp.ActiveWindow.Selection.SlideRange; string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); var temporaryPresentation = Globals.ThisAddIn.Application

the manifest may not be valid or the file could not be opened

眉间皱痕 提交于 2019-12-12 15:41:30
问题 I want to install outlook add-ins (Which is developed by Visual studio 2008) but I've got following error. Name: From: file:///D:/Project/.Net Learning/OutlookAddIn3/OutlookAddIn3/bin/Debug/app.publish/OutlookAddIn3.vsto Exception reading manifest from file:///D:/Project/.Net%20Learning/OutlookAddIn3/OutlookAddIn3/bin/Debug/app.publish/OutlookAddIn3.vsto: the manifest may not be valid or the file could not be opened. ************** Exception Text ************** System.Deployment.Application

How to build an Office Add-In without registering it on the build system?

僤鯓⒐⒋嵵緔 提交于 2019-12-12 14:25:25
问题 We are building Office 2007 add-ins using Visual Studio 2008. Our builds are performed via a continuous integration server (one machine) that builds whenever we check in changes or manually request one. The server can perform simultaneous builds. We noticed that when Visual Studio 2008 builds an Office 2007 add-in, it also registers it on the system performing the build, even though Office isn't installed on the integration server. Does anyone know of a way to prevent Visual Studio 2008 from