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)