diff --git a/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Add-an-email-link.csproj b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Add-an-email-link.csproj index 1682aafa..8f1c418c 100644 --- a/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Add-an-email-link.csproj +++ b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Add-an-email-link.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Output/.gitkeep b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Program.cs b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Program.cs index dd83afe3..050f9d80 100644 --- a/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Program.cs +++ b/Paragraphs/Add-an-email-link/.NET/Add-an-email-link/Program.cs @@ -20,7 +20,7 @@ static void Main(string[] args) //Appends Email hyperlink to the paragraph. paragraph.AppendHyperlink("mailto:sales@syncfusion.com", "Sales", HyperlinkType.EMailLink); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Add-bookmark-hyperlink.csproj b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Add-bookmark-hyperlink.csproj index a5f1abfb..c01fedc1 100644 --- a/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Add-bookmark-hyperlink.csproj +++ b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Add-bookmark-hyperlink.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Output/.gitkeep b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Program.cs b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Program.cs index 4d4a33e3..4f4c1bba 100644 --- a/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Program.cs +++ b/Paragraphs/Add-bookmark-hyperlink/.NET/Add-bookmark-hyperlink/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Appends Bookmark hyperlink to the paragraph. paragraph.AppendHyperlink("Introduction", "Bookmark", HyperlinkType.Bookmark); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Add-file-hyperlink.csproj b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Add-file-hyperlink.csproj index 3bf49a1d..453f48be 100644 --- a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Add-file-hyperlink.csproj +++ b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Add-file-hyperlink.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Template.docx b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Data/Template.docx similarity index 100% rename from Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Template.docx rename to Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Data/Template.docx diff --git a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Output/.gitkeep b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Program.cs b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Program.cs index 49ed4470..35d2dfd0 100644 --- a/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Program.cs +++ b/Paragraphs/Add-file-hyperlink/.NET/Add-file-hyperlink/Program.cs @@ -18,9 +18,9 @@ static void Main(string[] args) paragraph.AppendText("File Hyperlinks: "); paragraph = section.AddParagraph(); //Appends hyperlink field to the paragraph. - paragraph.AppendHyperlink(@"Template.docx", "File", HyperlinkType.FileLink); + paragraph.AppendHyperlink(@"Data/Template.docx", "File", HyperlinkType.FileLink); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-image-caption/.NET/Add-image-caption/Add-image-caption.csproj b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Add-image-caption.csproj index 72254f6a..fea6ba89 100644 --- a/Paragraphs/Add-image-caption/.NET/Add-image-caption/Add-image-caption.csproj +++ b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Add-image-caption.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Paragraphs/Add-image-caption/.NET/Add-image-caption/Output/.gitkeep b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-image-caption/.NET/Add-image-caption/Program.cs b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Program.cs index 78da4438..2ba1c427 100644 --- a/Paragraphs/Add-image-caption/.NET/Add-image-caption/Program.cs +++ b/Paragraphs/Add-image-caption/.NET/Add-image-caption/Program.cs @@ -19,7 +19,7 @@ static void Main(string[] args) IWParagraph paragraph = section.AddParagraph(); paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; //Adds image to the paragraph. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Google.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Google.png"), FileMode.Open, FileAccess.ReadWrite); IWPicture picture = paragraph.AppendPicture(imageStream); //Adds Image caption. IWParagraph lastParagragh = picture.AddCaption("Figure", CaptionNumberingFormat.Roman, CaptionPosition.AfterImage); @@ -33,7 +33,7 @@ static void Main(string[] args) paragraph = section.AddParagraph(); paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; //Adds image to the paragraph. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Yahoo.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Yahoo.png"), FileMode.Open, FileAccess.ReadWrite); picture = paragraph.AppendPicture(imageStream); //Adds Image caption. lastParagragh = picture.AddCaption("Figure", CaptionNumberingFormat.Roman, CaptionPosition.AfterImage); @@ -44,7 +44,7 @@ static void Main(string[] args) //Updates the fields in Word document. document.UpdateDocumentFields(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Add-image-hyperlink.csproj b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Add-image-hyperlink.csproj index b7663ef5..25afea8a 100644 --- a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Add-image-hyperlink.csproj +++ b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Add-image-hyperlink.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Mountain-200.jpg b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Data/Mountain-200.jpg similarity index 100% rename from Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Mountain-200.jpg rename to Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Data/Mountain-200.jpg diff --git a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Output/.gitkeep b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Program.cs b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Program.cs index 8b4f4998..85c9be67 100644 --- a/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Program.cs +++ b/Paragraphs/Add-image-hyperlink/.NET/Add-image-hyperlink/Program.cs @@ -19,12 +19,12 @@ static void Main(string[] args) paragraph = section.AddParagraph(); //Creates a new image instance and load image. WPicture picture = new WPicture(document); - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Mountain-200.jpg"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Mountain-200.jpg"), FileMode.Open, FileAccess.ReadWrite); picture.LoadImage(imageStream); //Appends new image hyperlink to the paragraph. paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-image/.NET/Add-image/Add-image.csproj b/Paragraphs/Add-image/.NET/Add-image/Add-image.csproj index 8b93e19a..82a7d5fb 100644 --- a/Paragraphs/Add-image/.NET/Add-image/Add-image.csproj +++ b/Paragraphs/Add-image/.NET/Add-image/Add-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Add-image/.NET/Add-image/Image.png b/Paragraphs/Add-image/.NET/Add-image/Data/Image.png similarity index 100% rename from Paragraphs/Add-image/.NET/Add-image/Image.png rename to Paragraphs/Add-image/.NET/Add-image/Data/Image.png diff --git a/Paragraphs/Add-image/.NET/Add-image/Output/.gitkeep b/Paragraphs/Add-image/.NET/Add-image/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Paragraphs/Add-image/.NET/Add-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-image/.NET/Add-image/Program.cs b/Paragraphs/Add-image/.NET/Add-image/Program.cs index f043672c..3d1674a9 100644 --- a/Paragraphs/Add-image/.NET/Add-image/Program.cs +++ b/Paragraphs/Add-image/.NET/Add-image/Program.cs @@ -16,13 +16,13 @@ static void Main(string[] args) //Adds new paragraph to the section. IWParagraph firstParagraph = section.AddParagraph(); //Adds image to the paragraph. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); IWPicture picture = firstParagraph.AppendPicture(imageStream); //Sets height and width for the image. picture.Height = 100; picture.Width = 200; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Convert-RTF-to-PDF.csproj b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Convert-RTF-to-PDF.csproj index 40c7283a..423cedc1 100644 --- a/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Convert-RTF-to-PDF.csproj +++ b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Convert-RTF-to-PDF.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Output/.gitkeep b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Program.cs b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Program.cs index 998ba49c..3b021afd 100644 --- a/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Program.cs +++ b/RTF-conversions/Convert-RTF-to-PDF/.NET/Convert-RTF-to-PDF/Program.cs @@ -3,7 +3,7 @@ using Syncfusion.Pdf; using System.Reflection.Metadata; -using (FileStream docStream = new FileStream(@"../../../Data/Input.rtf", FileMode.Open, FileAccess.Read)) +using (FileStream docStream = new FileStream(@"Data/Input.rtf", FileMode.Open, FileAccess.Read)) { //Loads file stream into Word document using (WordDocument wordDocument = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -17,7 +17,7 @@ render.Dispose(); wordDocument.Dispose(); //Saves the PDF file - using (FileStream outputStream = new FileStream(@"../../../Data/Output.pdf", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(@"Data/Output.pdf", FileMode.Create, FileAccess.Write)) { pdfDocument.Save(outputStream); } diff --git a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Convert-RTF-to-Word.csproj b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Convert-RTF-to-Word.csproj index 8330c3d0..a6db2962 100644 --- a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Convert-RTF-to-Word.csproj +++ b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Convert-RTF-to-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Input.rtf b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Data/Input.rtf similarity index 100% rename from RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Input.rtf rename to RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Data/Input.rtf diff --git a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Output/.gitkeep b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Program.cs b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Program.cs index 61efb900..8b149cd4 100644 --- a/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Program.cs +++ b/RTF-conversions/Convert-RTF-to-Word/.NET/Convert-RTF-to-Word/Program.cs @@ -9,12 +9,12 @@ class Program static void Main(string[] args) { //Loads an existing Word document into DocIO instance. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Input.rtf"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.rtf"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Rtf)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../RtfToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/RtfToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Convert-Word-to-RTF.csproj b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Convert-Word-to-RTF.csproj index 13b2b90d..cbde1d70 100644 --- a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Convert-Word-to-RTF.csproj +++ b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Convert-Word-to-RTF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Template.docx b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Data/Template.docx similarity index 100% rename from RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Template.docx rename to RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Data/Template.docx diff --git a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Output/.gitkeep b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Program.cs b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Program.cs index 93f09e98..733606f9 100644 --- a/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Program.cs +++ b/RTF-conversions/Convert-Word-to-RTF/.NET/Convert-Word-to-RTF/Program.cs @@ -9,12 +9,12 @@ class Program static void Main(string[] args) { //Loads an existing Word document into DocIO instance. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToRtf.rtf"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToRtf.rtf"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Rtf); diff --git a/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Open-Word-document-from-url.csproj b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Open-Word-document-from-url.csproj index dd5083ad..90739b67 100644 --- a/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Open-Word-document-from-url.csproj +++ b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Open-Word-document-from-url.csproj @@ -10,4 +10,16 @@ + + + Always + + + + + + Always + + + diff --git a/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Output/.gitkeep b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Program.cs b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Program.cs index 15bd967f..245b0a7e 100644 --- a/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Program.cs +++ b/Read-and-Save-document/Open-Word-document-from-url/.NET/Open-Word-document-from-url/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) //Opens the template document from the MemoryStream. document.Open(ms, FormatType.Doc); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Template.docx b/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Data/Template.docx similarity index 100% rename from Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Template.docx rename to Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Data/Template.docx diff --git a/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Open-and-read-Word-document.csproj b/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Open-and-read-Word-document.csproj index 591bcb34..ca7f1e7e 100644 --- a/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Open-and-read-Word-document.csproj +++ b/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Open-and-read-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Program.cs b/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Program.cs index 94ad0e30..634213b5 100644 --- a/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Program.cs +++ b/Read-and-Save-document/Open-and-read-Word-document/.NET/Open-and-read-Word-document/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(inputFileStream, FormatType.Automatic)) diff --git a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Access-header-and-footer.csproj b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Access-header-and-footer.csproj index 2c7667c0..6788a769 100644 --- a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Access-header-and-footer.csproj +++ b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Access-header-and-footer.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Template.docx b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Data/Template.docx similarity index 100% rename from Sections/Access-header-and-footer/.NET/Access-header-and-footer/Template.docx rename to Sections/Access-header-and-footer/.NET/Access-header-and-footer/Data/Template.docx diff --git a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Output/.gitkeep b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Program.cs b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Program.cs index 64ec0266..cd055464 100644 --- a/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Program.cs +++ b/Sections/Access-header-and-footer/.NET/Access-header-and-footer/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -28,7 +28,7 @@ static void Main(string[] args) sec.HeadersFooters.Footer.Paragraphs.Add(footerParagraph); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Add-continuous-sections-in-Word.csproj b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Add-continuous-sections-in-Word.csproj index 0d210bec..1cb35942 100644 --- a/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Add-continuous-sections-in-Word.csproj +++ b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Add-continuous-sections-in-Word.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Output/.gitkeep b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Program.cs b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Program.cs index ed0265cb..be4469a6 100644 --- a/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Program.cs +++ b/Sections/Add-continuous-sections-in-Word/.NET/Add-continuous-sections-in-Word/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) //Appends the text to the created paragraph. paragraph.AppendText(paraText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Add-line-numbers/.NET/Add-line-numbers/Add-line-numbers.csproj b/Sections/Add-line-numbers/.NET/Add-line-numbers/Add-line-numbers.csproj index 54558498..c3dd8b8b 100644 --- a/Sections/Add-line-numbers/.NET/Add-line-numbers/Add-line-numbers.csproj +++ b/Sections/Add-line-numbers/.NET/Add-line-numbers/Add-line-numbers.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Sections/Add-line-numbers/.NET/Add-line-numbers/Input.docx b/Sections/Add-line-numbers/.NET/Add-line-numbers/Data/Input.docx similarity index 100% rename from Sections/Add-line-numbers/.NET/Add-line-numbers/Input.docx rename to Sections/Add-line-numbers/.NET/Add-line-numbers/Data/Input.docx diff --git a/Sections/Add-line-numbers/.NET/Add-line-numbers/Output/.gitkeep b/Sections/Add-line-numbers/.NET/Add-line-numbers/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Add-line-numbers/.NET/Add-line-numbers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Add-line-numbers/.NET/Add-line-numbers/Program.cs b/Sections/Add-line-numbers/.NET/Add-line-numbers/Program.cs index 85befa63..3c28fa1f 100644 --- a/Sections/Add-line-numbers/.NET/Add-line-numbers/Program.cs +++ b/Sections/Add-line-numbers/.NET/Add-line-numbers/Program.cs @@ -9,7 +9,7 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream inputStream = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -27,7 +27,7 @@ static void Main(string[] args) section.PageSetup.LineNumberingStep = 2; } //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Add-page-number-in-footer.csproj b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Add-page-number-in-footer.csproj index e6e078b3..f6a0d9ba 100644 --- a/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Add-page-number-in-footer.csproj +++ b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Add-page-number-in-footer.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Output/.gitkeep b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Program.cs b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Program.cs index 104a584b..1ae1cd4f 100644 --- a/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Program.cs +++ b/Sections/Add-page-number-in-footer/.NET/Add-page-number-in-footer/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Third Page ] \r\r" + paraText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Add-sections-in-Word-document.csproj b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Add-sections-in-Word-document.csproj index e2205fdd..71bad889 100644 --- a/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Add-sections-in-Word-document.csproj +++ b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Add-sections-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Output/.gitkeep b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Program.cs b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Program.cs index ea2b9628..bbcce07c 100644 --- a/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Program.cs +++ b/Sections/Add-sections-in-Word-document/.NET/Add-sections-in-Word-document/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) //Appends the text to the created paragraph. paragraph.AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Apply-page-borders/.NET/Apply-page-borders/Apply-page-borders.csproj b/Sections/Apply-page-borders/.NET/Apply-page-borders/Apply-page-borders.csproj index 081dbec9..2f83ab80 100644 --- a/Sections/Apply-page-borders/.NET/Apply-page-borders/Apply-page-borders.csproj +++ b/Sections/Apply-page-borders/.NET/Apply-page-borders/Apply-page-borders.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Apply-page-borders/.NET/Apply-page-borders/Output/.gitkeep b/Sections/Apply-page-borders/.NET/Apply-page-borders/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Apply-page-borders/.NET/Apply-page-borders/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Apply-page-borders/.NET/Apply-page-borders/Program.cs b/Sections/Apply-page-borders/.NET/Apply-page-borders/Program.cs index 251b9978..aa6b5eb0 100644 --- a/Sections/Apply-page-borders/.NET/Apply-page-borders/Program.cs +++ b/Sections/Apply-page-borders/.NET/Apply-page-borders/Program.cs @@ -29,7 +29,7 @@ static void Main(string[] args) IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to file the stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Change-section-break-as-page-break.csproj b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Change-section-break-as-page-break.csproj index f09a2d37..bec1ed6c 100644 --- a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Change-section-break-as-page-break.csproj +++ b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Change-section-break-as-page-break.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Input.docx b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Data/Input.docx similarity index 100% rename from Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Input.docx rename to Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Data/Input.docx diff --git a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Output/.gitkeep b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Program.cs b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Program.cs index c71cd9b7..c6a575c2 100644 --- a/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Program.cs +++ b/Sections/Change-section-break-as-page-break/.NET/Change-section-break-as-page-break/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Replace the section break with page break in the Word document. ReplaceSectionBreakWithPageBreak(document); //Create file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Create-multi-column-document.csproj b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Create-multi-column-document.csproj index ad49a7a4..dad72b16 100644 --- a/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Create-multi-column-document.csproj +++ b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Create-multi-column-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Output/.gitkeep b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Program.cs b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Program.cs index 46cbafb0..b9e94f18 100644 --- a/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Program.cs +++ b/Sections/Create-multi-column-document/.NET/Create-multi-column-document/Program.cs @@ -39,7 +39,7 @@ static void Main(string[] args) //Appends the text to the created paragraph. paragraph.AppendText(paraText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Different-header-footer-for-last-page.csproj b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Different-header-footer-for-last-page.csproj index 2237809d..ad860e83 100644 --- a/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Different-header-footer-for-last-page.csproj +++ b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Different-header-footer-for-last-page.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Output/.gitkeep b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Program.cs b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Program.cs index dfb7593c..3e6da0a5 100644 --- a/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Program.cs +++ b/Sections/Different-header-footer-for-last-page/.NET/Different-header-footer-for-last-page/Program.cs @@ -39,7 +39,7 @@ static void Main(string[] args) paragraph = section.HeadersFooters.Footer.AddParagraph(); paragraph.AppendText("[ Third Page Footer ]"); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Document-with-different-page-settings.csproj b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Document-with-different-page-settings.csproj index c4cf42bf..172d80c2 100644 --- a/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Document-with-different-page-settings.csproj +++ b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Document-with-different-page-settings.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Output/.gitkeep b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Program.cs b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Program.cs index 6845ec97..13816f31 100644 --- a/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Program.cs +++ b/Sections/Document-with-different-page-settings/.NET/Document-with-different-page-settings/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) //Appends the text to the paragraph. paragraph.AppendText(paraText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Format-page-numbers/.NET/Format-page-numbers/Format-page-numbers.csproj b/Sections/Format-page-numbers/.NET/Format-page-numbers/Format-page-numbers.csproj index 62604684..bbc237b5 100644 --- a/Sections/Format-page-numbers/.NET/Format-page-numbers/Format-page-numbers.csproj +++ b/Sections/Format-page-numbers/.NET/Format-page-numbers/Format-page-numbers.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Format-page-numbers/.NET/Format-page-numbers/Output/.gitkeep b/Sections/Format-page-numbers/.NET/Format-page-numbers/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Format-page-numbers/.NET/Format-page-numbers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Format-page-numbers/.NET/Format-page-numbers/Program.cs b/Sections/Format-page-numbers/.NET/Format-page-numbers/Program.cs index c61f3c0c..8da93ffc 100644 --- a/Sections/Format-page-numbers/.NET/Format-page-numbers/Program.cs +++ b/Sections/Format-page-numbers/.NET/Format-page-numbers/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) //Append the text to the created paragraph. paragraph.AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Header-and-footers-for-first-page.csproj b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Header-and-footers-for-first-page.csproj index 6a206155..c9792dbf 100644 --- a/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Header-and-footers-for-first-page.csproj +++ b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Header-and-footers-for-first-page.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Output/.gitkeep b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Program.cs b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Program.cs index 4d5835ed..2ad6dd4a 100644 --- a/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Program.cs +++ b/Sections/Header-and-footers-for-first-page/.NET/Header-and-footers-for-first-page/Program.cs @@ -41,7 +41,7 @@ static void Main(string[] args) paragraph = section.HeadersFooters.OddFooter.AddParagraph(); paragraph.AppendText("[ Default Page Footer ]"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Link-previous-section/.NET/Link-previous-section/Link-previous-section.csproj b/Sections/Link-previous-section/.NET/Link-previous-section/Link-previous-section.csproj index 75ba2641..63c5ab12 100644 --- a/Sections/Link-previous-section/.NET/Link-previous-section/Link-previous-section.csproj +++ b/Sections/Link-previous-section/.NET/Link-previous-section/Link-previous-section.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Link-previous-section/.NET/Link-previous-section/Output/.gitkeep b/Sections/Link-previous-section/.NET/Link-previous-section/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Link-previous-section/.NET/Link-previous-section/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Link-previous-section/.NET/Link-previous-section/Program.cs b/Sections/Link-previous-section/.NET/Link-previous-section/Program.cs index 7f24892b..d3e672b4 100644 --- a/Sections/Link-previous-section/.NET/Link-previous-section/Program.cs +++ b/Sections/Link-previous-section/.NET/Link-previous-section/Program.cs @@ -43,7 +43,7 @@ static void Main(string[] args) paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Third Page ] \r\r" + paraText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/DestinationDocument.docx b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Data/DestinationDocument.docx similarity index 100% rename from Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/DestinationDocument.docx rename to Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Data/DestinationDocument.docx diff --git a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/SourceDocument.docx b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Data/SourceDocument.docx similarity index 100% rename from Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/SourceDocument.docx rename to Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Data/SourceDocument.docx diff --git a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Merge-documents-without-import-headers.csproj b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Merge-documents-without-import-headers.csproj index 198401a6..e6becaad 100644 --- a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Merge-documents-without-import-headers.csproj +++ b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Merge-documents-without-import-headers.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Output/.gitkeep b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Program.cs b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Program.cs index b087636b..2d56b236 100644 --- a/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Program.cs +++ b/Sections/Merge-documents-without-import-headers/.NET/Merge-documents-without-import-headers/Program.cs @@ -9,13 +9,13 @@ class Program static void Main(string[] args) { //Load the destination Word document as a stream. -            using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) +            using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) {                 //Open the destination Word document.                 using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) { //Load the source Word document as a stream. - using (FileStream sourceDocumentPathStream = new FileStream(Path.GetFullPath(@"../../../SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceDocumentPathStream = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Open the source Word document. using (WordDocument sourceDocument = new WordDocument(sourceDocumentPathStream, FormatType.Docx)) @@ -41,7 +41,7 @@ static void Main(string[] args) } }                     //Create a file stream. -                    using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) +                    using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) {                         //Save the Word document to the file stream.                         destinationDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Odd-and-even-page-header-footer.csproj b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Odd-and-even-page-header-footer.csproj index b4e771c6..17d54fdc 100644 --- a/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Odd-and-even-page-header-footer.csproj +++ b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Odd-and-even-page-header-footer.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Output/.gitkeep b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Program.cs b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Program.cs index 9e95e743..2316a173 100644 --- a/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Program.cs +++ b/Sections/Odd-and-even-page-header-footer/.NET/Odd-and-even-page-header-footer/Program.cs @@ -41,7 +41,7 @@ static void Main(string[] args) paragraph = section.HeadersFooters.EvenFooter.AddParagraph(); paragraph.AppendText("[ Even Page Footer ]"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Page-setup-properties/.NET/Page-setup-properties/Output/.gitkeep b/Sections/Page-setup-properties/.NET/Page-setup-properties/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Page-setup-properties/.NET/Page-setup-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Page-setup-properties/.NET/Page-setup-properties/Page-setup-properties.csproj b/Sections/Page-setup-properties/.NET/Page-setup-properties/Page-setup-properties.csproj index 28c62c2c..e98db6a8 100644 --- a/Sections/Page-setup-properties/.NET/Page-setup-properties/Page-setup-properties.csproj +++ b/Sections/Page-setup-properties/.NET/Page-setup-properties/Page-setup-properties.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Sections/Page-setup-properties/.NET/Page-setup-properties/Program.cs b/Sections/Page-setup-properties/.NET/Page-setup-properties/Program.cs index 53a0d4d1..207fef21 100644 --- a/Sections/Page-setup-properties/.NET/Page-setup-properties/Program.cs +++ b/Sections/Page-setup-properties/.NET/Page-setup-properties/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Appends the text to the created paragraph. paragraph.AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Template.docx b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Data/Template.docx similarity index 100% rename from Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Template.docx rename to Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Data/Template.docx diff --git a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Output/.gitkeep b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Program.cs b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Program.cs index f99a6ac9..bf666822 100644 --- a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Program.cs +++ b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) footer.ChildEntities.Clear(); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Remove-footers-in-Word-document.csproj b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Remove-footers-in-Word-document.csproj index 1b51b763..ff376262 100644 --- a/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Remove-footers-in-Word-document.csproj +++ b/Sections/Remove-footers-in-Word-document/.NET/Remove-footers-in-Word-document/Remove-footers-in-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Input.docx b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Data/Input.docx similarity index 100% rename from Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Input.docx rename to Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Data/Input.docx diff --git a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Output/.gitkeep b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Program.cs b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Program.cs index 7ed2a49e..80f9fec0 100644 --- a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Program.cs +++ b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an input Word template. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -30,7 +30,7 @@ static void Main(string[] args) section.HeadersFooters.EvenFooter.ChildEntities.Clear(); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Remove-headers-and-footers.csproj b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Remove-headers-and-footers.csproj index 0261021a..d89c458d 100644 --- a/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Remove-headers-and-footers.csproj +++ b/Sections/Remove-headers-and-footers/.NET/Remove-headers-and-footers/Remove-headers-and-footers.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Output/.gitkeep b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Program.cs b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Program.cs index f377cc38..896753a8 100644 --- a/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Program.cs +++ b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO; //Open an existing document -using (FileStream inputStream = new FileStream(@"../../../Data/Template.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream(@"Data/Template.docx", FileMode.Open, FileAccess.Read)) { using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) { @@ -31,7 +31,7 @@ section.HeadersFooters.EvenFooter.AddParagraph(); //Save the Word document - using (FileStream outputStream = new FileStream(@"../../../Output.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(@"Output/Output.docx", FileMode.Create, FileAccess.Write)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Remove-headers-footers-in-section.csproj b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Remove-headers-footers-in-section.csproj index e21b1197..bfe93336 100644 --- a/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Remove-headers-footers-in-section.csproj +++ b/Sections/Remove-headers-footers-in-section/.NET/Remove-headers-footers-in-section/Remove-headers-footers-in-section.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Template.docx b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Data/Template.docx similarity index 100% rename from Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Template.docx rename to Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Data/Template.docx diff --git a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Output/.gitkeep b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Program.cs b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Program.cs index 19c24190..f1b88299 100644 --- a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Program.cs +++ b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) header.ChildEntities.Clear(); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Remove-headers-in-Word-document.csproj b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Remove-headers-in-Word-document.csproj index f55c17c3..048663dc 100644 --- a/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Remove-headers-in-Word-document.csproj +++ b/Sections/Remove-headers-in-Word-document/.NET/Remove-headers-in-Word-document/Remove-headers-in-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Template.docx b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Data/Template.docx similarity index 100% rename from Sections/Remove-section-from-document/.NET/Remove-section-from-document/Template.docx rename to Sections/Remove-section-from-document/.NET/Remove-section-from-document/Data/Template.docx diff --git a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Output/.gitkeep b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Program.cs b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Program.cs index 2c082741..9e69e18b 100644 --- a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Program.cs +++ b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an input Word template. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Removes the second section from the collection. document.Sections.RemoveAt(1); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Remove-section-from-document.csproj b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Remove-section-from-document.csproj index 847c8f90..537dc543 100644 --- a/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Remove-section-from-document.csproj +++ b/Sections/Remove-section-from-document/.NET/Remove-section-from-document/Remove-section-from-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Set-different-orientation/.NET/Set-different-orientation/Output/.gitkeep b/Sections/Set-different-orientation/.NET/Set-different-orientation/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Set-different-orientation/.NET/Set-different-orientation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Set-different-orientation/.NET/Set-different-orientation/Program.cs b/Sections/Set-different-orientation/.NET/Set-different-orientation/Program.cs index 7213d5c7..ceb6a593 100644 --- a/Sections/Set-different-orientation/.NET/Set-different-orientation/Program.cs +++ b/Sections/Set-different-orientation/.NET/Set-different-orientation/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO; //Open an existing document -using (FileStream inputStream = new FileStream(@"../../../Data/Template.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream(@"Data/Template.docx", FileMode.Open, FileAccess.Read)) { using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) { @@ -13,7 +13,7 @@ document.Sections[3].PageSetup.Orientation = PageOrientation.Landscape; //Save the Word document - using (FileStream outputStream = new FileStream(@"../../../Output.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(@"Output/Output.docx", FileMode.Create, FileAccess.Write)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Sections/Set-different-orientation/.NET/Set-different-orientation/Set-different-orientation.csproj b/Sections/Set-different-orientation/.NET/Set-different-orientation/Set-different-orientation.csproj index db0de900..5df7e0ac 100644 --- a/Sections/Set-different-orientation/.NET/Set-different-orientation/Set-different-orientation.csproj +++ b/Sections/Set-different-orientation/.NET/Set-different-orientation/Set-different-orientation.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Image.png b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Data/Image.png similarity index 100% rename from Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Image.png rename to Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Data/Image.png diff --git a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Output/.gitkeep b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Program.cs b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Program.cs index 89848b04..de89de24 100644 --- a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Program.cs +++ b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Program.cs @@ -28,12 +28,12 @@ static void Main(string[] args) //Inserts the first page header. paragraph = section.HeadersFooters.FirstPageHeader.AddParagraph(); //Adds image to the paragraph. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); IWPicture picture = paragraph.AppendPicture(imageStream); //Sets the text wrapping style as Behind the text. picture.TextWrappingStyle = TextWrappingStyle.Behind; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj index 7d09a483..b555f039 100644 --- a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj +++ b/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Output/.gitkeep b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Program.cs b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Program.cs index fadd74b7..54b7c6f4 100644 --- a/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Program.cs +++ b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Program.cs @@ -9,7 +9,7 @@ class Program static void Main(string[] args) { //Open an existing Word document. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -18,7 +18,7 @@ static void Main(string[] args) //Add a paragraph to the header. IWParagraph paragraph = section.HeadersFooters.Header.AddParagraph(); // Get the image stream. - FileStream imageStream = new FileStream(@"../../../Data/Logo.jpg", FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(@"Data/Logo.jpg", FileMode.Open, FileAccess.Read); //Append the picture to the created paragraph. IWPicture picture = paragraph.AppendPicture(imageStream); //Set the picture properties. @@ -39,7 +39,7 @@ static void Main(string[] args) textRange.CharacterFormat.TextColor = Syncfusion.Drawing.Color.Red; paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Left; - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save a Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Set-name-and-logo-in-header.csproj b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Set-name-and-logo-in-header.csproj index b916f6f1..05498f3f 100644 --- a/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Set-name-and-logo-in-header.csproj +++ b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Set-name-and-logo-in-header.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Output/.gitkeep b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Program.cs b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Program.cs index ef1f1219..6c368941 100644 --- a/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Program.cs +++ b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Program.cs @@ -33,7 +33,7 @@ static void Main(string[] args) paragraph = section.HeadersFooters.OddFooter.AddParagraph(); paragraph.AppendText("[ Default Page Footer ]"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Simple-headers-and-footers.csproj b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Simple-headers-and-footers.csproj index 1df6a70b..be84dc11 100644 --- a/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Simple-headers-and-footers.csproj +++ b/Sections/Simple-headers-and-footers/.NET/Simple-headers-and-footers/Simple-headers-and-footers.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Allow-editing-comments-only.csproj b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Allow-editing-comments-only.csproj index 72b6e112..cca3ef8a 100644 --- a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Allow-editing-comments-only.csproj +++ b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Allow-editing-comments-only.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Template.docx b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Data/Template.docx similarity index 100% rename from Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Template.docx rename to Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Data/Template.docx diff --git a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Output/.gitkeep b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Program.cs b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Program.cs index e23a90db..54b131e0 100644 --- a/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Program.cs +++ b/Security/Allow-editing-comments-only/.NET/Allow-editing-comments-only/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Opens the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Sets "Allow only Comments" protection to Word document. document.ProtectionType = Syncfusion.DocIO.ProtectionType.AllowOnlyComments; //Creates file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Allow-editing-form-fields-only.csproj b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Allow-editing-form-fields-only.csproj index 5886f313..bfa9afdc 100644 --- a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Allow-editing-form-fields-only.csproj +++ b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Allow-editing-form-fields-only.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Template.docx b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Data/Template.docx similarity index 100% rename from Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Template.docx rename to Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Data/Template.docx diff --git a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Output/.gitkeep b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Program.cs b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Program.cs index a76d13bd..19789c95 100644 --- a/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Program.cs +++ b/Security/Allow-editing-form-fields-only/.NET/Allow-editing-form-fields-only/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Opens the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Sets the protection with password and it allows only to modify the form fields type. document.Protect(ProtectionType.AllowOnlyFormFields, "password"); //Creates file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"OutPut/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Template.docx b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Data/Template.docx similarity index 100% rename from Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Template.docx rename to Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Data/Template.docx diff --git a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Encrypt-Word-document-with-password.csproj b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Encrypt-Word-document-with-password.csproj index bf6c789a..d9f0a4fd 100644 --- a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Encrypt-Word-document-with-password.csproj +++ b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Encrypt-Word-document-with-password.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Output/.gitkeep b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Program.cs b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Program.cs index a1e4e1cb..51de6634 100644 --- a/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Program.cs +++ b/Security/Encrypt-Word-document-with-password/.NET/Encrypt-Word-document-with-password/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Opens the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Encrypts the Word document with a password. document.EncryptDocument("syncfusion"); //Creates file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Template.docx b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Data/Template.docx similarity index 100% rename from Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Template.docx rename to Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Data/Template.docx diff --git a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Open-encrypted-Word-document.csproj b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Open-encrypted-Word-document.csproj index cf6b85a8..644138d2 100644 --- a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Open-encrypted-Word-document.csproj +++ b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Open-encrypted-Word-document.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Output/.gitkeep b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Program.cs b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Program.cs index 5c9f5982..663e006e 100644 --- a/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Program.cs +++ b/Security/Open-encrypted-Word-document/.NET/Open-encrypted-Word-document/Program.cs @@ -9,13 +9,13 @@ class Program static void Main(string[] args) { //Opens an existing document from stream. - using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an encrypted Word document. using (WordDocument document = new WordDocument(inputFileStream, "syncfusion")) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Template.docx b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Data/Template.docx similarity index 100% rename from Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Template.docx rename to Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Data/Template.docx diff --git a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Output/.gitkeep b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Program.cs b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Program.cs index 37565b21..3b83be5f 100644 --- a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Program.cs +++ b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Opens an encrypted Word document. using (WordDocument document = new WordDocument(fileStream, "syncfusion")) @@ -16,7 +16,7 @@ static void Main(string[] args) //Removes encryption in Word document. document.RemoveEncryption(); //Creates file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Remove-encryption-from-Word-document.csproj b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Remove-encryption-from-Word-document.csproj index 43e8184e..43129e1c 100644 --- a/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Remove-encryption-from-Word-document.csproj +++ b/Security/Remove-encryption-from-Word-document/.NET/Remove-encryption-from-Word-document/Remove-encryption-from-Word-document.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Add-group-shape-in-Word.csproj b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Add-group-shape-in-Word.csproj index bbdb252e..78638ef0 100644 --- a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Add-group-shape-in-Word.csproj +++ b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Add-group-shape-in-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Image.png b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Data/Image.png similarity index 100% rename from Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Image.png rename to Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Data/Image.png diff --git a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Output/.gitkeep b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Program.cs b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Program.cs index 33499ffd..bf83582c 100644 --- a/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Program.cs +++ b/Shapes/Add-group-shape-in-Word/.NET/Add-group-shape-in-Word/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) groupShape.Add(shape); //Creates new picture. WPicture picture = new WPicture(document); - using (FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite)) { picture.LoadImage(imageStream); } @@ -71,7 +71,7 @@ static void Main(string[] args) //Adds the specified textbox to group shape. groupShape.Add(textbox); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Add-nested-group-shapes.csproj b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Add-nested-group-shapes.csproj index 881af543..762b9bda 100644 --- a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Add-nested-group-shapes.csproj +++ b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Add-nested-group-shapes.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Image.png b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Data/Image.png similarity index 100% rename from Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Image.png rename to Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Data/Image.png diff --git a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Output/.gitkeep b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Program.cs b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Program.cs index d34424d0..b393f940 100644 --- a/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Program.cs +++ b/Shapes/Add-nested-group-shapes/.NET/Add-nested-group-shapes/Program.cs @@ -37,7 +37,7 @@ static void Main(string[] args) //Appends new picture to the document. WPicture picture = new WPicture(document); //Loads image from the file. - using (FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite)) { picture.LoadImage(imageStream); } @@ -94,7 +94,7 @@ static void Main(string[] args) //Adds nested group shape to the group shape of the paragraph. groupShape.Add(nestedGroupShape); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Add-shapes-in-Word.csproj b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Add-shapes-in-Word.csproj index f8a3ea60..aad5025c 100644 --- a/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Add-shapes-in-Word.csproj +++ b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Add-shapes-in-Word.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Output/.gitkeep b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Program.cs b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Program.cs index 55e132bd..97b21001 100644 --- a/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Program.cs +++ b/Shapes/Add-shapes-in-Word/.NET/Add-shapes-in-Word/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) pentagon.HorizontalPosition = 72; pentagon.VerticalPosition = 200; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Collection-of-shapes-into-group-shape.csproj b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Collection-of-shapes-into-group-shape.csproj index 1eebf2ab..4fc31625 100644 --- a/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Collection-of-shapes-into-group-shape.csproj +++ b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Collection-of-shapes-into-group-shape.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Output/.gitkeep b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Program.cs b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Program.cs index c4e10ccd..958483e9 100644 --- a/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Program.cs +++ b/Shapes/Collection-of-shapes-into-group-shape/.NET/Collection-of-shapes-into-group-shape/Program.cs @@ -112,7 +112,7 @@ static void Main(string[] args) //Adds the group shape to the paragraph. paragraph.ChildEntities.Add(groupShape); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Format-shapes/.NET/Format-shapes/Format-shapes.csproj b/Shapes/Format-shapes/.NET/Format-shapes/Format-shapes.csproj index da5a155a..13dfdb48 100644 --- a/Shapes/Format-shapes/.NET/Format-shapes/Format-shapes.csproj +++ b/Shapes/Format-shapes/.NET/Format-shapes/Format-shapes.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Shapes/Format-shapes/.NET/Format-shapes/Output/.gitkeep b/Shapes/Format-shapes/.NET/Format-shapes/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Format-shapes/.NET/Format-shapes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Format-shapes/.NET/Format-shapes/Program.cs b/Shapes/Format-shapes/.NET/Format-shapes/Program.cs index 859ad340..6cd03db8 100644 --- a/Shapes/Format-shapes/.NET/Format-shapes/Program.cs +++ b/Shapes/Format-shapes/.NET/Format-shapes/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set the top internal margin for the shape. rectangle.TextFrame.InternalMargin.Top = 6; //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Rotate-shapes/.NET/Rotate-shapes/Output/.gitkeep b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Rotate-shapes/.NET/Rotate-shapes/Program.cs b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Program.cs index ff371a90..2c483875 100644 --- a/Shapes/Rotate-shapes/.NET/Rotate-shapes/Program.cs +++ b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Rotate-shapes/.NET/Rotate-shapes/Rotate-shapes.csproj b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Rotate-shapes.csproj index 4bed2916..1cfa1f16 100644 --- a/Shapes/Rotate-shapes/.NET/Rotate-shapes/Rotate-shapes.csproj +++ b/Shapes/Rotate-shapes/.NET/Rotate-shapes/Rotate-shapes.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Template.docx b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Data/Template.docx similarity index 100% rename from Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Template.docx rename to Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Data/Template.docx diff --git a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Output/.gitkeep b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Output/.gitkeep new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Program.cs b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Program.cs index 59ea8ecc..20af5816 100644 --- a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Program.cs +++ b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -27,7 +27,7 @@ static void Main(string[] args) } } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Ungroup-shapes.csproj b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Ungroup-shapes.csproj index e98be9df..96fdda30 100644 --- a/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Ungroup-shapes.csproj +++ b/Shapes/Ungroup-shapes/.NET/Ungroup-shapes/Ungroup-shapes.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + +