Questions tagged [office-js-helpers]

A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs

A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs (from https://github.com/OfficeDev/office-js-helpers)

113 questions
0
votes
0 answers

MS Powerpoint Addin : Insert Slide from Base 64 Powerpoint addin API does not carry over the original formatting of the slide

https://learn.microsoft.com/en-us/javascript/api/powerpoint/powerpoint.presentation?view=powerpoint-js-preview#powerpoint-powerpoint-presentation-insertslidesfrombase64-member(1) I'm currently using the above Powerpoint Addin API to insert slides…
0
votes
1 answer

Excel Office.js - multiple context menu item control issue

I'm working on a new feature for an existing Excel office add-in. This feature requires a new context menu item, however when I add a new item in manifest, only the first menu item shows. The documentation says you can add "other controls, as…
henry434
  • 97
  • 1
  • 9
0
votes
1 answer

Is there a way to know if a powerpoint shape is selected by the user?

I'm creating an addin on powerpoint using office-js and I don't know if there is a method to check if a shape selected by the user ? I know that in vb.net it looks like this : Dim shape = selection.ShapeRange.Item(1)
0
votes
1 answer

BootstrapToken forMSGraphAccess in Outlook

I want to use SSO in Outlook to get the BookstrapToken with MSGrapAccess and I'm getting the error "13012". In the documentation says that this error is only possible while sideloading, but I also get it once I deploy the addin. I'm not doing…
0
votes
1 answer

insertSlidesFromBase64 Working on Client Powerpoint, But not on Powerpoint for the web

Here is the Code i Used async function insertPptxFromBase64String(chosenFileBase64) { Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, function (asyncResult) { try { if (asyncResult.status ===…
0
votes
1 answer

Not able to add styled text with OOXML

I am creating an office add-in for Word and i am trying to create custom styles for users to style their texts with. I came accross this example of a styled text and went to try it myself. Here is the gist code:…
0
votes
1 answer

read the office add-in manifest file from the react app which is inside the Outlook task pane

I'm looking for a way to read resource strings and URLs from the add-in manifest. Does someone know a way? Thanks!
0
votes
1 answer

How to install Addin Excel made with Angular in Excel

Situation : I'm a newbie in add-in excel, so this could be a stupid question. I made an Excel add-in(Side load) test project by using Angular. I followed the Microsoft tutorial My test project works fine in local environment, but I want to know how…
Yiao SUN
  • 908
  • 1
  • 8
  • 26
0
votes
1 answer

Using Office.js or Office Scripts outside of Excel or Excel Add-in

I am trying to Get the Value of the Active cell in Excel I was able to get the Value by writing a simple Excel Add-in. I was also able to do the same using Office-Scripts Office-Script: function main(workbook: ExcelScript.Workbook) { // Get the…
0
votes
1 answer

PowerPoint retrieve slide data

I am trying to get the PowerPoint Slide content as byte[] or as base64, but support for this scenario in the documentation or library code is missing. In the current implementation, I am downloading the full PowerPoint as in this article, but it is…
Botea Bogdan
  • 192
  • 3
  • 16
0
votes
1 answer

How can I detect a content control without the user selecting the whole thing?

Background I've inserted a bunch of content controls into my word document. Each content control is a bit of text e.g. "Hello world". What I'm trying to do When a user puts their cursor within the content control I want to access the details of the…
0
votes
0 answers

Excel JS Add-In with IE11 - Dialog API stops execution of code until you open F12Chooser or IEChooser

I have an Excel JS Add-In where I am leveraging Dialog API with the displayDialogAsync method. With Edge, it works perfectly and the handler gets triggered and the code runs fine. But if the add-in is loaded in IE11 browser IFrame, the dialog stays…
nikhilism
  • 19
  • 3
0
votes
0 answers

Excel add-in : Delay execution while cell is being edited - not working

I've written the following code which invokes selected function and puts in a selected cell. I've used the delay execution of a custom function till user exits the cell. But this is not working. Function is executing with out waiting for user…
madireddy
  • 107
  • 3
  • 13
0
votes
1 answer

Select text with similar formatting Office JS

I am passing days struggling to find a way using OfficeJS to have the same functionality offered in the Office application by this button. Isn't there an out-of-the-box function or even a little snippet to do this? Thanks!! Select similar formatting…
0
votes
0 answers

Excel crash while trying to insert VSTO addin formula from Office JS Taskpane

I am facing an odd issue while connecting VSTO addin formula with office js taskpane. Below is the scenario There is one VSTO addin which has several formulas defined in it. One newly created office js taskpnae has included as new product and we…