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

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

Related

VSTO Outlook: Create a custom quick access toolbar (QAT) programmatically

I have seen that Outlook has a quick access toolbar (QAT).
You can access it doing below:
And then the QAT appears (see below screenshot, I marked it with a blue rectangle):
So taken into account that a custom task pane (ctp) have some limitations, for example, you cannot remove title bar nor buttons I was thinking about if it is possible to create a QAT programmatically and embed into it an WPF user control.
Is it possible?
No, it is not possible. At least there is no trivial way of getting the job done without Windows API functions involved.
The QAT (Quick Access Toolbar) has a predefined set of controls that can be put inside it. Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

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

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 .

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

disable outlook VSTO plugin icon

I have requirement to disable outlook vsto plugin icon if user open email from saved location . its job is to select highlighted emails from outlook and saved to external crm . There is new requirement that if email is saved on disk and re opened again it still shows the outlook plugin incon , i have to disable the incon if email is opened from disk .
any idea how to achieve this . I user select any email from outlook it should be fine but if email is saved on disk outlook addin icon should be disabled.
Many thanks
As a rule, mail items opened from the disk don't have the EntryID property set. I'd suggest starting from the NewInspector event which is fired whenever a new inspector window is opened, either as a result of user action or through program code. So, you may check whether the EntryID exists and whether item is not composed one which means newly created in Outlook. The PR_MESSAGE_FLAGS property provides flags that can be used to identify whether it is read-only or composed item.
As for the Fluent UI, you need to use the IRibbonUI.Invalidate or IRibbonUI.InvalidateControl methods. You can customize the Ribbon UI by using callback procedures in COM add-ins. For each of the callbacks the add-in implements, the responses are cached. For example, if an add-in writer implements the getImage callback procedure for a button, the function is called once, the image loads, and then if the image needs to be updated, the cached image is used instead of recalling the procedure. This process remains in-place until the add-in signals that the cached values are invalid by using the Invalidate method, at which time, the callback procedure is again called and the return response is cached. The add-in can then force an immediate update of the UI by calling the Refresh method. The getVisible callback should be used for hiding and displaying the ribbon UI dynamically.
The Fluent UI (aka Ribbon UI) is described in-depth in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

Remove Application Ribbon from new SubArea in Microsoft Dynamics CRM 2015

I want to remove the ribbon that automatically creates when a new SubArea is created with XrmToolBox's SiteMap Editor.
See screendump
here.
Do anyone know how to do this?
I solved the problem by using the Application Ribbon. There is some icons that you can hide/unhide at the top of the screen. I think those buttons you automatically get when you create a new SubArea is only shown in the application ribbon, and not in the entities.
Atleast they dissapeared in my solution, by just hiding those buttons in the "home" workspace inside the application ribbon.
There is also some code you can try, but i dont know where :)
Code:
Mscrm.BasicHomeTab.New.NewActivity.Hide
I think its the same code for all buttons, just different names of course.The code above is for the NewActivity button.
I believe that's out-of-box behavior and you can't do anything with it. One thing you can try - open a feature request at Connect portal.

Resources