From 558da09b52a28fdcc461c161293bf87d7b1e3db1 Mon Sep 17 00:00:00 2001 From: Viswajith-SF4658 Date: Tue, 11 Aug 2026 11:44:17 +0530 Subject: [PATCH] Updated Github sample for sections and presentation --- .../.NET/Edit-PowerPoint-presentation/Program.cs | 2 +- .../.NET/Split-PowerPoint-by-sections/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Read-and-save-PowerPoint-presentation/Edit-PowerPoint-presentation/.NET/Edit-PowerPoint-presentation/Program.cs b/Read-and-save-PowerPoint-presentation/Edit-PowerPoint-presentation/.NET/Edit-PowerPoint-presentation/Program.cs index d7a1456f..e9304068 100644 --- a/Read-and-save-PowerPoint-presentation/Edit-PowerPoint-presentation/.NET/Edit-PowerPoint-presentation/Program.cs +++ b/Read-and-save-PowerPoint-presentation/Edit-PowerPoint-presentation/.NET/Edit-PowerPoint-presentation/Program.cs @@ -2,7 +2,7 @@ using System.IO; //Opens the PPTX document. -using IPresentation pptxDoc = Presentation.Open(@"Data/Template.pptx"); +using IPresentation pptxDoc = Presentation.Open(Path.GetFullPath(@"Data/Template.pptx")); //Get the new background picture as a stream. using FileStream bgPictureStream = new FileStream(@"Data/Background.png", FileMode.Open); diff --git a/Sections/Split-PowerPoint-by-Sections/.NET/Split-PowerPoint-by-sections/Program.cs b/Sections/Split-PowerPoint-by-Sections/.NET/Split-PowerPoint-by-sections/Program.cs index 0bd2c418..450bb73d 100644 --- a/Sections/Split-PowerPoint-by-Sections/.NET/Split-PowerPoint-by-sections/Program.cs +++ b/Sections/Split-PowerPoint-by-Sections/.NET/Split-PowerPoint-by-sections/Program.cs @@ -1,7 +1,7 @@ using Syncfusion.Presentation; //Opens the source PPTX document. -IPresentation sourcePptx = Presentation.Open(@"Data/Template.pptx"); +IPresentation sourcePptx = Presentation.Open(Path.GetFullPath(@"Data/Template.pptx")); //Iterates through each section. foreach (ISection section in sourcePptx.Sections)