vsto

Slide animation when showing/hiding CustomTaskPane in VSTO

狂风中的少年 提交于 2019-12-08 17:55:35
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 well? It's the default behavior beginning with Excel 2013, that the task panes slide in / out. But this

Make shape stay always on first page

杀马特。学长 韩版系。学妹 提交于 2019-12-08 17:23:09
问题 I am developing VSTO application add-in for Word and want to make shape be always on first page on fixed position. Is there a way to do this without actively monitoring state of a shape? Answers that state "it can't be done" with good why explanation, are also welcome. 回答1: If you put your shape to header and check DifferentFirstPageHeaderFooter, page break do not have effect as you need, but the shape will be on background and Page Layout > Breaks > Next Page duplicate the shape to the next

Not a valid Office Add In

好久不见. 提交于 2019-12-08 15:48:14
问题 I developed a new Office 2007 addin using VS 2008 and VSTO. after this I go to Office->Excel Options->AddIns->COM AddIns and GO... If I select the .dll which I ve created I get the error '<path>' is not a valid Office Add In. If I run it using the Visual Studio 2008 at my development machine, it works fine and I see the add-in. I searched so many posts but didn't get a solution. 回答1: Excel kept rejecting the Add-In, so the solution for me was doing it directly via the registry. Save the below

Reason not to use LINQ [closed]

落花浮王杯 提交于 2019-12-08 15:46:53
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Are there any good Reasons not to use LINQ in my projcts? We use .Net 3.5 and VSTO 3.0. 回答1: Personally I can't see why you wouldn't

Add Custom Image to button in excel ribbon

☆樱花仙子☆ 提交于 2019-12-08 13:44:33
问题 I'm developing a microsoft excel addin and added a button, but I need to add custom image to it. How to achieve that <button id="customButton1" label="myLabel" size="large" image="????" /> 回答1: Try using this code snippet in the code-behind: customButton1.Image = new Bitmap("Image.jpg"); OR customButton1.Image = Image.FromFile(@"C:\Image.jpg"); How to: Add Custom Icons to Toolbar and Menu Items Create a new class named ConvertImage. This class uses System.Forms.Axhost to convert an image file

Storyboard Add-In for PowerPoint Unable to Load

与世无争的帅哥 提交于 2019-12-08 13:37:08
问题 I recently installed the Office 2016 32 bit edition on my Windows 10 Enterprise OS. I had a Story Board Add-In with PowerPoint - Office 2013, which now does not work. I can see the Add-In but when I click any of its menu items, I get this message: TF86001: Team Foundation was unable to load the Office Add-In. This may be caused by a Team Foundation Client installation problem or lack of .Net programmability Support in the Office Application. For more information, see the following Microsoft

Center Outlook WPF Add-In

╄→尐↘猪︶ㄣ 提交于 2019-12-08 13:13:58
问题 I have created an Add-In for Outlook using WPF. Everything is working correctly, except for the "Flare." When the WPF Window opens, it's not being centered on the Outlook form, it opens centered on the screen. I have the WindowStartLocation set to CenterOwner, but this doesn't seem to be doing the trick. 回答1: You should be able to get a reference to the current instance of Outlook, access the Application object for that instance and get the Window size, and location (Left, Top) and do some

Two-way communication between VSTO add-in and a Task Pane app (JS/HTML)

五迷三道 提交于 2019-12-08 12:52:43
问题 Is it possible to have a VSTO add-in and a JS/HTML based Task Pane app talk to each other when running inside desktop Office application? The goal would be to bridge capabilities not yet present (or never will be present) in the x-platform Office APIs using VSTO. 回答1: As Evgene mentioned, there is no out-of-the-box functionality for this (though the topic has certainly come up in internal discussions, so I would be very curious to hear your scenario, and particularly how you would handle the

Parse text file and create an excel report

若如初见. 提交于 2019-12-08 11:48:37
问题 My application is supposed to parse a text file (relatively easy) and create an excel spreadsheet report. Should I write a stand alone VB.NET application that saves the excel file, or should I use VSTO? I am unsure if there are any differences in terms of ease of development, usability issues, API functions available, etc. Are there any other programming languages/interfaces/libraries that will allow me to rapidly develop an involved excel spreadsheet? I am talking about things like functions

Develop outlook add-in compatible with multiple versions

[亡魂溺海] 提交于 2019-12-08 11:42:32
问题 I created a VSTO outlook add-in under the outlook 2010. But seems it doesn't work when it was deployed to outlook 2007. The inefficient way to solve the problem is compiling again under the outlook 2007.Is there any better way to make it work in both versions? thanks 回答1: I have the same problem. What I have done is testing at the start of the addin (starup function) wether the version of outlook is 14 (for 2010) or not. But I had to install Office 2007 and compile again in an outlook 2007