add-in

Using exchange web services to get the required attendees of a calendaritem? c#

人盡茶涼 提交于 2019-12-10 17:43:00
问题 I am trying to get the required attendees of a meeting which I got using the exchange web service. Any ideas? I think I need to use CalendarItemType, but I'm not sure how to implement it. Here is my code so far: foreach (var wrk in Workers) { TimeWindow timeWindow = new TimeWindow(startDate, endDate); AvailabilityData requestedData = AvailabilityData.FreeBusy; List<AttendeeInfo> attendees = new List<AttendeeInfo>(); attendees.Add(new AttendeeInfo(wrk.EmailAddress)); GetUserAvailabilityResults

Get distance between screen edge and webpage

蹲街弑〆低调 提交于 2019-12-10 17:25:26
问题 Ok, consider this image. I develop an IE extension in c# and I would : - the distance in red, between top of screen and top of `visible webpage` - the distance in red between left of screen and left of `visible webpage` - the width/heigth of the visible webpage Of course considering that i have the whole screen size. If i have red and black I can calculate green. What the point ? I have thousand screen coordinates (X,Y), i have to calcul the coordinate relative to the webpage. Example :

MS Word Custom Task Pane disappears when I programatically open a document

我只是一个虾纸丫 提交于 2019-12-10 15:07:14
问题 I am trying to create a simple MS Word addin (mostly to explore functionality). The addin adds a Custom Task Pane, and group in the Ribbon. The Ribbon controls include a checkbox to control the visibility of the Custom Task Pane, and a button to open a document. When I test the addin in MS Word the task pane shows up correctly, and the checkbox works correctly. The problem is, as soon as I click the button and open a new document, the task pane is hidden, and the checkbox no longer controls

VS2010 DTE Addin: project inside solution folder is not “Project”

梦想与她 提交于 2019-12-10 13:30:28
问题 I have a small vs addin which looks for projects inside a solution and does a few stuff with it. I collect the projects like this: Application.DTE.Solution.Projects.OfType<Project>(); However, as soon as I introduced a solution folder and placed a project inside it, suddenly that project was nowhere to be found. So, I've tried private IEnumerable<Project> getProjectsRecursive(IEnumerable<Project> iEnumerable) { foreach (var item in iEnumerable) { yield return item; foreach (var child in

Visual Studio 2008 crashes when trying to load solution file

偶尔善良 提交于 2019-12-10 13:28:31
问题 When I try to load a solution in Visual Studio 2008, it immediately closes. I get the following error in the event log: .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (6E875E00) (80131506) I've searched the web high and low and can't find a resolution to this problem. I've found similar issues, but none of them match the (6E875E00) part. Here's my setup: Vista 64 Visual Studio 2008 SP1 .Net Framework 3.5 SP1 ReSharper 4.1 Gallio 3.05 TestDriven.Net 2.18 I have a feeling it

How to refer to Excel macros (not functions) in .XLAM addin saved outside Personal Macro folder in Excel 2016/2019?

。_饼干妹妹 提交于 2019-12-10 11:35:36
问题 We can create an .XLAM addin with custom functions (UDF). Once we connect Excel to the addin, these UDFs can then be called from another workbook regardless of where the addin was saved (even outside the Personal Macros folder). But the same cannot be done for macros (sub-procedures) saved in the same .XLAM file. From my research and trial it seems the sub-procedures can be called correctly if the addin was saved in the Personal Macros folder. But if the addin was saved somewhere else, the

Visual studio 2017: QT Add-in

一笑奈何 提交于 2019-12-10 11:35:09
问题 I've installed Visual Studio 2017 and QT 5.8. Now I installed a QT-Add-in(from here) and I wanted to add the Path of QT 5.8 in Qt Options(in Visual Studio). But I get an error like : "This QT version uses an unsupported makefile generator (used: MINGW, supported: MSVN.NET, MSBUILD)" Is there a workaround or a way to fix this problem ? 回答1: The Qt that you're attempting to use has not been compiled with a binary-compatible compiler - either Visual Studio 2015 or Visual Studio 2017. You'll have

Save Mail in MIME format (*.eml) in Outlook Add-In

巧了我就是萌 提交于 2019-12-10 11:35:04
问题 I want to write a little Outlook addin (C#), which saves a selected mail (MailItem) to disk in plain MIME format (.eml). The MailItem.SaveAs() method only allows to save in .msg format. Is there any other (simple) way, to save the mail in eml-format? I want to keep all details of the original mail. I've read something about the Outlook WebServices. Maybe I can search the exchange server for the currently in outlook selected mail and receive it again from exchange and save it as .eml? What

How to hook keypress event in a Word shared add-in?

荒凉一梦 提交于 2019-12-10 10:39:36
问题 I need to be able to get all keypress events before they are passed up to the Word document. I want to do special handling of the keys and depending on what mode the add in is in, the keys may or may not be sent to the Word document. I only want the keypress events that belong to the document, I don't want to hook events for popup windows or other dialog boxes. I have read something about smart tags, but don't know how they work. If I have to subclass the document window, how can I get the

Excel 2010 AddIn not loaded when Excel-Workbook opened with double click

半城伤御伤魂 提交于 2019-12-10 10:35:53
问题 I wrote a Add-In for Excel 2010. It works fine if I open Excel from Start menu. But just if I double click on a Excel Workbook, the AddIn can not be loaded. I checked it in ThisAddIn.cs , the method InternalStartup() has not been involved. Can somebody help me? Thanks! But opening file from command line "excel.exe table1.xlsx" works! 来源: https://stackoverflow.com/questions/10978625/excel-2010-addin-not-loaded-when-excel-workbook-opened-with-double-click