office-addins

Automate Powerpoint Macro

血红的双手。 提交于 2019-12-13 02:35:41
问题 I have a PowerPoint Presentation that gets filled with pictures by a VBA script attached to it. I want to automatically open the Presentation and run the macro. Here's what I have tried: turning the script into an add-in as shown here: it ran when I clicked activated it, but never when I simply opened powerpoint. downloaded a pre-built add in, and called my script sub auto_open(). This worked, but because it is a macro enabled file(?), but I have to open powerpoint up and enable the add in

OfficeJS Manifest Type MailApp - can not use WebApplicationInfo

独自空忆成欢 提交于 2019-12-13 01:20:20
问题 I have followed the steps according to doc. The application is registered and I have gained the guid which I want to use in WebApplicationInfo to get the OAuth token. Unfortunately using office addin manifest validator (npm -i -g validate-office-addin) I am getting the error XML Schema Violation: Your manifest does not adhere to the current set of XML schema definitions for Office Add-in manifests. (link: https://aka.ms/add-in-manifest-schema-violation) - Details: The element 'OfficeApp' in

Unable to re-register VSTO Add-in after choosing [Remove] from COM Add-ins window

南笙酒味 提交于 2019-12-12 23:22:25
问题 I am developing a VSTO add-in for Ms Word. Run -> Start (F5) in VS 2017 worked fine. Today I ran my first tests by publishing the add-in (ClickOnce, generating a .vsto file) and setting it up on the same computer I use for developing/debugging. In order to set it up in Word I just double-clicked the .vsto file and get a green-tick confirmation message indicating the customization was successfully installed. I could use the release version no problem. Then I wanted to go back to developing

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

C# Outlook VSTO add-in error while trying to get item in an Exchange setup

时光总嘲笑我的痴心妄想 提交于 2019-12-12 06:36:34
问题 I'm developing an Office VSTO add-in in C# which looks up calendar appointments in Outlook, and reads/writes some data in them. Recently, one of the clients had issues with the add-in, namely they can't read/write the calendar appointment, and it throws an exception : The operation failed. There's not much info from the exception log, but I suspect they have synchronization problems with Exchange. I asked the client, and they said, that they also have a random popup in Outlook as well, which

Office 2016 Addin - Is possible Open remote file on startup addin?

南楼画角 提交于 2019-12-12 05:44:58
问题 Is possible open a remote file (url, xml, binary) ? For example, I open a dummy docx with Add-In (from url) then the Addin retrieve a xml docx from url and put it in opened document (replace document dummy). Is possible? Thanks. P.S.: I create a Addin and I retrieve a xml docx from url on open dummy file but I fail to put into opened document (replace). 回答1: If I understand correctly, you are close to doing what you want. Once you have the docx file, then you need to base64 encode it. Here's

Office.context.mailbox.item.body.setAsync removing original base64 from signatures

左心房为你撑大大i 提交于 2019-12-12 05:17:05
问题 I'm trying to use Office.context.mailbox.item.body.getAsync and Office.context.mailbox.item.body.setAsync Javascript methods in my Outlook add-in to add some content to the mail body. It's working really well, except when the user has an image on its signature. The image disappears and only its alt attribute is shown. If I inspect the html, the <img> element is there, but the src attribute turns into (unknown) instead of showing the original base64. 回答1: I work days on this problem without

Identifying a shape parent in visio

佐手、 提交于 2019-12-12 04:57:01
问题 Hii i have a visio document which is an BPMN template .In that BPMN document i have placed a BPMN shape and also other shapes from Engineering,FLowChart,Networking,Basic shapes etc by choosing Moreshapes-> and so my BPMN visio document looks like below in that BPMN and Task named are a BPMN shapes,Computer is a shape from Network->Computer ,Rectangle is from General->BasicShapes like that the other shape also . (ie) In a BPMN visio document , with the BPMN shape i have the other shapes also.

How replace the text in a huge number of content controls via word-js?

余生颓废 提交于 2019-12-12 04:48:11
问题 I am trying to write a function which takes a list of Rich Text Content Controls and a single string as argument, and which replaces the content of all matching content controls with this string. While this works with a smaller amount of content controls, it fails with documents with a huge amount of them. I have to work with documents with over 700 Content Controls with individual titles. In this case, the code just replaces the first 66X CCs and then aborts with a GeneralException. I assume

office add-in asp.net MVC Application cannot Authenticate against AzureAD getting error: IDX10311

丶灬走出姿态 提交于 2019-12-12 04:05:53
问题 I created a new ASP.NET MVC WebApplication in Visual Studio 2015 with the options to use School or Work Accounts to authenticate against an AzureAD . This worked fine. Then I converted the Project to an App for Office Project as an Excel Task-Pane Add-In. Then when I start the Application it starts an Excel Spreadsheet with a taskpane showing the request to login with Microsoft. When selecting an account or choosing to log-in with another account I get redirected to login.mocrosoft.com in a