You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/powerpoint/insert-slides-into-presentation.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Insert slides from another PowerPoint presentation
3
3
description: Learn how to insert slides from one presentation into another.
4
-
ms.date: 11/07/2025
4
+
ms.date: 11/10/2025
5
5
ms.localizationpriority: medium
6
6
---
7
7
@@ -81,21 +81,19 @@ async function insertAllSlides() {
81
81
}
82
82
```
83
83
84
-
You can control some aspects of the insertion result, including where the slides are inserted and whether they get the source or target formatting, by passing an [InsertSlideOptions](/javascript/api/powerpoint/powerpoint.insertslideoptions) object as a second parameter to `insertSlidesFromBase64`. The following is an example. About this code, note:
84
+
You can control some aspects of the insertion result, including where the slides are inserted and whether they get the source or target formatting, by passing an [InsertSlideOptions](/javascript/api/powerpoint/powerpoint.insertslideoptions) object as a second parameter to `insertSlidesFromBase64`. The following is an example. About this code, note:
85
85
86
-
- There are two possible values for the `formatting` property: "UseDestinationTheme" and "KeepSourceFormatting". Optionally, you can use the `InsertSlideFormatting` enum, (e.g., `PowerPoint.InsertSlideFormatting.useDestinationTheme`).
86
+
- There are two possible values for the `formatting` property: "UseDestinationTheme" and "KeepSourceFormatting". Optionally, you can use the `InsertSlideFormatting` enum (e.g., `PowerPoint.InsertSlideFormatting.useDestinationTheme`).
87
87
- The function will insert the slides from the source presentation immediately after the slide specified by the `targetSlideId` property. The value of this property is a string of one of three possible forms: ***nnn*#**, **#*mmmmmmmmm***, or ***nnn*#*mmmmmmmmm***, where *nnn* is the slide's ID (typically 3 digits) and *mmmmmmmmm* is the slide's creation ID (typically 9 digits). Some examples are `267#763315295`, `267#`, and `#763315295`.
@@ -168,3 +168,11 @@ async function insertAfterSelectedSlide() {
168
168
There's no practical way that users can discover the ID or creation IDof a slide in the source presentation. Forthis reason, you can really only use the `sourceSlideIds` property when either you know the source IDs at coding time or your add-in can retrieve them at runtime from some data source. Because users cannot be expected to memorize slide IDs, you also need a way to enable the user to select slides, perhaps by title or by an image, and then correlate each title or image with the slide's ID.
169
169
170
170
Accordingly, the `sourceSlideIds` property is primarily used in presentation template scenarios: The add-in is designed to work with a specific set of presentations that serve as pools of slides that can be inserted. In such a scenario, either you or the customer must create and maintain a data source that correlates a selection criterion (such as titles or images) with slide IDs or slide creation IDs that has been constructed from the set of possible source presentations.
171
+
172
+
## Try it out
173
+
174
+
Try the following interactive sample using the [Script Lab add-in](https://appsource.microsoft.com/product/office/WA104380862).
175
+
176
+
- Insert slides from other presentation
177
+
178
+
To learn more about Script Lab, see [Explore Office JavaScript API using Script Lab](../overview/explore-with-script-lab.md).
Copy file name to clipboardExpand all lines: docs/powerpoint/use-document-themes-in-your-powerpoint-add-ins.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: Use Office document themes in your PowerPoint add-ins
3
3
description: Learn how to visually coordinate themes, such as fonts and colors, to apply to PowerPoint presentations.
4
-
ms.date: 11/07/2025
4
+
ms.date: 11/10/2025
5
5
ms.localizationpriority: medium
6
6
---
7
7
8
8
# Use Office document themes in your PowerPoint add-ins
9
9
10
-
An [Office theme](https://support.microsoft.com/office/83e68627-2c17-454a-9fd8-62deb81951a6) consists, in part, of a visually coordinated set of fonts and colors that you can apply to presentations, documents, worksheets, and emails. To apply or customize the theme of a presentation in PowerPoint, you use the **Themes** and **Variants** groups on **Design** tab of the ribbon. PowerPoint assigns a new blank presentation with the default **Office Theme**, but you can choose other themes available on the **Design** tab, download additional themes from Office.com, or create and customize your own theme.
10
+
An [Office theme](https://support.microsoft.com/office/83e68627-2c17-454a-9fd8-62deb81951a6) consists, in part, of a visually coordinated set of fonts and colors that you can apply to presentations, documents, worksheets, and emails. To apply or customize the theme of a presentation in PowerPoint, use the **Themes** and **Variants** groups on **Design** tab of the ribbon. PowerPoint assigns a new blank presentation with the default **Office Theme**, but you can choose other themes available on the **Design** tab, download additional themes from Office.com, or create and customize your own theme.
11
11
12
12
Using **OfficeThemes.css**, design add-ins that are coordinated with PowerPoint in two ways.
13
13
@@ -21,19 +21,19 @@ Every Office document theme defines 12 colors. Ten of these colors are available
To view or customize the full set of 12 theme colors in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** dropdown list then select **Colors** > **Customize Colors** to display the **Create New Theme Colors** dialog box.
24
+
To view or customize the full set of 12 theme colors in PowerPoint, in the **Variants** group on the **Design** tab, expand the **More** dropdown list then select **Colors** > **Customize Colors** to display the **Create New Theme Colors** dialog box.
25
25
26
26

27
27
28
28
The first four colors are for text and backgrounds. Text that is created with the light colors will always be legible over the dark colors, and text that is created with dark colors will always be legible over the light colors. The next six are accent colors that are always visible over the four potential background colors. The last two colors are for hyperlinks and followed hyperlinks.
29
29
30
30
## Document theme fonts
31
31
32
-
Every Office document theme also defines two fonts -- one for headings and one for body text. PowerPoint uses these fonts to construct automatic text styles. In addition, **Quick Styles** galleries for text and **WordArt** use these same theme fonts. These two fonts are available as the first two selections when you select fonts with the font picker.
32
+
Every Office document theme also defines two fonts: one for headings and one for body text. PowerPoint uses these fonts to construct automatic text styles. In addition, **Quick Styles** galleries for text and **WordArt** use these same theme fonts. These two fonts are available as the first two selections when you select fonts with the font picker.
33
33
34
34

35
35
36
-
To view or customize theme fonts in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** dropdown list then select **Fonts** > **Customize Fonts** to display the **Create New Theme Fonts** dialog box.
36
+
To view or customize theme fonts in PowerPoint, in the **Variants** group on the **Design** tab, expand the **More** dropdown list then select **Fonts** > **Customize Fonts** to display the **Create New Theme Fonts** dialog box.
37
37
38
38

39
39
@@ -54,7 +54,7 @@ Using the **OfficeThemes.css** file with your content add-ins for PowerPoint let
54
54
Use the following steps to add and reference the **OfficeThemes.css** file to your add-in project.
55
55
56
56
> [!NOTE]
57
-
> The steps in this procedure only apply to Visual Studio 2015. If you're using Visual Studio 2019, the **OfficeThemes.css** file is created automatically for any new PowerPoint add-in projects that you create.
57
+
> If you're using Visual Studio 2019 or later, the **OfficeThemes.css** file is created automatically for any new PowerPoint add-in projects that you create.
58
58
59
59
1. In **Solution Explorer**, right-click (or select and hold) the **Content** folder in the _**project_name**_**Web** project, choose **Add**, and then select **Style Sheet**.
60
60
@@ -225,11 +225,11 @@ The **OfficeThemes.css** file provides classes that correspond to the 2 fonts an
225
225
|Class|Description|
226
226
|:-----|:-----|
227
227
|`office-bodyFont-eastAsian`|East Asian name of the body font.|
228
-
|`office-bodyFont-latin`|Latin name of the body font. Default "Calabri"|
228
+
|`office-bodyFont-latin`|Latin name of the body font. Default "Calibri"|
229
229
|`office-bodyFont-script`|Script name of the body font.|
230
230
|`office-bodyFont-localized`|Localized name of the body font. Specifies the default font name according to the culture currently used in Office.|
231
231
|`office-headerFont-eastAsian`|East Asian name of the headers font.|
232
-
|`office-headerFont-latin`|Latin name of the headers font. Default "Calabri Light"|
232
+
|`office-headerFont-latin`|Latin name of the headers font. Default "Calibri Light"|
233
233
|`office-headerFont-script`|Script name of the headers font.|
234
234
|`office-headerFont-localized`|Localized name of the headers font. Specifies the default font name according to the culture currently used in Office.|
0 commit comments