vsto

VSTO Tools: Office 2010 to 2013 upgrade

回眸只為那壹抹淺笑 提交于 2019-12-31 13:01:45
问题 I'm working on a VSTO tools project for Excel. I'm now in the process of upgrading my machine. My "old" laptop was running Windows 7 x64 with Office 2010 and Visual Studio 2012. My new machine has Windows 8 x64 with Office 2013 and Visual Studio 2012. When opening my solution on VS2012, in the new machine, it gives me an error loading the project: Cannot create the project because the application associated with this project type is not installed on this computer. You must install the

VSTO Signed, but still get confirm prompt at install

做~自己de王妃 提交于 2019-12-31 03:25:08
问题 I develop a VSTO addon for Outlook. I sign the addon with a certificate purchased with Verisign Inc. The cert is valid and authorized by a trusted root authority. But when my customers install the addon they are still prompted with "Do you want to install this addon from this publisher?" question. From what I understand Verisign cert is enough to make this go away, am I right? Is this prompt a mandatory in VSTO addon installation? Thanks 回答1: No, the prompt isn't mandatory, but it sounds like

Adding formula to cell Exception from HRESULT: 0x800A03EC

一个人想着一个人 提交于 2019-12-31 03:23:05
问题 I'm trying to add a formula to cell but i got the error Exception from HRESULT: 0x800A03EC There are lots of posts with similar issues however none could help me plus i'm not doing any fancy formula's what i'm doing wrong? Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); workbook = application.Workbooks.Open(Helper.GetLocalInstalationFolder() + @"\IMC.xltx", 0, false, 5, "", "", true, XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0); worksheet =

Mocked object doesn't have all properties shown in Intellisense - in one project but has them in the other

夙愿已清 提交于 2019-12-30 11:49:13
问题 I'm mocking VSTO objects and in one project (I didn't write) it has this code: var listOfSheets = new List<Worksheet>(); var mockSheets = Substitute.For<Sheets>(); mockSheets.Count.Returns(listOfSheets.Count); The Intellisense ToolTip for the mockSheets shows 6 properties: The line with the break point works in this project. However I have the same code in a different project (same references, namespaces, etc.), yet the Intellisense ToolTip for the mockSheets only shows 1 property: I know

Call VBA AddIn macro from VSTO PowerPoint Ribbon

最后都变了- 提交于 2019-12-30 07:23:26
问题 I've been stuck for a few hours on this problem : I am developing a PowerPoint AddIn in C# and I want to use a macro from another AddIn which is a PPAM file. The PPAM file is installed and enabled. In the Application reference I found that I need to use the Application.Run method but I cannot get it working ( nothing happens )... Here is my code: Globals.ThisAddIn.Application.Run("PPspliT.ppam!PPspliT.PPspliT_main", null); PPspliT.ppam is the installed AddIn ( which is located here : C:\Users

How to add a menu item to Excel 2010 Cell Context Menu - old code doesn't work

若如初见. 提交于 2019-12-30 06:40:10
问题 I've tried 3 different code samples and they all fail. Here's the code from a MSFT employee (How to show a context menu on a range), the other two samples have pretty much the exact same code: private void ThisAddIn_Startup(object sender, System.EventArgs e) { CommandBar cellbar = this.Application.CommandBars["Cell"]; CommandBarButton button = (CommandBarButton) cellbar.FindControl(MsoControlType.msoControlButton, 0, "MYRIGHTCLICKMENU", Missing.Value, Missing.Value); if (button == null) { //

How to develop a Microsoft Office AddIn without Visual Studio

若如初见. 提交于 2019-12-29 11:35:26
问题 I'm trying to develop an MS Office Addin in C# .Net and I don't have access to Visual Studio. Instead I'm using SharpDevelop as my IDE, (but my question is equally relevant to anyone developing using any other IDE or compiling from the command line...) I've done a bit of searching for guides on how to develop AddIns, but they all seem to require Visual Studio and follow these steps: Install the Interop Assemblies Create a Visual Studio .Net Project ( I'm unable to do this bit ) Extend the VS

Word VSTO - Change the absolute positions' type?

萝らか妹 提交于 2019-12-29 09:48:29
问题 I use the following VB.NET (VSTO) code to add a shape in MS-Word, Dim app As Word.Application = Globals.ThisAddIn.Application Dim doc As Word.Document = app.ActiveDocument Dim left As Single = CSng(Convert.ToDouble(app.Selection.Information(Word.WdInformation.wdHorizontalPositionRelativeToPage))) Dim top As Single = CSng(Convert.ToDouble(app.Selection.Information(Word.WdInformation.wdVerticalPositionRelativeToPage))) Dim shape As Word.Shape = doc.Shapes.AddShape(1, left, top, 225.1F, 224.5F)

Develop MS Access 2016 AddIn (Ribbon / VSTO) with Visual Studio 2015

我的未来我决定 提交于 2019-12-29 08:21:17
问题 Hope you can help me. I am looking forward to programming my first MS Access AddIn with Visual Studio 2015 (a Ribbon-Bar as VSTO), but not having started I have to stop already. Visual Studio provides templates for almost every office product, but MS Access. I heard it is possible to "change" for example the Excel VSTO-Template so it can be used to develop an MS Access Ribbon. Does anyone know a good instruction how to handle this? How are you developing VSTO for MS Access? Thanks for your

Don't save embed image that contain into attachements (like signature image)

我与影子孤独终老i 提交于 2019-12-29 07:55:08
问题 I work on a VSTO in c#. When I click on button I save attachment in a folder. My problem is : when I have a rich email with an image in the signature, I have a element in my attachment. But I don't want save that image. Outlook (application) hide this attachment in the area attachment ! So why not me :-( My code is very simply : MailItem MailItemSelected = this.OutlookItem; foreach (Attachment a in MailItemSelected.Attachments) { a.SaveAsFile(path + a.FileName); } But I don't find a test for