How can i open a powerpoint presentation using Powerpoint.createPresentation with a custom title - powerpoint

I'm using PowerPoint.createPresentation to open a new presentation from my officejs addin.
For the PowerPoint.createPresentation i pass the base64 value of another presentation, where i can use Aspose to change the data.
The newly opened presentations are named Presentation1,2,..,n.
I can change somehow the default name of the new presentation?
Thanks

OfficeJS doesn't provide any method for saving the file/presentation. See Office JS Save and Close methods for Word, Excel and PowerPoint for more information.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: Type: product feature request at https://aka.ms/M365dev-suggestions .

Related

How to download attachments in outlook add-ins?

Is it possible to download attachments in outlook add-ins? I mean trigger 'save as' button by javascript. now I can get attachments by using item.attachments and then get base64 with
item.getAttachmentContentAsync
by this way i can download manually. But is it possible to make something like 'save as' calling?
I need something like item.attachments[0].saveAs('directory')
The Office JavaScript API (OfficeJS) doesn't provide anything for triggering built-in commands or saving attachments as a user to the disk. See Get attachments of an Outlook item from the server for more information.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team go through the planning process.

add-in DisplayName font size, section height changes in taskpane and dialog box

We are developing an add-in to encrypt and decrypt mails.
When the taskpane is opened, DisplayName (in manifest) content's size is fixed and we can't modify it like we do in add-in's manifest to change the taskpane DesktopSettings properties.
We have already checked all the documentation related to manifest and office-js but didn't see any way to handle the height of DisplayName content.
I have added the example screenshot below. Is there any way to modify the height/width/font-size of the content in the section highlighted in yellow?
test add-in screenshot
OfficeJS doesn't provide anything for that. There is no way to customize the caption/header of the task pane for Office web add-ins. Moreover, this area is not customizable and every client (application/host) implements its own way to display the information from the manifest.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: Type: product feature request at https://aka.ms/M365dev-suggestions .

How to show outlook add-in in the main pane instead of compose and read context

It's my first time developing add in for outlook, i'm tryng to do an add-in that interact with outlook calendar to find an appointment, but i can only show up the add-in when i create new appointment, is there any way to show it outside compose and read context? like viva insights do?
i found that this can be done with VSTO, but i need it to work also with web outlook and other os, if someone can help me to figure it out i will apreciate.
i tried to do it following the add-in doc
https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points
i can't find an extension point that fits my purpose.
Thank you
Add-ins are only valid in Mail/Calendar individual item context currently. Hence, if no item (email / event) is selected, addins do not show-up or work - it does not know in which context it is suppose to run.
If your scenario requires it to run without email/event context, we suggest you to file a feature request here: https://aka.ms/M365dev-suggestions

Can I access a new presentation from another presentation's add-in?

Using Office.js, I want to create an Add-in ribbon button that opens a new presentation and populates that new presentation with 10 slides when it opens. I am able to create a new presentation using PowerPoint.createPresentation();, but this doesn't return any type of object that would give me access to the new presentation so that I can add the slides to it. How do I get access to the new presentation?
There is currently no way that an add-in can get access to a presentation other than the one that is currently open (that the add-in is running in). Consider proposing this as an idea on Microsoft 365 Developer Platform

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's object model.
The reason I'm looking to do this is if I have an item on it that the PowerPoint client does not support editing of but that Open XML does (and as a result, PowerPoint will display it). I want to set this myself via a managed-addin (VSTO) on the open presentation. An example would be the underline of text (not that I'm looking for this, but it is an example) - in PowerPoint, you cannot make the underline of text a picture <a:blip/>, but in Open XML you can.
Does anyone know how to do this?
I am using both OpenXML SDK 2 and the Object Model to process presentations.
What I do, simplistic as it sounds, is to save the presentation, close it, perform all the XML modifications I need using OpenXML SDK, and then load the presentation back and continue with the Object Model.
Nope, according to Microsoft support: http://www.ureader.com/msg/10972430.aspx

Resources