diff --git a/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Load-and-save-macro-PowerPoint.csproj b/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Load-and-save-macro-PowerPoint.csproj index 19c3817b..9fa373d0 100644 --- a/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Load-and-save-macro-PowerPoint.csproj +++ b/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Load-and-save-macro-PowerPoint.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Output/.gitkeep b/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Program.cs b/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Program.cs index f5332007..f4a4dafa 100644 --- a/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Program.cs +++ b/Macros/Load-and-save-macro-PowerPoint/.NET/Load-and-save-macro-PowerPoint/Program.cs @@ -1,7 +1,7 @@ using Syncfusion.Presentation; //Load or open an PowerPoint Presentation. -using FileStream inputStream = new(Path.GetFullPath(@"../../../Data/Template.pptm"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); +using FileStream inputStream = new(Path.GetFullPath(@"Data/Template.pptm"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing PowerPoint presentation. using IPresentation pptxDoc = Presentation.Open(inputStream); //Add a blank slide to the presentation. @@ -9,5 +9,5 @@ //Add a text box to the slide. IParagraph paragraph = slide.Shapes.AddTextBox(100, 100, 300, 80).TextBody.AddParagraph("Preserve Macros"); //Save the PowerPoint Presentation as stream. -using FileStream outputStream = new(Path.GetFullPath(@"../../../Result.pptm"), FileMode.Create, FileAccess.ReadWrite); +using FileStream outputStream = new(Path.GetFullPath(@"Output/Result.pptm"), FileMode.Create, FileAccess.ReadWrite); pptxDoc.Save(outputStream); \ No newline at end of file diff --git a/Macros/Remove-macros/.NET/Remove-macros/Output/.gitkeep b/Macros/Remove-macros/.NET/Remove-macros/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Macros/Remove-macros/.NET/Remove-macros/Program.cs b/Macros/Remove-macros/.NET/Remove-macros/Program.cs index 41fc4c77..08cca90d 100644 --- a/Macros/Remove-macros/.NET/Remove-macros/Program.cs +++ b/Macros/Remove-macros/.NET/Remove-macros/Program.cs @@ -1,12 +1,12 @@ using Syncfusion.Presentation; //Load or open an PowerPoint Presentation. -using FileStream inputStream = new(Path.GetFullPath(@"../../../Data/Template.pptm"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); +using FileStream inputStream = new(Path.GetFullPath(@"Data/Template.pptm"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing PowerPoint presentation. using IPresentation pptxDoc = Presentation.Open(inputStream); //Check whether the presentation has macros and then removes them. if (pptxDoc.HasMacros) pptxDoc.RemoveMacros(); //Save the PowerPoint Presentation as stream. -using FileStream outputStream = new(Path.GetFullPath(@"../../../Result.pptx"), FileMode.Create, FileAccess.ReadWrite); +using FileStream outputStream = new(Path.GetFullPath(@"Output/Result.pptx"), FileMode.Create, FileAccess.ReadWrite); pptxDoc.Save(outputStream); \ No newline at end of file diff --git a/Macros/Remove-macros/.NET/Remove-macros/Remove-macros.csproj b/Macros/Remove-macros/.NET/Remove-macros/Remove-macros.csproj index b9ad70c1..486767ac 100644 --- a/Macros/Remove-macros/.NET/Remove-macros/Remove-macros.csproj +++ b/Macros/Remove-macros/.NET/Remove-macros/Remove-macros.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + +