diff --git a/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Add-bookmark-in-Word-document.csproj b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Add-bookmark-in-Word-document.csproj index ee1442f8f..0ca34f31b 100644 --- a/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Add-bookmark-in-Word-document.csproj +++ b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Add-bookmark-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Output/.gitkeep b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Program.cs b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Program.cs index 51016efb3..e0f8b5fdc 100644 --- a/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Program.cs +++ b/Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) //Adds a text after the bookmark end. paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data."); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Template.docx b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Data/Template.docx similarity index 100% rename from Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Template.docx rename to Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Data/Template.docx diff --git a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Delete-bookmark-content.csproj b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Delete-bookmark-content.csproj index 7151cb5bc..74b3cb8af 100644 --- a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Delete-bookmark-content.csproj +++ b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Delete-bookmark-content.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Output/.gitkeep b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Program.cs b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Program.cs index 3639ab93d..e10b10902 100644 --- a/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Program.cs +++ b/Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Deletes bookmark content without deleting the format in the target document. bookmarkNavigator.DeleteBookmarkContent(false); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Template.docx b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Data/Template.docx similarity index 100% rename from Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Template.docx rename to Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Data/Template.docx diff --git a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Get-an-instance-of-bookmark.csproj b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Get-an-instance-of-bookmark.csproj index 53e0cfa2a..86be4c2ab 100644 --- a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Get-an-instance-of-bookmark.csproj +++ b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Get-an-instance-of-bookmark.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Output/.gitkeep b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Program.cs b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Program.cs index 0b800f645..96baa84cd 100644 --- a/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Program.cs +++ b/Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Accesses the bookmark start’s owner paragraph by using bookmark and changes its back color. bookmark.BookmarkStart.OwnerParagraph.ParagraphFormat.BackColor = Color.AliceBlue; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Template.docx b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Data/Template.docx similarity index 100% rename from Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Template.docx rename to Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Data/Template.docx diff --git a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Get-bookmark-content-as-body-part.csproj b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Get-bookmark-content-as-body-part.csproj index 3c602a84c..2c05b0a93 100644 --- a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Get-bookmark-content-as-body-part.csproj +++ b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Get-bookmark-content-as-body-part.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Output/.gitkeep b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Program.cs b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Program.cs index ab39de0d6..86a8253ba 100644 --- a/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Program.cs +++ b/Bookmarks/Get-bookmark-content-as-body-part/.NET/Get-bookmark-content-as-body-part/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) for (int i = 0; i < part.BodyItems.Count; i++) document.LastSection.Body.ChildEntities.Add(part.BodyItems[i]); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Template.docx b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Data/Template.docx similarity index 100% rename from Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Template.docx rename to Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Data/Template.docx diff --git a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Get-bookmark-content-as-document-part.csproj b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Get-bookmark-content-as-document-part.csproj index ca62011ae..4ecca31ec 100644 --- a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Get-bookmark-content-as-document-part.csproj +++ b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Get-bookmark-content-as-document-part.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Output/.gitkeep b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Program.cs b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Program.cs index 57d843cec..9d26ec082 100644 --- a/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Program.cs +++ b/Bookmarks/Get-bookmark-content-as-document-part/.NET/Get-bookmark-content-as-document-part/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Close the WordDocumentPart instance. wordDocumentPart.Close(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. newDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Get-bookmark-content-within-table.csproj b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Get-bookmark-content-within-table.csproj index c0b735705..f5d06153d 100644 --- a/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Get-bookmark-content-within-table.csproj +++ b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Get-bookmark-content-within-table.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Output/.gitkeep b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Program.cs b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Program.cs index eb2ee22a3..f8b46b4bc 100644 --- a/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Program.cs +++ b/Bookmarks/Get-bookmark-content-within-table/.NET/Get-bookmark-content-within-table/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) //Adds the retrieved content into another new section. document.LastSection.Body.ChildEntities.Add(part.BodyItems[i]); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Input.docx b/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Data/Input.docx similarity index 100% rename from Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Input.docx rename to Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Data/Input.docx diff --git a/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Get-section-number-of-bookmark.csproj b/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Get-section-number-of-bookmark.csproj index 104de6a2c..91c7f03f7 100644 --- a/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Get-section-number-of-bookmark.csproj +++ b/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Get-section-number-of-bookmark.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Program.cs b/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Program.cs index e32aea4c6..14478a533 100644 --- a/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Program.cs +++ b/Bookmarks/Get-section-number-of-bookmark/.NET/Get-section-number-of-bookmark/Program.cs @@ -9,7 +9,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.Automatic)) diff --git a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Input.docx b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Data/Input.docx similarity index 100% rename from Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Input.docx rename to Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Data/Input.docx diff --git a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Insert-bookmark-start-and-end-around-textrange.csproj b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Insert-bookmark-start-and-end-around-textrange.csproj index 3c51f3d79..60f21d947 100644 --- a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Insert-bookmark-start-and-end-around-textrange.csproj +++ b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Insert-bookmark-start-and-end-around-textrange.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Output/.gitkeep b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Program.cs b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Program.cs index ec45b6449..8cf38bfb9 100644 --- a/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/Program.cs +++ b/Bookmarks/Insert-bookmark-start-and-end-around-textrange/.NET/Insert-bookmark-start-and-end-around-textrange/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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Add bookmarkend at index 2. paragraph.Items.Insert(2, bookmarkEnd); //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Template.docx b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Data/Template.docx similarity index 100% rename from Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Template.docx rename to Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Data/Template.docx diff --git a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Insert-paragraph-into-bookmark.csproj b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Insert-paragraph-into-bookmark.csproj index 560ae33fe..174bd86a5 100644 --- a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Insert-paragraph-into-bookmark.csproj +++ b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Insert-paragraph-into-bookmark.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Output/.gitkeep b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Program.cs b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Program.cs index b10bca2f7..ac9ee2ed7 100644 --- a/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Program.cs +++ b/Bookmarks/Insert-paragraph-into-bookmark/.NET/Insert-paragraph-into-bookmark/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories."); bookmarkNavigator.InsertParagraph(paragraph); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Insert-paragraph-item-into-bookmark.csproj b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Insert-paragraph-item-into-bookmark.csproj index 813a8f0bf..23f36f47d 100644 --- a/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Insert-paragraph-item-into-bookmark.csproj +++ b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Insert-paragraph-item-into-bookmark.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Output/.gitkeep b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Program.cs b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Program.cs index 34c34e5c2..2863430e1 100644 --- a/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Program.cs +++ b/Bookmarks/Insert-paragraph-item-into-bookmark/.NET/Insert-paragraph-item-into-bookmark/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - 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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -20,12 +20,12 @@ static void Main(string[] args) bookmarkNavigator.MoveToBookmark("Northwind", false, true); //Inserts a new picture after the bookmark end. WPicture picture = bookmarkNavigator.InsertParagraphItem(ParagraphItemType.Picture) as WPicture; - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Northwind.png"), FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Northwind.png"), FileMode.Open, FileAccess.Read); picture.LoadImage(imageStream); picture.WidthScale = 50; picture.HeightScale = 50; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Template.docx b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Data/Template.docx similarity index 100% rename from Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Template.docx rename to Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Data/Template.docx diff --git a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Insert-simple-text-into-bookmark.csproj b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Insert-simple-text-into-bookmark.csproj index f47cd464b..d7faeb10d 100644 --- a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Insert-simple-text-into-bookmark.csproj +++ b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Insert-simple-text-into-bookmark.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Output/.gitkeep b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Program.cs b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Program.cs index 5b23ddfe6..47b92a321 100644 --- a/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Program.cs +++ b/Bookmarks/Insert-simple-text-into-bookmark/.NET/Insert-simple-text-into-bookmark/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Inserts a new text before the bookmark end of the bookmark. bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories."); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Template.docx b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Data/Template.docx similarity index 100% rename from Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Template.docx rename to Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Data/Template.docx diff --git a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Insert-table-into-bookmark.csproj b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Insert-table-into-bookmark.csproj index 7e83c9a6b..badc02fc8 100644 --- a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Insert-table-into-bookmark.csproj +++ b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Insert-table-into-bookmark.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Output/.gitkeep b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Program.cs b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Program.cs index c154ba78f..af242fcfb 100644 --- a/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Program.cs +++ b/Bookmarks/Insert-table-into-bookmark/.NET/Insert-table-into-bookmark/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -33,7 +33,7 @@ static void Main(string[] args) table[2, 1].AddParagraph().AppendText("3"); bookmarkNavigator.InsertTable(table); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Template.docx b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Data/Template.docx similarity index 100% rename from Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Template.docx rename to Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Data/Template.docx diff --git a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Insert-text-body-part-into-bookmark.csproj b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Insert-text-body-part-into-bookmark.csproj index de0931113..121f224de 100644 --- a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Insert-text-body-part-into-bookmark.csproj +++ b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Insert-text-body-part-into-bookmark.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Output/.gitkeep b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Program.cs b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Program.cs index 38be14bda..41ce7c7b8 100644 --- a/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Program.cs +++ b/Bookmarks/Insert-text-body-part-into-bookmark/.NET/Insert-text-body-part-into-bookmark/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) //Inserts the text body part after the bookmark start. bookmarkNavigator.InsertTextBodyPart(textBodyPart); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace.sln b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace.sln new file mode 100644 index 000000000..6dde45810 --- /dev/null +++ b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maintain-source-list-format-after-replace", "Maintain-source-list-format-after-replace\Maintain-source-list-format-after-replace.csproj", "{162D7557-79E5-4AAA-97B9-4BE8C3F12CA6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {162D7557-79E5-4AAA-97B9-4BE8C3F12CA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {162D7557-79E5-4AAA-97B9-4BE8C3F12CA6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {162D7557-79E5-4AAA-97B9-4BE8C3F12CA6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {162D7557-79E5-4AAA-97B9-4BE8C3F12CA6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C5C11616-290D-4824-A387-AF3D408F533E} + EndGlobalSection +EndGlobal diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/DestinationDocument.docx b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/DestinationDocument.docx new file mode 100644 index 000000000..78bfd1da3 Binary files /dev/null and b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/DestinationDocument.docx differ diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/SourceDocument.docx b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/SourceDocument.docx new file mode 100644 index 000000000..047d575ac Binary files /dev/null and b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Data/SourceDocument.docx differ diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Maintain-source-list-format-after-replace.csproj b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Maintain-source-list-format-after-replace.csproj new file mode 100644 index 000000000..4952eaaa6 --- /dev/null +++ b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Maintain-source-list-format-after-replace.csproj @@ -0,0 +1,27 @@ + + + + Exe + net8.0 + Maintain_source_list_format_after_replace + enable + enable + + + + + + + + + Always + + + Always + + + Always + + + + diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Output/.gitkeep b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Program.cs b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Program.cs new file mode 100644 index 000000000..f42cff2f9 --- /dev/null +++ b/Bookmarks/Maintain-source-list-format-after-replace/.NET/Maintain-source-list-format-after-replace/Program.cs @@ -0,0 +1,93 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +namespace Replace_content_with_bookmark +{ + internal class Program + { + static void Main(string[] args) + { + using (FileStream destinationStream = new FileStream(Path.GetFullPath("Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read)) + { + //Open the destination Word document. + using (WordDocument destinationDocument = new WordDocument(destinationStream, FormatType.Docx)) + { + using (FileStream sourceStream = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read)) + { + //Open the source Word document. + using (WordDocument sourceDocument = new WordDocument(sourceStream, FormatType.Docx)) + { + //Replace text "Text one" in the destination document with content from the bookmark "bkmk1" in the source document. + ReplaceTextAndMaintainListFormat(destinationDocument, sourceDocument, "Text one", "bkmk1"); + //Replace text "Text two" in the destination document with content from the bookmark "bkmk2" in the source document. + ReplaceTextAndMaintainListFormat(destinationDocument, sourceDocument, "Text two", "bkmk2"); + //Save the modified destination document to the output stream. + using (FileStream output = new FileStream(Path.GetFullPath("Output/Output.docx"), FileMode.Create, FileAccess.Write)) + { + destinationDocument.Save(output, FormatType.Docx); + } + } + } + } + } + } + + /// + /// Replaces specific text in a Word document with bookmarked content from another document, maintaining formatting. + /// + private static void ReplaceTextAndMaintainListFormat(WordDocument destinationDocument, WordDocument sourceDocument, string tokenToFind, string textBookmark) + { + string bookmarkRef = textBookmark + "_bm"; + // Find the text in the destination document where the bookmark start needs to be inserted. + TextSelection start = destinationDocument.Find(tokenToFind, true, true); + if (start != null) + { + // Get the selected text range and its parent paragraph. + WTextRange startText = start.GetAsOneRange(); + WParagraph startParagraph = startText.OwnerParagraph; + // Get the index of the selected text range in the paragraph. + int index = startParagraph.Items.IndexOf(startText); + // Remove the selected text at the identified index. + startParagraph.Items.Remove(startText); + // Create a BookmarkStart with a unique reference and insert it at the same index. + BookmarkStart bookmarkStart = new BookmarkStart(destinationDocument, bookmarkRef); + startParagraph.Items.Insert(index, bookmarkStart); + // Append a BookmarkEnd with the same reference to mark the bookmark’s end. + startParagraph.AppendBookmarkEnd(bookmarkRef); + + // Check if the specified bookmark exists in the source document. + if (sourceDocument.Bookmarks.FindByName(textBookmark) != null) + { + // Move the navigator to the bookmark in the source document. + BookmarksNavigator bookmarksNavigator = new BookmarksNavigator(sourceDocument); + bookmarksNavigator.MoveToBookmark(textBookmark); + // Extract the content within the bookmark. + WordDocumentPart wordDocumentPart = bookmarksNavigator.GetContent(); + + // Move the navigator to the newly created bookmark in the destination document. + bookmarksNavigator = new BookmarksNavigator(destinationDocument); + bookmarksNavigator.MoveToBookmark(bookmarkRef); + // Get the paragraph containing the bookmark start in the destination document. + WParagraph destinationPara = bookmarksNavigator.CurrentBookmark.BookmarkStart.OwnerParagraph; + // Store the list style, first-line indent, and left indent of the paragraph. + string listStyleName = destinationPara.ListFormat.CustomStyleName; + float firstLineIndent = destinationPara.ParagraphFormat.FirstLineIndent; + float leftIndent = destinationPara.ParagraphFormat.LeftIndent; + // Replace the bookmark content with the extracted content from the source document. + bookmarksNavigator.ReplaceContent(wordDocumentPart); + // Reapply the original list style and indent settings to the paragraph. + destinationPara.ListFormat.ApplyStyle(listStyleName); + destinationPara.ParagraphFormat.FirstLineIndent = firstLineIndent; + destinationPara.ParagraphFormat.LeftIndent = leftIndent; + } + else + { + // If the bookmark is not found, replace the content with an empty string. + BookmarksNavigator bookmarksNavigator = new BookmarksNavigator(destinationDocument); + bookmarksNavigator.MoveToBookmark(bookmarkRef); + bookmarksNavigator.ReplaceBookmarkContent(string.Empty, true); + } + } + } + } +} diff --git a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Template.docx b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Data/Template.docx similarity index 100% rename from Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Template.docx rename to Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Data/Template.docx diff --git a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Output/.gitkeep b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Program.cs b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Program.cs index 90d3b7d75..df7b67d8f 100644 --- a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Program.cs +++ b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Removes the bookmark named "Northwind" from Word document. document.Bookmarks.Remove(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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Remove-bookmark-from-Word-document.csproj b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Remove-bookmark-from-Word-document.csproj index 0696d81e0..e822600e9 100644 --- a/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Remove-bookmark-from-Word-document.csproj +++ b/Bookmarks/Remove-bookmark-from-Word-document/.NET/Remove-bookmark-from-Word-document/Remove-bookmark-from-Word-document.csproj @@ -9,5 +9,14 @@ + + + + Always + + + Always + + diff --git a/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML.sln b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML.sln new file mode 100644 index 000000000..f0fc05d9c --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Replace-bookmark-content-with-HTML", "Replace-bookmark-content-with-HTML\Replace-bookmark-content-with-HTML.csproj", "{ABBFFEB7-79DA-41B9-8FCE-A9FA869CADEC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ABBFFEB7-79DA-41B9-8FCE-A9FA869CADEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABBFFEB7-79DA-41B9-8FCE-A9FA869CADEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABBFFEB7-79DA-41B9-8FCE-A9FA869CADEC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABBFFEB7-79DA-41B9-8FCE-A9FA869CADEC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5E468015-11EC-43FF-B1B4-8DB14E7C192D} + EndGlobalSection +EndGlobal diff --git a/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Data/Input.html b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Data/Input.html new file mode 100644 index 000000000..745f23d13 --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Data/Input.html @@ -0,0 +1,68 @@ +

It is possible to convert a simple word document into HTML document.

+

Some of the Supported elements are:

+

·     Paragraph

+

·     Tables

+

·     TextBox

+

·     Hyperlink

+

·     Image

+

Table with Images:

+

SNO

+

Product Name

+

Product Image

+

1

+

Mountain 200

+

A bicycle with red frame

Description automatically generated

+

2

+

Mountain 300

+

A silver bicycle with blue wheels

Description automatically generated

+

3

+

Road 150

+

A yellow bicycle with blue wheels

Description automatically generated

+

 

+

 

+
\ No newline at end of file diff --git a/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Output/.gitkeep b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Program.cs b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Program.cs new file mode 100644 index 000000000..3cab0a4be --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Program.cs @@ -0,0 +1,53 @@ +using Syncfusion.DocIO.DLS; + +using (WordDocument document = new WordDocument()) +{ + //Initialize the paragraph where the bookmark will be inserted. + IWParagraph paragraph = null; + //Get the full path of the input HTML file. + string htmlPage = Path.GetFullPath(@"Data/Input.html"); + //Read the HTML content from the input file. + string htmlContent = File.ReadAllText(htmlPage); + //Add a new section to the Word document. + IWSection section = document.AddSection(); + //Add a paragraph to the section. + paragraph = section.AddParagraph(); + //Insert a bookmark start at the current location in the paragraph. + paragraph.AppendBookmarkStart("Index"); + //Insert a bookmark end at the current location in the paragraph. + paragraph.AppendBookmarkEnd("Index"); + //Convert the HTML content into a WordDocumentPart. + WordDocumentPart htmlDocumentPart = ConvertHTMLToWordDocumentPart(htmlContent); + //Create an instance of BookmarksNavigator to navigate to the bookmark. + BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); + //Move the virtual cursor to the location of the bookmark named "Index". + bookmarkNavigator.MoveToBookmark("Index"); + //Replace the bookmark content with the converted HTML content. + bookmarkNavigator.ReplaceContent(htmlDocumentPart); + //Close htmlDocumentPart. + htmlDocumentPart.Close(); + //Save the modified document to a specified file path in DOCX format. + using (FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.docx"), FileMode.Create, FileAccess.Write)) + { + document.Save(outputStream, Syncfusion.DocIO.FormatType.Docx); + } +} + +/// +/// Converts an HTML string into a WordDocumentPart to be inserted into the Word document. +/// +static WordDocumentPart ConvertHTMLToWordDocumentPart(string html) +{ + //Create a new Word document. + WordDocument tempDocument = new WordDocument(); + //Add minimal content to the document (ensures the document structure is valid). + tempDocument.EnsureMinimal(); + //Append the HTML string to the last paragraph of the temporary Word document. + tempDocument.LastParagraph.AppendHTML(html); + //Create a new WordDocumentPart instance. + WordDocumentPart wordDocumentPart = new WordDocumentPart(); + //Load the temporary document into the WordDocumentPart. + wordDocumentPart.Load(tempDocument); + //Return the WordDocumentPart containing the converted HTML content. + return wordDocumentPart; +} diff --git a/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Replace-bookmark-content-with-HTML.csproj b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Replace-bookmark-content-with-HTML.csproj new file mode 100644 index 000000000..4ea25dabc --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-HTML/.NET/Replace-bookmark-content-with-HTML/Replace-bookmark-content-with-HTML.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Replace_bookmark_content_with_HTML + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Output/.gitkeep b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Program.cs b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Program.cs index 174a453b2..fbf178a63 100644 --- a/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Program.cs +++ b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Program.cs @@ -8,12 +8,12 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/DestinationWordDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/DestinationWordDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Open destination Word document. using (WordDocument destinationWordDocument = new WordDocument(fileStreamPath, FormatType.Automatic)) { - using (FileStream sourceFileStream = new FileStream(Path.GetFullPath(@"../../../Data/SourceWordDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceFileStream = new FileStream(Path.GetFullPath(@"Data/SourceWordDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Open the source Word document to copy all the content. using (WordDocument sourceWordDocument = new WordDocument(sourceFileStream, FormatType.Automatic)) @@ -27,7 +27,7 @@ static void Main(string[] args) //Replace the bookmark content with Word document part. bookmarkNavigator.ReplaceContent(wordDocumentPart); //Create file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to file stream. destinationWordDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Replace-bookmark-content-with-another-document.csproj b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Replace-bookmark-content-with-another-document.csproj index 8736ef73b..a5ed80db7 100644 --- a/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Replace-bookmark-content-with-another-document.csproj +++ b/Bookmarks/Replace-bookmark-content-with-another-document/.NET/Replace-bookmark-content-with-another-document/Replace-bookmark-content-with-another-document.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + +
diff --git a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Template.docx b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Data/Template.docx similarity index 100% rename from Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Template.docx rename to Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Data/Template.docx diff --git a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Output/.gitkeep b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Program.cs b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Program.cs index 86b4c745b..b05aae4bc 100644 --- a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Program.cs +++ b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) //Replaces the bookmark content with text body part. bookmarkNavigator.ReplaceBookmarkContent(textBodyPart); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Replace-content-with-body-part.csproj b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Replace-content-with-body-part.csproj index e63f437ae..75fabb534 100644 --- a/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Replace-content-with-body-part.csproj +++ b/Bookmarks/Replace-content-with-body-part/.NET/Replace-content-with-body-part/Replace-content-with-body-part.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Output/.gitkeep b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Program.cs b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Program.cs index e21c55bee..e41546a37 100644 --- a/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Program.cs +++ b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - 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)) { //Opens an existing Word document. using (WordDocument templateDocument = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Gets the bookmark content as WordDocumentPart. WordDocumentPart wordDocumentPart = bookmarkNavigator.GetContent(); //Loads the Word document with bookmark NorthwindDB. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Bookmarks.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Bookmarks.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) { @@ -34,7 +34,7 @@ static void Main(string[] args) //Close the WordDocumentPart instance. wordDocumentPart.Close(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Replace-content-with-document-part.csproj b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Replace-content-with-document-part.csproj index dcde1c839..1b08566bd 100644 --- a/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Replace-content-with-document-part.csproj +++ b/Bookmarks/Replace-content-with-document-part/.NET/Replace-content-with-document-part/Replace-content-with-document-part.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Applying-3D-formats.csproj b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Applying-3D-formats.csproj index b863a8ead..57a4f623b 100644 --- a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Applying-3D-formats.csproj +++ b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Applying-3D-formats.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Excel_Template.xlsx b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Data/Excel_Template.xlsx similarity index 100% rename from Charts/Applying-3D-formats/.NET/Applying-3D-formats/Excel_Template.xlsx rename to Charts/Applying-3D-formats/.NET/Applying-3D-formats/Data/Excel_Template.xlsx diff --git a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Output/.gitkeep b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Program.cs b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Program.cs index 4afc2d807..bccf66ddc 100644 --- a/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Program.cs +++ b/Charts/Applying-3D-formats/.NET/Applying-3D-formats/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) //Adds paragraph to the section. IWParagraph paragraph = sec.AddParagraph(); //Loads the excel file as stream. - Stream excelStream = File.OpenRead(Path.GetFullPath(@"../../../Excel_Template.xlsx")); + Stream excelStream = File.OpenRead(Path.GetFullPath(@"Data/Excel_Template.xlsx")); //Creates and Appends chart to the paragraph with excel stream as parameter. WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Sets chart type and title. @@ -65,7 +65,7 @@ static void Main(string[] args) //Sets the back wall thickness. chart.BackWall.Thickness = 10; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Change-X-axis-label-position.csproj b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Change-X-axis-label-position.csproj index 14402b835..7b813473d 100644 --- a/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Change-X-axis-label-position.csproj +++ b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Change-X-axis-label-position.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Output/.gitkeep b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Program.cs b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Program.cs index 250a1a003..21b2ae275 100644 --- a/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Program.cs +++ b/Charts/Change-X-axis-label-position/.NET/Change-X-axis-label-position/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open)) { //Load an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Set X-axis label position to the bottom of the chart. chart.PrimaryCategoryAxis.TickLabelPosition = OfficeTickLabelPosition.TickLabelPosition_Low; //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. wordDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Change-chart-title-position.csproj b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Change-chart-title-position.csproj index 22ce15acb..1670fce40 100644 --- a/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Change-chart-title-position.csproj +++ b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Change-chart-title-position.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Output/.gitkeep b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Program.cs b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Program.cs index 78642974e..dbe6e931c 100644 --- a/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Program.cs +++ b/Charts/Change-chart-title-position/.NET/Change-chart-title-position/Program.cs @@ -62,7 +62,7 @@ static void Main(string[] args) //Set legend. chart.Legend.Position = OfficeLegendPosition.Left; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/Convert-chart-to-image.csproj b/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/Convert-chart-to-image.csproj index c66b9ad79..c7676d7f7 100644 --- a/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/Convert-chart-to-image.csproj +++ b/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/Convert-chart-to-image.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/packages.config b/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/packages.config index 59a445ecb..622be87e6 100644 --- a/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/packages.config +++ b/Charts/Convert-chart-to-image/.NET-Framework/Convert-chart-to-image/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Convert-chart-to-image.csproj b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Convert-chart-to-image.csproj index 1abeb989f..0960e318e 100644 --- a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Convert-chart-to-image.csproj +++ b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Convert-chart-to-image.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/TemplateWithChart.docx b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Data/TemplateWithChart.docx similarity index 100% rename from Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/TemplateWithChart.docx rename to Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Data/TemplateWithChart.docx diff --git a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Output/.gitkeep b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Program.cs b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Program.cs index 93d8bc4e9..55d7f1d8b 100644 --- a/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Program.cs +++ b/Charts/Convert-chart-to-image/.NET/Convert-chart-to-image/Program.cs @@ -9,7 +9,7 @@ class Program static void Main(string[] args) { //Open the file as Stream. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../TemplateWithChart.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/TemplateWithChart.docx"), FileMode.Open)) { //Load file stream into Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) using (Stream stream = chart.SaveAsImage()) { //Create the output image file stream. - using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"../../../ChartToImage.jpeg"))) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output.jpeg"))) { //Copies the converted image stream into created output stream. stream.CopyTo(fileStreamOutput); diff --git a/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Create-100-stacked-area-chart.csproj b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Create-100-stacked-area-chart.csproj index b911de4bd..e591273ee 100644 --- a/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Create-100-stacked-area-chart.csproj +++ b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Create-100-stacked-area-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Output/.gitkeep b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Program.cs b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Program.cs index 9b6e4342a..81ec282af 100644 --- a/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Program.cs +++ b/Charts/Create-100-stacked-area-chart/.NET/Create-100-stacked-area-chart/Program.cs @@ -55,7 +55,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Create-100-stacked-bar-chart.csproj b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Create-100-stacked-bar-chart.csproj index 392e60390..8250b920e 100644 --- a/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Create-100-stacked-bar-chart.csproj +++ b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Create-100-stacked-bar-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Output/.gitkeep b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Program.cs b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Program.cs index db684ce8c..081008715 100644 --- a/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Program.cs +++ b/Charts/Create-100-stacked-bar-chart/.NET/Create-100-stacked-bar-chart/Program.cs @@ -50,7 +50,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Create-100-stacked-bar-cone-chart.csproj b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Create-100-stacked-bar-cone-chart.csproj index f8545a6ed..19b289b93 100644 --- a/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Create-100-stacked-bar-cone-chart.csproj +++ b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Create-100-stacked-bar-cone-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Output/.gitkeep b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Program.cs b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Program.cs index b5556179f..9f3071237 100644 --- a/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Program.cs +++ b/Charts/Create-100-stacked-bar-cone-chart/.NET/Create-100-stacked-bar-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Bar_Stacked_100; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Create-100-stacked-bar-cylinder-chart.csproj b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Create-100-stacked-bar-cylinder-chart.csproj index 4a1dcf2b2..c84e167d8 100644 --- a/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Create-100-stacked-bar-cylinder-chart.csproj +++ b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Create-100-stacked-bar-cylinder-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Output/.gitkeep b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Program.cs b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Program.cs index 1793c9e8b..c9e39baa9 100644 --- a/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Program.cs +++ b/Charts/Create-100-stacked-bar-cylinder-chart/.NET/Create-100-stacked-bar-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Bar_Stacked_100; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Create-100-stacked-bar-pyramid-chart.csproj b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Create-100-stacked-bar-pyramid-chart.csproj index 890cb1e46..f44343e34 100644 --- a/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Create-100-stacked-bar-pyramid-chart.csproj +++ b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Create-100-stacked-bar-pyramid-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Output/.gitkeep b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Program.cs b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Program.cs index 85f3dd4b1..e730065b7 100644 --- a/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Program.cs +++ b/Charts/Create-100-stacked-bar-pyramid-chart/.NET/Create-100-stacked-bar-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Create-100-stacked-column-chart.csproj b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Create-100-stacked-column-chart.csproj index 68bfa6ab8..7dea62377 100644 --- a/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Create-100-stacked-column-chart.csproj +++ b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Create-100-stacked-column-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Output/.gitkeep b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Program.cs b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Program.cs index aead976b3..57549c7f5 100644 --- a/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Program.cs +++ b/Charts/Create-100-stacked-column-chart/.NET/Create-100-stacked-column-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Create-100-stacked-cone-chart.csproj b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Create-100-stacked-cone-chart.csproj index 8204f2b07..a98442779 100644 --- a/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Create-100-stacked-cone-chart.csproj +++ b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Create-100-stacked-cone-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Output/.gitkeep b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Program.cs b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Program.cs index 5cb03d093..dc0ff3bce 100644 --- a/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Program.cs +++ b/Charts/Create-100-stacked-cone-chart/.NET/Create-100-stacked-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Stacked_100; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Create-100-stacked-cylinder-chart.csproj b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Create-100-stacked-cylinder-chart.csproj index 8274d8b9c..727d24529 100644 --- a/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Create-100-stacked-cylinder-chart.csproj +++ b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Create-100-stacked-cylinder-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Output/.gitkeep b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Program.cs b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Program.cs index 894cf7e83..240759cd4 100644 --- a/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Program.cs +++ b/Charts/Create-100-stacked-cylinder-chart/.NET/Create-100-stacked-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Stacked_100; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Create-100-stacked-line-chart.csproj b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Create-100-stacked-line-chart.csproj index 50a641d9f..22c5c9b7b 100644 --- a/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Create-100-stacked-line-chart.csproj +++ b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Create-100-stacked-line-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Output/.gitkeep b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Program.cs b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Program.cs index dc6eebd9d..d37ac0b28 100644 --- a/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Program.cs +++ b/Charts/Create-100-stacked-line-chart/.NET/Create-100-stacked-line-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Create-100-stacked-line-with-markers.csproj b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Create-100-stacked-line-with-markers.csproj index 1d01fa886..0c1b142c8 100644 --- a/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Create-100-stacked-line-with-markers.csproj +++ b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Create-100-stacked-line-with-markers.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Output/.gitkeep b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Program.cs b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Program.cs index 8af43ae2f..f27f50242 100644 --- a/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Program.cs +++ b/Charts/Create-100-stacked-line-with-markers/.NET/Create-100-stacked-line-with-markers/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Create-100-stacked-pyramid-chart.csproj b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Create-100-stacked-pyramid-chart.csproj index 6dc7f716b..8cc4346ba 100644 --- a/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Create-100-stacked-pyramid-chart.csproj +++ b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Create-100-stacked-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Output/.gitkeep b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Program.cs b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Program.cs index 331dfd23d..236aa1506 100644 --- a/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Program.cs +++ b/Charts/Create-100-stacked-pyramid-chart/.NET/Create-100-stacked-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Create-3D-100-stacked-area-chart.csproj b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Create-3D-100-stacked-area-chart.csproj index 210079aa2..3a48adb99 100644 --- a/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Create-3D-100-stacked-area-chart.csproj +++ b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Create-3D-100-stacked-area-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Output/.gitkeep b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Program.cs b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Program.cs index b085d6e06..159c8f941 100644 --- a/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Program.cs +++ b/Charts/Create-3D-100-stacked-area-chart/.NET/Create-3D-100-stacked-area-chart/Program.cs @@ -59,7 +59,7 @@ static void Main(string[] args) chart.Elevation = 15; chart.Perspective = 15; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Create-3D-100-stacked-bar.csproj b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Create-3D-100-stacked-bar.csproj index 6c91e9a81..cfb6995dd 100644 --- a/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Create-3D-100-stacked-bar.csproj +++ b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Create-3D-100-stacked-bar.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Output/.gitkeep b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Program.cs b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Program.cs index 4a6031044..866681625 100644 --- a/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Program.cs +++ b/Charts/Create-3D-100-stacked-bar/.NET/Create-3D-100-stacked-bar/Program.cs @@ -51,7 +51,7 @@ static void Main(string[] args) chart.Elevation = 90; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Create-3D-100-stacked-column-chart.csproj b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Create-3D-100-stacked-column-chart.csproj index 90d5304fd..02a712fe7 100644 --- a/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Create-3D-100-stacked-column-chart.csproj +++ b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Create-3D-100-stacked-column-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Output/.gitkeep b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Program.cs b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Program.cs index 29409bc44..dd71e8369 100644 --- a/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Program.cs +++ b/Charts/Create-3D-100-stacked-column-chart/.NET/Create-3D-100-stacked-column-chart/Program.cs @@ -58,7 +58,7 @@ static void Main(string[] args) chart.Rotation = 30; chart.Elevation = 30; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Create-3D-area-chart.csproj b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Create-3D-area-chart.csproj index 6ff219093..a38e08670 100644 --- a/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Create-3D-area-chart.csproj +++ b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Create-3D-area-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Output/.gitkeep b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Program.cs b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Program.cs index a3f91da1e..6d892bf5a 100644 --- a/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Program.cs +++ b/Charts/Create-3D-area-chart/.NET/Create-3D-area-chart/Program.cs @@ -59,7 +59,7 @@ static void Main(string[] args) chart.Elevation = 15; chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Create-3D-bubble-chart.csproj b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Create-3D-bubble-chart.csproj index 075b9cb70..5a91b249f 100644 --- a/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Create-3D-bubble-chart.csproj +++ b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Create-3D-bubble-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Output/.gitkeep b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Program.cs b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Program.cs index 16bcee57e..9441962e2 100644 --- a/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Program.cs +++ b/Charts/Create-3D-bubble-chart/.NET/Create-3D-bubble-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Create-3D-clustered-bar-chart.csproj b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Create-3D-clustered-bar-chart.csproj index 49a430051..4366b2aef 100644 --- a/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Create-3D-clustered-bar-chart.csproj +++ b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Create-3D-clustered-bar-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Output/.gitkeep b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Program.cs b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Program.cs index 17403b77b..f2aa6d6f0 100644 --- a/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Program.cs +++ b/Charts/Create-3D-clustered-bar-chart/.NET/Create-3D-clustered-bar-chart/Program.cs @@ -51,7 +51,7 @@ static void Main(string[] args) chart.Elevation = 90; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Create-3D-clustered-column-chart.csproj b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Create-3D-clustered-column-chart.csproj index d9477f3ee..6f7f3d4fd 100644 --- a/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Create-3D-clustered-column-chart.csproj +++ b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Create-3D-clustered-column-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Output/.gitkeep b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Program.cs b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Program.cs index 1ae9ab50c..16a53b1aa 100644 --- a/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Program.cs +++ b/Charts/Create-3D-clustered-column-chart/.NET/Create-3D-clustered-column-chart/Program.cs @@ -58,7 +58,7 @@ static void Main(string[] args) chart.Rotation = 30; chart.Elevation = 30; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Create-3D-clustered-cone-chart.csproj b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Create-3D-clustered-cone-chart.csproj index cb45e6961..be8b104a1 100644 --- a/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Create-3D-clustered-cone-chart.csproj +++ b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Create-3D-clustered-cone-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Output/.gitkeep b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Program.cs b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Program.cs index 60d6c34a6..324177463 100644 --- a/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Program.cs +++ b/Charts/Create-3D-clustered-cone-chart/.NET/Create-3D-clustered-cone-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Elevation = 10; chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Create-3D-clustered-cylinder-chart.csproj b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Create-3D-clustered-cylinder-chart.csproj index abfb253e2..8b2dfea55 100644 --- a/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Create-3D-clustered-cylinder-chart.csproj +++ b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Create-3D-clustered-cylinder-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Output/.gitkeep b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Program.cs b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Program.cs index b64457b3a..6a81a354a 100644 --- a/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Program.cs +++ b/Charts/Create-3D-clustered-cylinder-chart/.NET/Create-3D-clustered-cylinder-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Elevation = 10; chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Create-3D-clustered-pyramid-chart.csproj b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Create-3D-clustered-pyramid-chart.csproj index adede354a..6b98c4382 100644 --- a/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Create-3D-clustered-pyramid-chart.csproj +++ b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Create-3D-clustered-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Output/.gitkeep b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Program.cs b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Program.cs index 91afe5210..41ccc6392 100644 --- a/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Program.cs +++ b/Charts/Create-3D-clustered-pyramid-chart/.NET/Create-3D-clustered-pyramid-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Elevation = 10; chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Create-3D-exploded-pie-chart.csproj b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Create-3D-exploded-pie-chart.csproj index 33468ce46..a434358ce 100644 --- a/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Create-3D-exploded-pie-chart.csproj +++ b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Create-3D-exploded-pie-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Output/.gitkeep b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Program.cs b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Program.cs index 7ba6e71da..1738ecba3 100644 --- a/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Program.cs +++ b/Charts/Create-3D-exploded-pie-chart/.NET/Create-3D-exploded-pie-chart/Program.cs @@ -49,7 +49,7 @@ static void Main(string[] args) //Set elevation. chart.Elevation = 45; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Create-3D-line-chart.csproj b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Create-3D-line-chart.csproj index 2d9f35852..7c4d79a04 100644 --- a/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Create-3D-line-chart.csproj +++ b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Create-3D-line-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Output/.gitkeep b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Program.cs b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Program.cs index 8cb8e1a35..7490ae389 100644 --- a/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Program.cs +++ b/Charts/Create-3D-line-chart/.NET/Create-3D-line-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Elevation = 10; chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Create-3D-pie-chart.csproj b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Create-3D-pie-chart.csproj index deddfc54c..7f9721754 100644 --- a/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Create-3D-pie-chart.csproj +++ b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Create-3D-pie-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Output/.gitkeep b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Program.cs b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Program.cs index 0eac68b6e..573a07513 100644 --- a/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Program.cs +++ b/Charts/Create-3D-pie-chart/.NET/Create-3D-pie-chart/Program.cs @@ -49,7 +49,7 @@ static void Main(string[] args) //Set elevation. chart.Elevation = 30; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Create-3D-stacked-area-chart.csproj b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Create-3D-stacked-area-chart.csproj index 61e187189..e1091e68e 100644 --- a/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Create-3D-stacked-area-chart.csproj +++ b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Create-3D-stacked-area-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Output/.gitkeep b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Program.cs b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Program.cs index 25dc12c4b..3ae67b649 100644 --- a/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Program.cs +++ b/Charts/Create-3D-stacked-area-chart/.NET/Create-3D-stacked-area-chart/Program.cs @@ -59,7 +59,7 @@ static void Main(string[] args) chart.Elevation = 15; chart.Perspective = 15; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Create-3D-stacked-bar-chart.csproj b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Create-3D-stacked-bar-chart.csproj index a3a3e31fb..7d883ac7f 100644 --- a/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Create-3D-stacked-bar-chart.csproj +++ b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Create-3D-stacked-bar-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Output/.gitkeep b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Program.cs b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Program.cs index 21492493f..92becded1 100644 --- a/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Program.cs +++ b/Charts/Create-3D-stacked-bar-chart/.NET/Create-3D-stacked-bar-chart/Program.cs @@ -51,7 +51,7 @@ static void Main(string[] args) chart.Elevation = 90; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Create-3D-stacked-column-chart.csproj b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Create-3D-stacked-column-chart.csproj index 1197b9c24..1dba18992 100644 --- a/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Create-3D-stacked-column-chart.csproj +++ b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Create-3D-stacked-column-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Output/.gitkeep b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Program.cs b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Program.cs index f10f5b062..105c0109b 100644 --- a/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Program.cs +++ b/Charts/Create-3D-stacked-column-chart/.NET/Create-3D-stacked-column-chart/Program.cs @@ -58,7 +58,7 @@ static void Main(string[] args) chart.Rotation = 30; chart.Elevation = 30; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Create-3D-surface-chart.csproj b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Create-3D-surface-chart.csproj index 6f606ae52..c3f782040 100644 --- a/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Create-3D-surface-chart.csproj +++ b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Create-3D-surface-chart.csproj @@ -9,5 +9,11 @@ + + + + Always + + diff --git a/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Output/.gitkeep b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Program.cs b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Program.cs index bd91c4201..5ebdc0190 100644 --- a/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Program.cs +++ b/Charts/Create-3D-surface-chart/.NET/Create-3D-surface-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) chart.Elevation = 20; chart.Perspective = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/Create-Pie-chart-from-database.csproj b/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/Create-Pie-chart-from-database.csproj index bb61e75fd..b2b9e0240 100644 --- a/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/Create-Pie-chart-from-database.csproj +++ b/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/Create-Pie-chart-from-database.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/packages.config b/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/packages.config index 8341885de..9671bf5f9 100644 --- a/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/packages.config +++ b/Charts/Create-Pie-chart-from-database/.NET-Framework/Create-Pie-chart-from-database/packages.config @@ -1,8 +1,8 @@  - - - - + + + + \ No newline at end of file diff --git a/Charts/Create-area-chart/.NET/Create-area-chart/Create-area-chart.csproj b/Charts/Create-area-chart/.NET/Create-area-chart/Create-area-chart.csproj index fac1cc730..b78688dc9 100644 --- a/Charts/Create-area-chart/.NET/Create-area-chart/Create-area-chart.csproj +++ b/Charts/Create-area-chart/.NET/Create-area-chart/Create-area-chart.csproj @@ -9,5 +9,11 @@ + + + + Always + + diff --git a/Charts/Create-area-chart/.NET/Create-area-chart/Output/.gitkeep b/Charts/Create-area-chart/.NET/Create-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-area-chart/.NET/Create-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-area-chart/.NET/Create-area-chart/Program.cs b/Charts/Create-area-chart/.NET/Create-area-chart/Program.cs index 61ffa988d..3b0a2c240 100644 --- a/Charts/Create-area-chart/.NET/Create-area-chart/Program.cs +++ b/Charts/Create-area-chart/.NET/Create-area-chart/Program.cs @@ -55,7 +55,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Create-bar-of-pie-chart.csproj b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Create-bar-of-pie-chart.csproj index 037a36a4e..0f216712e 100644 --- a/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Create-bar-of-pie-chart.csproj +++ b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Create-bar-of-pie-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Output/.gitkeep b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Program.cs b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Program.cs index 2eda87d84..2166b94cc 100644 --- a/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Program.cs +++ b/Charts/Create-bar-of-pie-chart/.NET/Create-bar-of-pie-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Create-bubble-chart.csproj b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Create-bubble-chart.csproj index 0152dd165..a861e3841 100644 --- a/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Create-bubble-chart.csproj +++ b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Create-bubble-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Output/.gitkeep b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Program.cs b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Program.cs index 060e0ccbd..92efbb457 100644 --- a/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Program.cs +++ b/Charts/Create-bubble-chart/.NET/Create-bubble-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Create-chart-from-Excel-file.csproj b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Create-chart-from-Excel-file.csproj index d0493741e..0b80f5420 100644 --- a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Create-chart-from-Excel-file.csproj +++ b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Create-chart-from-Excel-file.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Excel_Template.xlsx b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Data/Excel_Template.xlsx similarity index 100% rename from Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Excel_Template.xlsx rename to Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Data/Excel_Template.xlsx diff --git a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Output/.gitkeep b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Program.cs b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Program.cs index a03ec7c77..4c32884a5 100644 --- a/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Program.cs +++ b/Charts/Create-chart-from-Excel-file/.NET/Create-chart-from-Excel-file/Program.cs @@ -17,7 +17,7 @@ static void Main(string[] args) //Adds paragraph to the section. IWParagraph paragraph = sec.AddParagraph(); //Loads the excel file as stream. - Stream excelStream = File.OpenRead(Path.GetFullPath(@"../../../Excel_Template.xlsx")); + Stream excelStream = File.OpenRead(Path.GetFullPath(@"Data/Excel_Template.xlsx")); //Creates and Appends chart to the paragraph with excel stream as parameter. WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Sets chart type and title. @@ -34,7 +34,7 @@ static void Main(string[] args) //Sets position of legend. chart.Legend.Position = OfficeLegendPosition.Bottom; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Create-chart-from-scratch.csproj b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Create-chart-from-scratch.csproj index eb536a9eb..97b16a15f 100644 --- a/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Create-chart-from-scratch.csproj +++ b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Create-chart-from-scratch.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Output/.gitkeep b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Program.cs b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Program.cs index 61a18a840..d9e6c391c 100644 --- a/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Program.cs +++ b/Charts/Create-chart-from-scratch/.NET/Create-chart-from-scratch/Program.cs @@ -61,7 +61,7 @@ static void Main(string[] args) //Sets category labels. chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 11, 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/Create-clustered-bar-chart-using-dynamic-data.csproj b/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/Create-clustered-bar-chart-using-dynamic-data.csproj index a4bcf3c80..7b8769690 100644 --- a/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/Create-clustered-bar-chart-using-dynamic-data.csproj +++ b/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/Create-clustered-bar-chart-using-dynamic-data.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/packages.config b/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/packages.config index ff796ce92..6be96b6c5 100644 --- a/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/packages.config +++ b/Charts/Create-clustered-bar-chart-using-dynamic-data/.NET-Framework/Create-clustered-bar-chart-using-dynamic-data/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Create-clustered-bar-chart.csproj b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Create-clustered-bar-chart.csproj index 0152dd165..a861e3841 100644 --- a/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Create-clustered-bar-chart.csproj +++ b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Create-clustered-bar-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Output/.gitkeep b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Program.cs b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Program.cs index 804baaf42..b887f2508 100644 --- a/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Program.cs +++ b/Charts/Create-clustered-bar-chart/.NET/Create-clustered-bar-chart/Program.cs @@ -49,7 +49,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Create-clustered-bar-cone-chart.csproj b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Create-clustered-bar-cone-chart.csproj index 67962e41b..d27005bd4 100644 --- a/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Create-clustered-bar-cone-chart.csproj +++ b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Create-clustered-bar-cone-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Output/.gitkeep b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Program.cs b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Program.cs index a56f74dd0..a1bce1cac 100644 --- a/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Program.cs +++ b/Charts/Create-clustered-bar-cone-chart/.NET/Create-clustered-bar-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Bar_Clustered; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Create-clustered-bar-cylinder-chart.csproj b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Create-clustered-bar-cylinder-chart.csproj index 5fdce72b2..c1927e1c1 100644 --- a/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Create-clustered-bar-cylinder-chart.csproj +++ b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Create-clustered-bar-cylinder-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Output/.gitkeep b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Program.cs b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Program.cs index 0cbd944e6..9ecd2d64b 100644 --- a/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Program.cs +++ b/Charts/Create-clustered-bar-cylinder-chart/.NET/Create-clustered-bar-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Bar_Clustered; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Create-clustered-bar-pyramid-chart.csproj b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Create-clustered-bar-pyramid-chart.csproj index a19e8bd5d..9900d7662 100644 --- a/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Create-clustered-bar-pyramid-chart.csproj +++ b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Create-clustered-bar-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Output/.gitkeep b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Program.cs b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Program.cs index df7bc5bb0..69ee9c5f5 100644 --- a/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Program.cs +++ b/Charts/Create-clustered-bar-pyramid-chart/.NET/Create-clustered-bar-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Create-clustered-cone-chart.csproj b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Create-clustered-cone-chart.csproj index 003a72630..7a63b61b4 100644 --- a/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Create-clustered-cone-chart.csproj +++ b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Create-clustered-cone-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Output/.gitkeep b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Program.cs b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Program.cs index 2bf25bd69..67f602d73 100644 --- a/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Program.cs +++ b/Charts/Create-clustered-cone-chart/.NET/Create-clustered-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Clustered; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Create-clustered-cylinder-chart.csproj b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Create-clustered-cylinder-chart.csproj index 91351474e..4c67916c6 100644 --- a/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Create-clustered-cylinder-chart.csproj +++ b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Create-clustered-cylinder-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Output/.gitkeep b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Program.cs b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Program.cs index 6deea6271..050f6f32c 100644 --- a/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Program.cs +++ b/Charts/Create-clustered-cylinder-chart/.NET/Create-clustered-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Clustered; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Create-clustered-pyramid-chart.csproj b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Create-clustered-pyramid-chart.csproj index 94dd2a8d1..37fa61859 100644 --- a/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Create-clustered-pyramid-chart.csproj +++ b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Create-clustered-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Output/.gitkeep b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Program.cs b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Program.cs index eb58b4058..bee3c61b4 100644 --- a/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Program.cs +++ b/Charts/Create-clustered-pyramid-chart/.NET/Create-clustered-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Create-column-3D-chart.csproj b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Create-column-3D-chart.csproj index e8d0e8b7e..0f49c5d92 100644 --- a/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Create-column-3D-chart.csproj +++ b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Create-column-3D-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Output/.gitkeep b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Program.cs b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Program.cs index 678a909ff..3c270506a 100644 --- a/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Program.cs +++ b/Charts/Create-column-3D-chart/.NET/Create-column-3D-chart/Program.cs @@ -51,7 +51,7 @@ static void Main(string[] args) chart.Perspective = 0; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-combination-chart/.NET/Create-combination-chart/Create-combination-chart.csproj b/Charts/Create-combination-chart/.NET/Create-combination-chart/Create-combination-chart.csproj index 012258c29..2b99ebee4 100644 --- a/Charts/Create-combination-chart/.NET/Create-combination-chart/Create-combination-chart.csproj +++ b/Charts/Create-combination-chart/.NET/Create-combination-chart/Create-combination-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-combination-chart/.NET/Create-combination-chart/Output/.gitkeep b/Charts/Create-combination-chart/.NET/Create-combination-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-combination-chart/.NET/Create-combination-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-combination-chart/.NET/Create-combination-chart/Program.cs b/Charts/Create-combination-chart/.NET/Create-combination-chart/Program.cs index 1597e6b0d..6dae55a67 100644 --- a/Charts/Create-combination-chart/.NET/Create-combination-chart/Program.cs +++ b/Charts/Create-combination-chart/.NET/Create-combination-chart/Program.cs @@ -81,7 +81,7 @@ static void Main(string[] args) //Set secondary axis on right side. chart.SecondaryValueAxis.TickLabelPosition = OfficeTickLabelPosition.TickLabelPosition_High; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Create-contour-surface-chart.csproj b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Create-contour-surface-chart.csproj index cba9f83e3..a5b5bed66 100644 --- a/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Create-contour-surface-chart.csproj +++ b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Create-contour-surface-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Output/.gitkeep b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Program.cs b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Program.cs index a1268badb..81bdb2c05 100644 --- a/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Program.cs +++ b/Charts/Create-contour-surface-chart/.NET/Create-contour-surface-chart/Program.cs @@ -59,7 +59,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-custom-chart/.NET/Create-custom-chart/Create-custom-chart.csproj b/Charts/Create-custom-chart/.NET/Create-custom-chart/Create-custom-chart.csproj index 626523d4a..8d2e7ecbc 100644 --- a/Charts/Create-custom-chart/.NET/Create-custom-chart/Create-custom-chart.csproj +++ b/Charts/Create-custom-chart/.NET/Create-custom-chart/Create-custom-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-custom-chart/.NET/Create-custom-chart/Output/.gitkeep b/Charts/Create-custom-chart/.NET/Create-custom-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-custom-chart/.NET/Create-custom-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-custom-chart/.NET/Create-custom-chart/Program.cs b/Charts/Create-custom-chart/.NET/Create-custom-chart/Program.cs index f526a6fcb..396082975 100644 --- a/Charts/Create-custom-chart/.NET/Create-custom-chart/Program.cs +++ b/Charts/Create-custom-chart/.NET/Create-custom-chart/Program.cs @@ -53,7 +53,7 @@ static void Main(string[] args) //Sets position of legend. chart.Legend.Position = OfficeLegendPosition.Bottom; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Create-doughnut-chart.csproj b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Create-doughnut-chart.csproj index 6d84530d7..dc2a0cedd 100644 --- a/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Create-doughnut-chart.csproj +++ b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Create-doughnut-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Output/.gitkeep b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Program.cs b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Program.cs index 4c3b0187f..ffa33c4aa 100644 --- a/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Program.cs +++ b/Charts/Create-doughnut-chart/.NET/Create-doughnut-chart/Program.cs @@ -58,7 +58,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Create-exploded-doughnut-chart.csproj b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Create-exploded-doughnut-chart.csproj index cf2f044fb..766684d00 100644 --- a/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Create-exploded-doughnut-chart.csproj +++ b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Create-exploded-doughnut-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Output/.gitkeep b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Program.cs b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Program.cs index 493382206..33b2cc7d8 100644 --- a/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Program.cs +++ b/Charts/Create-exploded-doughnut-chart/.NET/Create-exploded-doughnut-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Create-exploded-pie-chart.csproj b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Create-exploded-pie-chart.csproj index ad7766f5f..dfd8d764f 100644 --- a/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Create-exploded-pie-chart.csproj +++ b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Create-exploded-pie-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Output/.gitkeep b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Program.cs b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Program.cs index e6f417601..53edd6569 100644 --- a/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Program.cs +++ b/Charts/Create-exploded-pie-chart/.NET/Create-exploded-pie-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Create-filled-radar-chart.csproj b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Create-filled-radar-chart.csproj index 6bd4484b1..be60b2cf8 100644 --- a/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Create-filled-radar-chart.csproj +++ b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Create-filled-radar-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Output/.gitkeep b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Program.cs b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Program.cs index 5a5f08635..fc7dbed7e 100644 --- a/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Program.cs +++ b/Charts/Create-filled-radar-chart/.NET/Create-filled-radar-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Create-high-low-close-chart.csproj b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Create-high-low-close-chart.csproj index fed962859..8f47d997c 100644 --- a/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Create-high-low-close-chart.csproj +++ b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Create-high-low-close-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Output/.gitkeep b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Program.cs b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Program.cs index f6da9deb2..b1b8014af 100644 --- a/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Program.cs +++ b/Charts/Create-high-low-close-chart/.NET/Create-high-low-close-chart/Program.cs @@ -81,7 +81,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Create-line-chart-with-different-color-series.csproj b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Create-line-chart-with-different-color-series.csproj index 59f2ff606..5a59864b2 100644 --- a/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Create-line-chart-with-different-color-series.csproj +++ b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Create-line-chart-with-different-color-series.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Output/.gitkeep b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Program.cs b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Program.cs index 333f13fee..206d88d7c 100644 --- a/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Program.cs +++ b/Charts/Create-line-chart-with-different-color-series/.NET/Create-line-chart-with-different-color-series/Program.cs @@ -68,7 +68,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-line-chart/.NET/Create-line-chart/Create-line-chart.csproj b/Charts/Create-line-chart/.NET/Create-line-chart/Create-line-chart.csproj index 04ce0701e..316f6f0ed 100644 --- a/Charts/Create-line-chart/.NET/Create-line-chart/Create-line-chart.csproj +++ b/Charts/Create-line-chart/.NET/Create-line-chart/Create-line-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-line-chart/.NET/Create-line-chart/Output/.gitkeep b/Charts/Create-line-chart/.NET/Create-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-line-chart/.NET/Create-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-line-chart/.NET/Create-line-chart/Program.cs b/Charts/Create-line-chart/.NET/Create-line-chart/Program.cs index fd120a651..ec6422f22 100644 --- a/Charts/Create-line-chart/.NET/Create-line-chart/Program.cs +++ b/Charts/Create-line-chart/.NET/Create-line-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Create-line-with-markers-chart.csproj b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Create-line-with-markers-chart.csproj index 0836729cf..e6a59153d 100644 --- a/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Create-line-with-markers-chart.csproj +++ b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Create-line-with-markers-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Output/.gitkeep b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Program.cs b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Program.cs index 1356d8c6a..fcacafdc6 100644 --- a/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Program.cs +++ b/Charts/Create-line-with-markers-chart/.NET/Create-line-with-markers-chart/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Create-open-high-low-close-chart.csproj b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Create-open-high-low-close-chart.csproj index bbfdef771..9c6e58edf 100644 --- a/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Create-open-high-low-close-chart.csproj +++ b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Create-open-high-low-close-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Output/.gitkeep b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Program.cs b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Program.cs index 1f5169311..128bf0466 100644 --- a/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Program.cs +++ b/Charts/Create-open-high-low-close-chart/.NET/Create-open-high-low-close-chart/Program.cs @@ -92,7 +92,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-pie-chart/.NET/Create-pie-chart/Create-pie-chart.csproj b/Charts/Create-pie-chart/.NET/Create-pie-chart/Create-pie-chart.csproj index 12a834417..b16c74194 100644 --- a/Charts/Create-pie-chart/.NET/Create-pie-chart/Create-pie-chart.csproj +++ b/Charts/Create-pie-chart/.NET/Create-pie-chart/Create-pie-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-pie-chart/.NET/Create-pie-chart/Output/.gitkeep b/Charts/Create-pie-chart/.NET/Create-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-pie-chart/.NET/Create-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-pie-chart/.NET/Create-pie-chart/Program.cs b/Charts/Create-pie-chart/.NET/Create-pie-chart/Program.cs index 4dda3c1be..83b6a4960 100644 --- a/Charts/Create-pie-chart/.NET/Create-pie-chart/Program.cs +++ b/Charts/Create-pie-chart/.NET/Create-pie-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Create-pie-of-pie-chart.csproj b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Create-pie-of-pie-chart.csproj index 03a66d06e..8ba0da192 100644 --- a/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Create-pie-of-pie-chart.csproj +++ b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Create-pie-of-pie-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Output/.gitkeep b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Program.cs b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Program.cs index 90229f2ab..ab1b1a180 100644 --- a/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Program.cs +++ b/Charts/Create-pie-of-pie-chart/.NET/Create-pie-of-pie-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-radar-chart/.NET/Create-radar-chart/Create-radar-chart.csproj b/Charts/Create-radar-chart/.NET/Create-radar-chart/Create-radar-chart.csproj index e6d1ee94d..55c905ab5 100644 --- a/Charts/Create-radar-chart/.NET/Create-radar-chart/Create-radar-chart.csproj +++ b/Charts/Create-radar-chart/.NET/Create-radar-chart/Create-radar-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-radar-chart/.NET/Create-radar-chart/Output/.gitkeep b/Charts/Create-radar-chart/.NET/Create-radar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-radar-chart/.NET/Create-radar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-radar-chart/.NET/Create-radar-chart/Program.cs b/Charts/Create-radar-chart/.NET/Create-radar-chart/Program.cs index 1b9382d15..fda9c292e 100644 --- a/Charts/Create-radar-chart/.NET/Create-radar-chart/Program.cs +++ b/Charts/Create-radar-chart/.NET/Create-radar-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Create-radar-with-markers-chart.csproj b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Create-radar-with-markers-chart.csproj index 266cfaa97..abe639287 100644 --- a/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Create-radar-with-markers-chart.csproj +++ b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Create-radar-with-markers-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Output/.gitkeep b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Program.cs b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Program.cs index 9eaf9d17c..f40142e1d 100644 --- a/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Program.cs +++ b/Charts/Create-radar-with-markers-chart/.NET/Create-radar-with-markers-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Create-scatter-line-chart.csproj b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Create-scatter-line-chart.csproj index dcaddf27d..39a8c3e0f 100644 --- a/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Create-scatter-line-chart.csproj +++ b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Create-scatter-line-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Output/.gitkeep b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Program.cs b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Program.cs index f3d72e57b..39123bde1 100644 --- a/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Program.cs +++ b/Charts/Create-scatter-line-chart/.NET/Create-scatter-line-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Create-scatter-line-with-markers-chart.csproj b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Create-scatter-line-with-markers-chart.csproj index 3edafec43..e4a9b38d5 100644 --- a/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Create-scatter-line-with-markers-chart.csproj +++ b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Create-scatter-line-with-markers-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Output/.gitkeep b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Program.cs b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Program.cs index e9707a407..199052794 100644 --- a/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Program.cs +++ b/Charts/Create-scatter-line-with-markers-chart/.NET/Create-scatter-line-with-markers-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Create-scatter-markers-chart.csproj b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Create-scatter-markers-chart.csproj index 8fcb16553..14c35cb8c 100644 --- a/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Create-scatter-markers-chart.csproj +++ b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Create-scatter-markers-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Output/.gitkeep b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Program.cs b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Program.cs index c6bda235e..c81dfdab4 100644 --- a/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Program.cs +++ b/Charts/Create-scatter-markers-chart/.NET/Create-scatter-markers-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Create-scatter-with-smooth-line-and-markers.csproj b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Create-scatter-with-smooth-line-and-markers.csproj index d59852bf2..b6c51d72c 100644 --- a/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Create-scatter-with-smooth-line-and-markers.csproj +++ b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Create-scatter-with-smooth-line-and-markers.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Output/.gitkeep b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Program.cs b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Program.cs index 92613a97c..cc17090f9 100644 --- a/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Program.cs +++ b/Charts/Create-scatter-with-smooth-line-and-markers/.NET/Create-scatter-with-smooth-line-and-markers/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Create-scatter-with-smooth-line-chart.csproj b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Create-scatter-with-smooth-line-chart.csproj index 35f66b149..13efc18b4 100644 --- a/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Create-scatter-with-smooth-line-chart.csproj +++ b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Create-scatter-with-smooth-line-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Output/.gitkeep b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Program.cs b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Program.cs index 375cf2345..03c2660cf 100644 --- a/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Program.cs +++ b/Charts/Create-scatter-with-smooth-line-chart/.NET/Create-scatter-with-smooth-line-chart/Program.cs @@ -47,7 +47,7 @@ static void Main(string[] args) //Set legend. chart.HasLegend = false; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Create-stacked-area-chart.csproj b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Create-stacked-area-chart.csproj index 5f5323147..af28c57e8 100644 --- a/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Create-stacked-area-chart.csproj +++ b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Create-stacked-area-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Output/.gitkeep b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Program.cs b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Program.cs index e99a40d44..d74d3de89 100644 --- a/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Program.cs +++ b/Charts/Create-stacked-area-chart/.NET/Create-stacked-area-chart/Program.cs @@ -55,7 +55,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Create-stacked-bar-chart.csproj b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Create-stacked-bar-chart.csproj index 88766d535..eedc7c171 100644 --- a/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Create-stacked-bar-chart.csproj +++ b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Create-stacked-bar-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Output/.gitkeep b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Program.cs b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Program.cs index da5f32791..aa7975462 100644 --- a/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Program.cs +++ b/Charts/Create-stacked-bar-chart/.NET/Create-stacked-bar-chart/Program.cs @@ -50,7 +50,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Create-stacked-bar-cone-chart.csproj b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Create-stacked-bar-cone-chart.csproj index 916124fa3..7abfffdb5 100644 --- a/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Create-stacked-bar-cone-chart.csproj +++ b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Create-stacked-bar-cone-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Output/.gitkeep b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Program.cs b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Program.cs index 985ee57eb..dfce80f5f 100644 --- a/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Program.cs +++ b/Charts/Create-stacked-bar-cone-chart/.NET/Create-stacked-bar-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Bar_Stacked; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Create-stacked-bar-cylinder-chart.csproj b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Create-stacked-bar-cylinder-chart.csproj index 6c519fba2..c5f4c0e19 100644 --- a/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Create-stacked-bar-cylinder-chart.csproj +++ b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Create-stacked-bar-cylinder-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Output/.gitkeep b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Program.cs b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Program.cs index a86c98fc6..2a9c73601 100644 --- a/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Program.cs +++ b/Charts/Create-stacked-bar-cylinder-chart/.NET/Create-stacked-bar-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Bar_Stacked; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Create-stacked-bar-pyramid-chart.csproj b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Create-stacked-bar-pyramid-chart.csproj index 9e50a2afc..887428a4d 100644 --- a/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Create-stacked-bar-pyramid-chart.csproj +++ b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Create-stacked-bar-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Output/.gitkeep b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Program.cs b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Program.cs index 51c9bd9cf..d2f05da4b 100644 --- a/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Program.cs +++ b/Charts/Create-stacked-bar-pyramid-chart/.NET/Create-stacked-bar-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Create-stacked-column-chart.csproj b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Create-stacked-column-chart.csproj index 8af7aeb60..2998e7413 100644 --- a/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Create-stacked-column-chart.csproj +++ b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Create-stacked-column-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Output/.gitkeep b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Program.cs b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Program.cs index 6aa642390..a8d383ef4 100644 --- a/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Program.cs +++ b/Charts/Create-stacked-column-chart/.NET/Create-stacked-column-chart/Program.cs @@ -50,7 +50,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Create-stacked-cone-chart.csproj b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Create-stacked-cone-chart.csproj index 0d281b4e4..f1aef2348 100644 --- a/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Create-stacked-cone-chart.csproj +++ b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Create-stacked-cone-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Output/.gitkeep b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Program.cs b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Program.cs index 32a0e409d..19382ab00 100644 --- a/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Program.cs +++ b/Charts/Create-stacked-cone-chart/.NET/Create-stacked-cone-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cone_Stacked; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Create-stacked-cylinder-chart.csproj b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Create-stacked-cylinder-chart.csproj index 9300a857d..77f2ad6ea 100644 --- a/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Create-stacked-cylinder-chart.csproj +++ b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Create-stacked-cylinder-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Output/.gitkeep b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Program.cs b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Program.cs index 2284e76ef..2506802ae 100644 --- a/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Program.cs +++ b/Charts/Create-stacked-cylinder-chart/.NET/Create-stacked-cylinder-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) //Set chart type. chart.ChartType = OfficeChartType.Cylinder_Stacked; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Create-stacked-line-chart.csproj b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Create-stacked-line-chart.csproj index 9840bc88f..d94cd2971 100644 --- a/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Create-stacked-line-chart.csproj +++ b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Create-stacked-line-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Output/.gitkeep b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Program.cs b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Program.cs index c6282f25c..a09bddcba 100644 --- a/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Program.cs +++ b/Charts/Create-stacked-line-chart/.NET/Create-stacked-line-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Create-stacked-line-with-markers-chart.csproj b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Create-stacked-line-with-markers-chart.csproj index 58e3fd498..a93e52c03 100644 --- a/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Create-stacked-line-with-markers-chart.csproj +++ b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Create-stacked-line-with-markers-chart.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Output/.gitkeep b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Program.cs b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Program.cs index 30dd13075..5f1745052 100644 --- a/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Program.cs +++ b/Charts/Create-stacked-line-with-markers-chart/.NET/Create-stacked-line-with-markers-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Create-stacked-pyramid-chart.csproj b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Create-stacked-pyramid-chart.csproj index 2da50c909..2a9b1ae70 100644 --- a/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Create-stacked-pyramid-chart.csproj +++ b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Create-stacked-pyramid-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Output/.gitkeep b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Program.cs b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Program.cs index 828ed4ede..2908b0c0a 100644 --- a/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Program.cs +++ b/Charts/Create-stacked-pyramid-chart/.NET/Create-stacked-pyramid-chart/Program.cs @@ -66,7 +66,7 @@ static void Main(string[] args) chart.Rotation = 50; chart.Elevation = 20; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Create-volume-high-low-close-chart.csproj b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Create-volume-high-low-close-chart.csproj index 7057de7d8..4bbf01710 100644 --- a/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Create-volume-high-low-close-chart.csproj +++ b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Create-volume-high-low-close-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Output/.gitkeep b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Program.cs b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Program.cs index ea9543ba0..965dc67ba 100644 --- a/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Program.cs +++ b/Charts/Create-volume-high-low-close-chart/.NET/Create-volume-high-low-close-chart/Program.cs @@ -85,7 +85,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Create-volume-open-high-low-close.csproj b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Create-volume-open-high-low-close.csproj index 940fe50f5..58e91dea7 100644 --- a/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Create-volume-open-high-low-close.csproj +++ b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Create-volume-open-high-low-close.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Output/.gitkeep b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Program.cs b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Program.cs index 8099f7c34..ce43fcef1 100644 --- a/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Program.cs +++ b/Charts/Create-volume-open-high-low-close/.NET/Create-volume-open-high-low-close/Program.cs @@ -98,7 +98,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Create-waterfall-chart.csproj b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Create-waterfall-chart.csproj index 2e4d23881..cdc669de3 100644 --- a/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Create-waterfall-chart.csproj +++ b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Create-waterfall-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Output/.gitkeep b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Program.cs b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Program.cs index 6dbe2480d..28a6ea369 100644 --- a/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Program.cs +++ b/Charts/Create-waterfall-chart/.NET/Create-waterfall-chart/Program.cs @@ -51,7 +51,7 @@ static void Main(string[] args) chart.Legend.Position = OfficeLegendPosition.Right; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Create-wireframe-3D-surface-chart.csproj b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Create-wireframe-3D-surface-chart.csproj index ec25fb352..8f9660403 100644 --- a/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Create-wireframe-3D-surface-chart.csproj +++ b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Create-wireframe-3D-surface-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Output/.gitkeep b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Program.cs b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Program.cs index 11079cd95..5795a1725 100644 --- a/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Program.cs +++ b/Charts/Create-wireframe-3D-surface-chart/.NET/Create-wireframe-3D-surface-chart/Program.cs @@ -63,7 +63,7 @@ static void Main(string[] args) chart.Elevation = 20; chart.Perspective = 20; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Create-wireframe-contour-surface-chart.csproj b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Create-wireframe-contour-surface-chart.csproj index 2d12494c0..f2393d271 100644 --- a/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Create-wireframe-contour-surface-chart.csproj +++ b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Create-wireframe-contour-surface-chart.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Output/.gitkeep b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Program.cs b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Program.cs index 3f2d4772b..12d073b8d 100644 --- a/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Program.cs +++ b/Charts/Create-wireframe-contour-surface-chart/.NET/Create-wireframe-contour-surface-chart/Program.cs @@ -59,7 +59,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Add-Drop-Lines.csproj b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Add-Drop-Lines.csproj index e8943ada2..afe44140f 100644 --- a/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Add-Drop-Lines.csproj +++ b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Add-Drop-Lines.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,5 +10,13 @@ + + + Always + + + Always + + diff --git a/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Output/.gitkeep b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Program.cs b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Program.cs index 34e4b340a..45f27db50 100644 --- a/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Program.cs +++ b/Charts/Fomat-Series/Add-Drop-Lines/.NET/Add-Drop-Lines/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -27,7 +27,7 @@ static void Main(string[] args) chart.Series[0].SerieFormat.CommonSerieOptions.DropLines.LinePattern = OfficeChartLinePattern.Solid; chart.Series[0].SerieFormat.CommonSerieOptions.DropLines.LineWeight = OfficeChartLineWeight.Medium; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Add-High-Low-Lines.csproj b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Add-High-Low-Lines.csproj index 73fe11db1..497f29682 100644 --- a/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Add-High-Low-Lines.csproj +++ b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Add-High-Low-Lines.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Output/.gitkeep b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Program.cs b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Program.cs index 7cf24ab9f..fd17df849 100644 --- a/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Program.cs +++ b/Charts/Fomat-Series/Add-High-Low-Lines/.NET/Add-High-Low-Lines/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -26,7 +26,7 @@ static void Main(string[] args) chart.Series[0].SerieFormat.CommonSerieOptions.HighLowLines.LinePattern = OfficeChartLinePattern.Solid; chart.Series[0].SerieFormat.CommonSerieOptions.HighLowLines.LineWeight = OfficeChartLineWeight.Medium; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Add-Series-Lines.csproj b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Add-Series-Lines.csproj index 79c708db2..00e9b9519 100644 --- a/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Add-Series-Lines.csproj +++ b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Add-Series-Lines.csproj @@ -10,5 +10,13 @@ + + + Always + + + Always + + diff --git a/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Output/.gitkeep b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Program.cs b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Program.cs index 848dd99ea..ce549bf5f 100644 --- a/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Program.cs +++ b/Charts/Fomat-Series/Add-Series-Lines/.NET/Add-Series-Lines/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -29,7 +29,7 @@ static void Main(string[] args) chart.Series[0].SerieFormat.CommonSerieOptions.PieSeriesLine.LinePattern = OfficeChartLinePattern.Solid; chart.Series[0].SerieFormat.CommonSerieOptions.PieSeriesLine.LineWeight = OfficeChartLineWeight.Medium; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Chart-Bar-Spacing.csproj b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Chart-Bar-Spacing.csproj index 25028bef8..d80ea2290 100644 --- a/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Chart-Bar-Spacing.csproj +++ b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Chart-Bar-Spacing.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Output/.gitkeep b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Program.cs b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Program.cs index 2a3223ee9..52c1efe58 100644 --- a/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Program.cs +++ b/Charts/Fomat-Series/Chart-Bar-Spacing/.NET/Chart-Bar-Spacing/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -25,7 +25,7 @@ static void Main(string[] args) //Adding space between bars of different categories. chart.Series[0].SerieFormat.CommonSerieOptions.GapWidth = 100; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Explode-Pie-Chart.csproj b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Explode-Pie-Chart.csproj index 515ec8e93..3d1a7e245 100644 --- a/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Explode-Pie-Chart.csproj +++ b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Explode-Pie-Chart.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Output/.gitkeep b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Program.cs b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Program.cs index 9ba09f169..a392d36f2 100644 --- a/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Program.cs +++ b/Charts/Fomat-Series/Explode-Pie-Chart/.NET/Explode-Pie-Chart/Program.cs @@ -11,7 +11,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -23,7 +23,7 @@ static void Main(string[] args) //Exploding the pie chart to 40%. chart.Series[0].SerieFormat.Percent = 40; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Fomat-Series.csproj b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Fomat-Series.csproj index 4c73adec2..98974a6f0 100644 --- a/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Fomat-Series.csproj +++ b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Fomat-Series.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Output/.gitkeep b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Program.cs b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Program.cs index 0c18fb2c6..af2db8be2 100644 --- a/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Program.cs +++ b/Charts/Fomat-Series/Format-Series/.NET/Fomat-Series/Program.cs @@ -69,7 +69,7 @@ static void Main(string[] args) chart.Legend.Position = OfficeLegendPosition.Bottom; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Format-Axis/.NET/Format-Axis/Format-Axis.csproj b/Charts/Format-Axis/.NET/Format-Axis/Format-Axis.csproj index b7f97b11a..278e8b41c 100644 --- a/Charts/Format-Axis/.NET/Format-Axis/Format-Axis.csproj +++ b/Charts/Format-Axis/.NET/Format-Axis/Format-Axis.csproj @@ -10,4 +10,12 @@ + + + Always + + + Always + + diff --git a/Charts/Format-Axis/.NET/Format-Axis/Output/.gitkeep b/Charts/Format-Axis/.NET/Format-Axis/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Axis/.NET/Format-Axis/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Axis/.NET/Format-Axis/Program.cs b/Charts/Format-Axis/.NET/Format-Axis/Program.cs index 77802b985..f10dc51bc 100644 --- a/Charts/Format-Axis/.NET/Format-Axis/Program.cs +++ b/Charts/Format-Axis/.NET/Format-Axis/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -75,7 +75,7 @@ static void Main(string[] args) //Showing minor gridlines. chart.PrimaryValueAxis.HasMinorGridLines = false; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Format-Chart-Area.csproj b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Format-Chart-Area.csproj index bcd096b57..ea44dd85f 100644 --- a/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Format-Chart-Area.csproj +++ b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Format-Chart-Area.csproj @@ -13,4 +13,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Output/.gitkeep b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Program.cs b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Program.cs index 94712a600..ec5f8ca38 100644 --- a/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Program.cs +++ b/Charts/Format-Chart-Area/.NET/Format-Chart-Area/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -35,7 +35,7 @@ static void Main(string[] args) chartArea.Fill.BackColor = Syncfusion.Drawing.Color.FromArgb(205, 217, 234); chartArea.Fill.ForeColor = Syncfusion.Drawing.Color.White; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Format-Chart-Title.csproj b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Format-Chart-Title.csproj index b32bff582..fbecb9d4d 100644 --- a/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Format-Chart-Title.csproj +++ b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Format-Chart-Title.csproj @@ -10,4 +10,12 @@ + + + Always + + + Always + + diff --git a/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Output/.gitkeep b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Program.cs b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Program.cs index 3d82ed79c..564ae8981 100644 --- a/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Program.cs +++ b/Charts/Format-Chart-Title/.NET/Format-Chart-Title/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -35,7 +35,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Right; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Format-Data-Labels.csproj b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Format-Data-Labels.csproj index 9380cd2c8..31a4ce219 100644 --- a/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Format-Data-Labels.csproj +++ b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Format-Data-Labels.csproj @@ -10,5 +10,13 @@ + + + Always + + + Always + + diff --git a/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Output/.gitkeep b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Program.cs b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Program.cs index 1de559eb1..cb88cfc5f 100644 --- a/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Program.cs +++ b/Charts/Format-Data-Labels/.NET/Format-Data-Labels/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -33,7 +33,7 @@ static void Main(string[] args) chart.Series[i].DataPoints.DefaultDataPoint.DataLabels.Position = OfficeDataLabelPosition.Center; } - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Format-Legend/.NET/Format-Legend/Format-Legend.csproj b/Charts/Format-Legend/.NET/Format-Legend/Format-Legend.csproj index 324706af4..b95889abd 100644 --- a/Charts/Format-Legend/.NET/Format-Legend/Format-Legend.csproj +++ b/Charts/Format-Legend/.NET/Format-Legend/Format-Legend.csproj @@ -10,5 +10,13 @@ + + + Always + + + Always + + diff --git a/Charts/Format-Legend/.NET/Format-Legend/Output/.gitkeep b/Charts/Format-Legend/.NET/Format-Legend/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Legend/.NET/Format-Legend/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Legend/.NET/Format-Legend/Program.cs b/Charts/Format-Legend/.NET/Format-Legend/Program.cs index ff3bdb1df..1f9cd50d7 100644 --- a/Charts/Format-Legend/.NET/Format-Legend/Program.cs +++ b/Charts/Format-Legend/.NET/Format-Legend/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Open an existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -55,7 +55,7 @@ static void Main(string[] args) //Legend without overlapping the chart. chart.Legend.IncludeInLayout = true; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Format-Plot-Area.csproj b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Format-Plot-Area.csproj index 8259640d8..1a1605fd9 100644 --- a/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Format-Plot-Area.csproj +++ b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Format-Plot-Area.csproj @@ -1,4 +1,4 @@ - + Exe @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Output/.gitkeep b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Program.cs b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Program.cs index 16f7f8c08..5f27bf6ed 100644 --- a/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Program.cs +++ b/Charts/Format-Plot-Area/.NET/Format-Plot-Area/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Opens an existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -36,7 +36,7 @@ static void Main(string[] args) chartPlotArea.Fill.BackColor = Color.FromArgb(205, 217, 234); chartPlotArea.Fill.ForeColor = Color.White; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Template.docx b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Data/Template.docx similarity index 100% rename from Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Template.docx rename to Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Data/Template.docx diff --git a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Modify-an-existing-chart-data.csproj b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Modify-an-existing-chart-data.csproj index 901764368..e632cf7f4 100644 --- a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Modify-an-existing-chart-data.csproj +++ b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Modify-an-existing-chart-data.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Output/.gitkeep b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Program.cs b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Program.cs index 413b39fa9..aec8db188 100644 --- a/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/Program.cs +++ b/Charts/Modify-an-existing-chart-data/.NET/Modify-an-existing-chart-data/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Refreshes chart data to set the modified values. chart.Refresh(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Template.docx b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Data/Template.docx similarity index 100% rename from Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Template.docx rename to Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Data/Template.docx diff --git a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Modify-appearance-of-existing-chart.csproj b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Modify-appearance-of-existing-chart.csproj index 045909587..4e6b3ef3d 100644 --- a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Modify-appearance-of-existing-chart.csproj +++ b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Modify-appearance-of-existing-chart.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Output/.gitkeep b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Program.cs b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Program.cs index b6e6f9df5..117cba620 100644 --- a/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Program.cs +++ b/Charts/Modify-appearance-of-existing-chart/.NET/Modify-appearance-of-existing-chart/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -52,7 +52,7 @@ static void Main(string[] args) chartPlotArea.Fill.BackColor = Syncfusion.Drawing.Color.FromArgb(205, 217, 234); chartPlotArea.Fill.ForeColor = Syncfusion.Drawing.Color.White; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Template.docx b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Data/Template.docx similarity index 100% rename from Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Template.docx rename to Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Data/Template.docx diff --git a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Modify-plot-area-and-legend-of-chart.csproj b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Modify-plot-area-and-legend-of-chart.csproj index b67e23d9e..4f0f4e755 100644 --- a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Modify-plot-area-and-legend-of-chart.csproj +++ b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Modify-plot-area-and-legend-of-chart.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Output/.gitkeep b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Program.cs b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Program.cs index 63a347be9..6b953ed44 100644 --- a/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Program.cs +++ b/Charts/Modify-plot-area-and-legend-of-chart/.NET/Modify-plot-area-and-legend-of-chart/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -58,7 +58,7 @@ static void Main(string[] args) chart.Legend.Layout.Width = 100; chart.Legend.Layout.WidthMode = LayoutModes.factor; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Output/.gitkeep b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Positioning-chart-elements.csproj b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Positioning-chart-elements.csproj index 386df9481..38dfeace8 100644 --- a/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Positioning-chart-elements.csproj +++ b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Positioning-chart-elements.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Program.cs b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Program.cs index f0b7de597..4c82ba386 100644 --- a/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Program.cs +++ b/Charts/Positioning-chart-elements/.NET/Positioning-chart-elements/Program.cs @@ -50,7 +50,7 @@ static void Main(string[] args) chart.Legend.Layout.LeftMode = LayoutModes.factor; chart.Legend.Layout.TopMode = LayoutModes.edge; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Template.docx b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Data/Template.docx similarity index 100% rename from Charts/Refresh-chart-data/.NET/Refresh-chart-data/Template.docx rename to Charts/Refresh-chart-data/.NET/Refresh-chart-data/Data/Template.docx diff --git a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Output/.gitkeep b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Program.cs b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Program.cs index b10ff4841..d5c53372e 100644 --- a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Program.cs +++ b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -21,7 +21,7 @@ static void Main(string[] args) // or `false` to refresh only the data without evaluating formulas. chart.Refresh(false); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Refresh-chart-data.csproj b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Refresh-chart-data.csproj index d46ac34bf..4a21281ca 100644 --- a/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Refresh-chart-data.csproj +++ b/Charts/Refresh-chart-data/.NET/Refresh-chart-data/Refresh-chart-data.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Template.docx b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Data/Template.docx similarity index 100% rename from Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Template.docx rename to Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Data/Template.docx diff --git a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Output/.gitkeep b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Program.cs b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Program.cs index 962c4e283..d914e7bde 100644 --- a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Program.cs +++ b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -25,7 +25,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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Remove-chart-from-Word-document.csproj b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Remove-chart-from-Word-document.csproj index 7ba59781d..f8a92115f 100644 --- a/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Remove-chart-from-Word-document.csproj +++ b/Charts/Remove-chart-from-Word-document/.NET/Remove-chart-from-Word-document/Remove-chart-from-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Charts/Remove-chart-title/.NET/Remove-chart-title/Output/.gitkeep b/Charts/Remove-chart-title/.NET/Remove-chart-title/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Remove-chart-title/.NET/Remove-chart-title/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Remove-chart-title/.NET/Remove-chart-title/Program.cs b/Charts/Remove-chart-title/.NET/Remove-chart-title/Program.cs index 6f4824d3e..b4323fcd8 100644 --- a/Charts/Remove-chart-title/.NET/Remove-chart-title/Program.cs +++ b/Charts/Remove-chart-title/.NET/Remove-chart-title/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) //Sets category labels. chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 3, 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Remove-chart-title/.NET/Remove-chart-title/Remove-chart-title.csproj b/Charts/Remove-chart-title/.NET/Remove-chart-title/Remove-chart-title.csproj index 6c1bf6f23..5ee8ce589 100644 --- a/Charts/Remove-chart-title/.NET/Remove-chart-title/Remove-chart-title.csproj +++ b/Charts/Remove-chart-title/.NET/Remove-chart-title/Remove-chart-title.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Output/.gitkeep b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Program.cs b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Program.cs index 26be2e539..bbb48d526 100644 --- a/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Program.cs +++ b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Program.cs @@ -68,7 +68,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Set-Yaxis-interval-for-column-charts.csproj b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Set-Yaxis-interval-for-column-charts.csproj index bd410025f..598c1f66e 100644 --- a/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Set-Yaxis-interval-for-column-charts.csproj +++ b/Charts/Set-Yaxis-interval-for-column-charts/.NET/Set-Yaxis-interval-for-column-charts/Set-Yaxis-interval-for-column-charts.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Output/.gitkeep b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Program.cs b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Program.cs index eba1f105e..c13f9e816 100644 --- a/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Program.cs +++ b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Program.cs @@ -64,7 +64,7 @@ static void Main(string[] args) chart.HasLegend = true; chart.Legend.Position = OfficeLegendPosition.Bottom; //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Set-column-space-for-column-charts.csproj b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Set-column-space-for-column-charts.csproj index 4d92e87ec..d8af0f415 100644 --- a/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Set-column-space-for-column-charts.csproj +++ b/Charts/Set-column-space-for-column-charts/.NET/Set-column-space-for-column-charts/Set-column-space-for-column-charts.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart.sln b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart.sln new file mode 100644 index 000000000..a207b6e2e --- /dev/null +++ b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set-text-right-to-stacked-bar-chart", "Set-text-right-to-stacked-bar-chart\Set-text-right-to-stacked-bar-chart.csproj", "{A9848002-0422-421D-93FC-10BC0E86B426}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A9848002-0422-421D-93FC-10BC0E86B426}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A9848002-0422-421D-93FC-10BC0E86B426}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A9848002-0422-421D-93FC-10BC0E86B426}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A9848002-0422-421D-93FC-10BC0E86B426}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {309CAA54-3ADD-4B1A-8B79-3A2C01C26DA1} + EndGlobalSection +EndGlobal diff --git a/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Data/InputTemplate.xlsx b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Data/InputTemplate.xlsx new file mode 100644 index 000000000..a781dfa7a Binary files /dev/null and b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Data/InputTemplate.xlsx differ diff --git a/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Output/.gitkeep b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Program.cs b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Program.cs new file mode 100644 index 000000000..251f86caf --- /dev/null +++ b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Program.cs @@ -0,0 +1,44 @@ +using Syncfusion.DocIO.DLS; + +// Creates a new instance of WordDocument (Empty Word Document). +using (WordDocument document = new WordDocument()) +{ + // Adds a section to the document. + IWSection sec = document.AddSection(); + // Adds a paragraph to the section. + IWParagraph paragraph = sec.AddParagraph(); + // Loads the Excel file as a stream. + Stream excelStream = File.OpenRead(Path.GetFullPath("Data/InputTemplate.xlsx")); + // Creates and appends a chart to the paragraph with the Excel stream as a parameter. + // The chart is created based on the data from the Excel file (range A1:D6), with specified width and height. + WChart chart = paragraph.AppendChart(excelStream, 1, "A1:D6", 470, 300); + // Sets the chart type to Stacked Bar Chart. + chart.ChartType = Syncfusion.OfficeChart.OfficeChartType.Bar_Stacked; + // Apply chart elements. + // Sets the chart title. + chart.ChartTitle = "Stacked Bar Chart"; + // Displays data labels for the third series (Series 2). + chart.Series[2].DataPoints.DefaultDataPoint.DataLabels.IsValue = true; + + // Manually positions the data labels for each data point in the third series. + chart.Series[2].DataPoints[0].DataLabels.Text = "Label 1"; + chart.Series[2].DataPoints[0].DataLabels.Layout.ManualLayout.Left = 0.1; + chart.Series[2].DataPoints[1].DataLabels.Text = "Label 2"; + chart.Series[2].DataPoints[1].DataLabels.Layout.ManualLayout.Left = 0.1; + chart.Series[2].DataPoints[2].DataLabels.Text = "Label 3"; + chart.Series[2].DataPoints[2].DataLabels.Layout.ManualLayout.Left = 0.13; + chart.Series[2].DataPoints[3].DataLabels.Text = "Label 4"; + chart.Series[2].DataPoints[3].DataLabels.Layout.ManualLayout.Left = 0.18; + chart.Series[2].DataPoints[4].DataLabels.Text = "Label 5"; + chart.Series[2].DataPoints[4].DataLabels.Layout.ManualLayout.Left = 0.20; + + // Sets the chart legend and positions it at the bottom of the chart. + chart.HasLegend = true; + chart.Legend.Position = Syncfusion.OfficeChart.OfficeLegendPosition.Bottom; + using (FileStream outputStream = new FileStream(Path.GetFullPath("Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + // Saves the generated Word document to the specified file stream in DOCX format. + document.Save(outputStream, Syncfusion.DocIO.FormatType.Docx); + } +} + diff --git a/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Set-text-right-to-stacked-bar-chart.csproj b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Set-text-right-to-stacked-bar-chart.csproj new file mode 100644 index 000000000..f4dcb7f3c --- /dev/null +++ b/Charts/Set-text-right-to-stacked-bar-chart/.NET/Set-text-right-to-stacked-bar-chart/Set-text-right-to-stacked-bar-chart.csproj @@ -0,0 +1,27 @@ + + + + Exe + net8.0 + Set_text_right_to_stacked_bar_chart + enable + enable + + + + + + + + + Always + + + Always + + + Always + + + + diff --git a/Comments/Access-parent-comment/.NET/Access-parent-comment/Access-parent-comment.csproj b/Comments/Access-parent-comment/.NET/Access-parent-comment/Access-parent-comment.csproj index 8c3f176cd..19c861918 100644 --- a/Comments/Access-parent-comment/.NET/Access-parent-comment/Access-parent-comment.csproj +++ b/Comments/Access-parent-comment/.NET/Access-parent-comment/Access-parent-comment.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Comments/Access-parent-comment/.NET/Access-parent-comment/Template.docx b/Comments/Access-parent-comment/.NET/Access-parent-comment/Data/Template.docx similarity index 100% rename from Comments/Access-parent-comment/.NET/Access-parent-comment/Template.docx rename to Comments/Access-parent-comment/.NET/Access-parent-comment/Data/Template.docx diff --git a/Comments/Access-parent-comment/.NET/Access-parent-comment/Output/.gitkeep b/Comments/Access-parent-comment/.NET/Access-parent-comment/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Access-parent-comment/.NET/Access-parent-comment/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Access-parent-comment/.NET/Access-parent-comment/Program.cs b/Comments/Access-parent-comment/.NET/Access-parent-comment/Program.cs index d08c1037a..51b498991 100644 --- a/Comments/Access-parent-comment/.NET/Access-parent-comment/Program.cs +++ b/Comments/Access-parent-comment/.NET/Access-parent-comment/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) //Get the Ancestor comment. WComment ancestorComment = document.Comments[1].Ancestor; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Add-comment-to-Word-document.csproj b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Add-comment-to-Word-document.csproj index 157b76e42..976356f15 100644 --- a/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Add-comment-to-Word-document.csproj +++ b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Add-comment-to-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Output/.gitkeep b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Program.cs b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Program.cs index 92ab33ec2..067117c90 100644 --- a/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Program.cs +++ b/Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Set the date and time for comment. comment.Format.DateTime = DateTime.Now; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Check-comment-is-resolved.csproj b/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Check-comment-is-resolved.csproj index 8c46cfd6f..7771217b1 100644 --- a/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Check-comment-is-resolved.csproj +++ b/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Check-comment-is-resolved.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Sample.docx b/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Data/Sample.docx similarity index 100% rename from Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Sample.docx rename to Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Data/Sample.docx diff --git a/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Program.cs b/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Program.cs index 6c1a52f13..304da6295 100644 --- a/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Program.cs +++ b/Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Program.cs @@ -1,7 +1,7 @@ using Syncfusion.DocIO.DLS; using Syncfusion.DocIO; -using (FileStream inputStream = new FileStream(Path.GetFullPath("../../../Sample.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) +using (FileStream inputStream = new FileStream(Path.GetFullPath("Data/Sample.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load an existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) diff --git a/Comments/Extract-comments/.NET/Extract-comments/Extract-comments.csproj b/Comments/Extract-comments/.NET/Extract-comments/Extract-comments.csproj index 7e8b3c05b..fa88ea46f 100644 --- a/Comments/Extract-comments/.NET/Extract-comments/Extract-comments.csproj +++ b/Comments/Extract-comments/.NET/Extract-comments/Extract-comments.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Comments/Extract-comments/.NET/Extract-comments/Program.cs b/Comments/Extract-comments/.NET/Extract-comments/Program.cs index a1fa75ca4..9d3f552e6 100644 --- a/Comments/Extract-comments/.NET/Extract-comments/Program.cs +++ b/Comments/Extract-comments/.NET/Extract-comments/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)) { diff --git a/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Find-text-using-regex-and-add-comments.csproj b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Find-text-using-regex-and-add-comments.csproj index 9213a807a..ca9a9868e 100644 --- a/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Find-text-using-regex-and-add-comments.csproj +++ b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Find-text-using-regex-and-add-comments.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Output/.gitkeep b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Program.cs b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Program.cs index 959b9368d..a1119007d 100644 --- a/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Program.cs +++ b/Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; -using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) +using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open the existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -35,12 +35,11 @@ } } //Create the file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); } } } -System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"../../../Result.docx")) { UseShellExecute = true }); \ No newline at end of file diff --git a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Template.docx b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Data/Template.docx similarity index 100% rename from Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Template.docx rename to Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Data/Template.docx diff --git a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Modify-text-of-an-existing-comment.csproj b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Modify-text-of-an-existing-comment.csproj index ea56fb487..39f67fb19 100644 --- a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Modify-text-of-an-existing-comment.csproj +++ b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Modify-text-of-an-existing-comment.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Output/.gitkeep b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Program.cs b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Program.cs index cadc4f8e4..9d086c31c 100644 --- a/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/Program.cs +++ b/Comments/Modify-text-of-an-existing-comment/.NET/Modify-text-of-an-existing-comment/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)) @@ -22,7 +22,7 @@ static void Main(string[] args) comment.TextBody.LastParagraph.Text = "Modified Comment Content"; } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Template.docx b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Data/Template.docx similarity index 100% rename from Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Template.docx rename to Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Data/Template.docx diff --git a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Output/.gitkeep b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Program.cs b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Program.cs index 044679ca3..64bdc7b27 100644 --- a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Program.cs +++ b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-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 the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Removes all the comments in a Word document. document.Comments.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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Remove-all-comments-in-Word-document.csproj b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Remove-all-comments-in-Word-document.csproj index 4d6a9f52e..7c37ef4d7 100644 --- a/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Remove-all-comments-in-Word-document.csproj +++ b/Comments/Remove-all-comments-in-Word-document/.NET/Remove-all-comments-in-Word-document/Remove-all-comments-in-Word-document.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Template.docx b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Data/Template.docx similarity index 100% rename from Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Template.docx rename to Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Data/Template.docx diff --git a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Output/.gitkeep b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Program.cs b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Program.cs index b9cee3b6e..da06089d2 100644 --- a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Program.cs +++ b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/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) //Removes second comments from a document. document.Comments.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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Remove-particular-comment-from-Word.csproj b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Remove-particular-comment-from-Word.csproj index b21d7476d..08604ac84 100644 --- a/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Remove-particular-comment-from-Word.csproj +++ b/Comments/Remove-particular-comment-from-Word/.NET/Remove-particular-comment-from-Word/Remove-particular-comment-from-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Template.docx b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Data/Template.docx similarity index 100% rename from Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Template.docx rename to Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Data/Template.docx diff --git a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Output/.gitkeep b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Program.cs b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Program.cs index d7accfd55..7d5dd9a4b 100644 --- a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Program.cs +++ b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Load the existing Word document. - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Iterate the comments in the Word document. @@ -23,7 +23,7 @@ static void Main(string[] args) } } //Save the Word document to file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { document.Save(outputFileStream, FormatType.Docx); } diff --git a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Retrieve-commented-word.csproj b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Retrieve-commented-word.csproj index b84d80f15..bd3bf937d 100644 --- a/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Retrieve-commented-word.csproj +++ b/Comments/Retrieve-commented-word/.NET/Retrieve-commented-word/Retrieve-commented-word.csproj @@ -9,4 +9,13 @@ + + + Always + + + Always + + + diff --git a/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Compare-Word-documents.csproj b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Compare-Word-documents.csproj index 78c72a628..2fa0cb5fd 100644 --- a/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Compare-Word-documents.csproj +++ b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Compare-Word-documents.csproj @@ -12,4 +12,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Output/.gitkeep b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Program.cs b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Program.cs index 2259bef9f..f60e7b639 100644 --- a/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Program.cs +++ b/Compare-Word-documents/Compare-two-Word-documents/.NET/Compare-Word-documents/Program.cs @@ -1,15 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Data; -using System.Data.OleDb; -using System.Data.SqlClient; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using Syncfusion.DocIO; +using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; namespace Compare_Word_documents @@ -19,12 +8,12 @@ internal class Program static void Main(string[] args) { //Loads the original document. - using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) { using (WordDocument originalDocument = new WordDocument(originalDocumentStreamPath, FormatType.Docx)) { //Loads the revised document - using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) { using (WordDocument revisedDocument = new WordDocument(revisedDocumentStreamPath, FormatType.Docx)) { @@ -32,7 +21,7 @@ static void Main(string[] args) originalDocument.Compare(revisedDocument); //Save the Word document. - using (FileStream fileStreamOutput = File.Create("Output.docx")) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath("Output/Output.docx"))) { originalDocument.Save(fileStreamOutput, FormatType.Docx); } diff --git a/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Ignore-format-changes.csproj b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Ignore-format-changes.csproj index ee0cad719..f99f83dfb 100644 --- a/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Ignore-format-changes.csproj +++ b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Ignore-format-changes.csproj @@ -12,4 +12,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Output/.gitkeep b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Program.cs b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Program.cs index e4bbe3ffb..659ee1202 100644 --- a/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Program.cs +++ b/Compare-Word-documents/Ignore-format-changes/.NET/Ignore-format-changes/Program.cs @@ -1,16 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Data; -using System.Data.OleDb; -using System.Data.SqlClient; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Reflection.Metadata; -using System.Text; -using System.Threading.Tasks; -using Syncfusion.DocIO; +using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; namespace Ignore_format_changes @@ -20,13 +8,13 @@ internal class Program static void Main(string[] args) { //Open the Original file as Stream. - using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) { //Loads Original file stream into Word document. using (WordDocument originalDocument = new WordDocument(originalDocumentStreamPath, FormatType.Docx)) { //Open the Revised file as Stream - using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) { //Loads Revised file stream into Word document. using (WordDocument revisedDocument = new WordDocument(revisedDocumentStreamPath, FormatType.Docx)) @@ -39,7 +27,7 @@ static void Main(string[] args) originalDocument.Compare(revisedDocument, "Nancy Davolio", DateTime.Now.AddDays(-1), compareOptions); //Save the Word document. - using (FileStream fileStreamOutput = File.Create("Output.docx")) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath("Output/Output.docx"))) { originalDocument.Save(fileStreamOutput, FormatType.Docx); } diff --git a/Compare-Word-documents/Set-author-and-date/.NET/Output/.gitkeep b/Compare-Word-documents/Set-author-and-date/.NET/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Compare-Word-documents/Set-author-and-date/.NET/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Compare-Word-documents/Set-author-and-date/.NET/Program.cs b/Compare-Word-documents/Set-author-and-date/.NET/Program.cs index 12a1c376b..43066974d 100644 --- a/Compare-Word-documents/Set-author-and-date/.NET/Program.cs +++ b/Compare-Word-documents/Set-author-and-date/.NET/Program.cs @@ -1,15 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Data; -using System.Data.OleDb; -using System.Data.SqlClient; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using Syncfusion.DocIO; +using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; namespace Set_author_and_date @@ -19,12 +8,12 @@ internal class Program static void Main(string[] args) { //Loads the original document. - using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream originalDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/OriginalDocument.docx"), FileMode.Open, FileAccess.Read)) { using (WordDocument originalDocument = new WordDocument(originalDocumentStreamPath, FormatType.Docx)) { //Loads the revised document - using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream revisedDocumentStreamPath = new FileStream(Path.GetFullPath(@"Data/RevisedDocument.docx"), FileMode.Open, FileAccess.Read)) { using (WordDocument revisedDocument = new WordDocument(revisedDocumentStreamPath, FormatType.Docx)) { @@ -32,7 +21,7 @@ static void Main(string[] args) originalDocument.Compare(revisedDocument, "Nancy Davolio", DateTime.Now.AddDays(-1)); //Save the Word document. - using (FileStream fileStreamOutput = File.Create("Output.docx")) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath("Output/Output.docx"))) { originalDocument.Save(fileStreamOutput, FormatType.Docx); } diff --git a/Compare-Word-documents/Set-author-and-date/.NET/Set-author-and-date.csproj b/Compare-Word-documents/Set-author-and-date/.NET/Set-author-and-date.csproj index 14a9a101a..ba0a54bc5 100644 --- a/Compare-Word-documents/Set-author-and-date/.NET/Set-author-and-date.csproj +++ b/Compare-Word-documents/Set-author-and-date/.NET/Set-author-and-date.csproj @@ -12,4 +12,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Content-Controls/Block-content-control/.NET/Block-content-control/Block-content-control.csproj b/Content-Controls/Block-content-control/.NET/Block-content-control/Block-content-control.csproj index dbbbe7c45..1ab635095 100644 --- a/Content-Controls/Block-content-control/.NET/Block-content-control/Block-content-control.csproj +++ b/Content-Controls/Block-content-control/.NET/Block-content-control/Block-content-control.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Block-content-control/.NET/Block-content-control/Image.png b/Content-Controls/Block-content-control/.NET/Block-content-control/Data/Image.png similarity index 100% rename from Content-Controls/Block-content-control/.NET/Block-content-control/Image.png rename to Content-Controls/Block-content-control/.NET/Block-content-control/Data/Image.png diff --git a/Content-Controls/Block-content-control/.NET/Block-content-control/Output/.gitkeep b/Content-Controls/Block-content-control/.NET/Block-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Block-content-control/.NET/Block-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Block-content-control/.NET/Block-content-control/Program.cs b/Content-Controls/Block-content-control/.NET/Block-content-control/Program.cs index 4c8bb3b7c..789822c93 100644 --- a/Content-Controls/Block-content-control/.NET/Block-content-control/Program.cs +++ b/Content-Controls/Block-content-control/.NET/Block-content-control/Program.cs @@ -27,11 +27,11 @@ static void Main(string[] args) //Adds new paragraph to the block content control. paragraph = blockContentControl.TextBody.AddParagraph() as WParagraph; //Gets the image stream. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.Read); //Adds image to the paragraph. paragraph.AppendPicture(imageStream); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Check-box-content-control.csproj b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Check-box-content-control.csproj index 169132487..01d55a298 100644 --- a/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Check-box-content-control.csproj +++ b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Check-box-content-control.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Output/.gitkeep b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Program.cs b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Program.cs index 48770f1f9..fea8dd7ec 100644 --- a/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Program.cs +++ b/Content-Controls/Check-box-content-control/.NET/Check-box-content-control/Program.cs @@ -21,7 +21,7 @@ static void Main(string[] args) InlineContentControl checkBox = paragraph.AppendInlineContentControl(ContentControlType.CheckBox) as InlineContentControl; checkBox.ContentControlProperties.IsChecked = true; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Content-control-properties/.NET/Content-control-properties/Content-control-properties.csproj b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Content-control-properties.csproj index ce592719b..a355d6263 100644 --- a/Content-Controls/Content-control-properties/.NET/Content-control-properties/Content-control-properties.csproj +++ b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Content-control-properties.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Content-control-properties/.NET/Content-control-properties/Output/.gitkeep b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Content-control-properties/.NET/Content-control-properties/Program.cs b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Program.cs index 470b9e2b6..c2347aa73 100644 --- a/Content-Controls/Content-control-properties/.NET/Content-control-properties/Program.cs +++ b/Content-Controls/Content-control-properties/.NET/Content-control-properties/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) //Protects the contents of content control. contentControl.ContentControlProperties.LockContents = true; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Create-form-in-Word-document.csproj b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Create-form-in-Word-document.csproj index 4723f7ea1..8ab8d252b 100644 --- a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Create-form-in-Word-document.csproj +++ b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Create-form-in-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/image.jpg b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Data/image.jpg similarity index 100% rename from Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/image.jpg rename to Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Data/image.jpg diff --git a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Output/.gitkeep b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Program.cs b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Program.cs index a3440dfa2..bad789d74 100644 --- a/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Program.cs +++ b/Content-Controls/Create-form-in-Word-document/.NET/Create-form-in-Word-document/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) //Adds a new paragraph to the cell. IWParagraph cellPara = row.Cells[0].AddParagraph(); //Appends new picture. - IWPicture pic = cellPara.AppendPicture(new FileStream(Path.GetFullPath(@"../../../image.jpg"), FileMode.Open, FileAccess.Read)); + IWPicture pic = cellPara.AppendPicture(new FileStream(Path.GetFullPath(@"Data/image.jpg"), FileMode.Open, FileAccess.Read)); pic.Height = 80; pic.Width = 180; //Adds a new paragraph to the next cell. @@ -278,7 +278,7 @@ static void Main(string[] args) dropdown.BreakCharacterFormat.FontSize = 11f; #endregion //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Date-picker-content-control.csproj b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Date-picker-content-control.csproj index e2f73406b..32b9ef326 100644 --- a/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Date-picker-content-control.csproj +++ b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Date-picker-content-control.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Output/.gitkeep b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Program.cs b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Program.cs index ad2aceb47..5f560a8b4 100644 --- a/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Program.cs +++ b/Content-Controls/Date-picker-content-control/.NET/Date-picker-content-control/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) //Sets the language format for the date. datePicker.ContentControlProperties.DateDisplayLocale = LocaleIDs.en_US; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Drop-down-list-and-combo-box.csproj b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Drop-down-list-and-combo-box.csproj index 2746aad4d..b6c9aa42d 100644 --- a/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Drop-down-list-and-combo-box.csproj +++ b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Drop-down-list-and-combo-box.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Output/.gitkeep b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Program.cs b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Program.cs index d41eab2b8..d86e61a7f 100644 --- a/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Program.cs +++ b/Content-Controls/Drop-down-list-and-combo-box/.NET/Drop-down-list-and-combo-box/Program.cs @@ -67,7 +67,7 @@ static void Main(string[] args) item.Value = "3"; comboBox.ContentControlProperties.ContentControlListItems.Add(item); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Template.docx b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Data/Template.docx similarity index 100% rename from Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Template.docx rename to Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Data/Template.docx diff --git a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Edit-text-in-inline-content-control.csproj b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Edit-text-in-inline-content-control.csproj index 41f460a76..8501e17c5 100644 --- a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Edit-text-in-inline-content-control.csproj +++ b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Edit-text-in-inline-content-control.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Output/.gitkeep b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Program.cs b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Program.cs index 123b36941..f3bb0470b 100644 --- a/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Program.cs +++ b/Content-Controls/Edit-text-in-inline-content-control/.NET/Edit-text-in-inline-content-control/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Open the file as Stream - using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read)) { //Creates an instance of WordDocument class using (WordDocument document = new WordDocument(docStream, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) IterateTextBody(sectionBody); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Template.docx b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Data/Template.docx similarity index 100% rename from Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Template.docx rename to Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Data/Template.docx diff --git a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Fill-form-in-Word-document.csproj b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Fill-form-in-Word-document.csproj index f16d91854..8f488da4a 100644 --- a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Fill-form-in-Word-document.csproj +++ b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Fill-form-in-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Output/.gitkeep b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Program.cs b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Program.cs index d6fa41ee9..e66c9ce61 100644 --- a/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-in-Word-document/Program.cs +++ b/Content-Controls/Fill-form-in-Word-document/.NET/Fill-form-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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -98,7 +98,7 @@ static void Main(string[] args) dropDownCC.ParagraphItems.Add(text); #endregion //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Inline-content-control/.NET/Inline-content-control/Inline-content-control.csproj b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Inline-content-control.csproj index 422853adc..800f85152 100644 --- a/Content-Controls/Inline-content-control/.NET/Inline-content-control/Inline-content-control.csproj +++ b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Inline-content-control.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Inline-content-control/.NET/Inline-content-control/Output/.gitkeep b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Inline-content-control/.NET/Inline-content-control/Program.cs b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Program.cs index ad9c2e146..c9b38083a 100644 --- a/Content-Controls/Inline-content-control/.NET/Inline-content-control/Program.cs +++ b/Content-Controls/Inline-content-control/.NET/Inline-content-control/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) //Adds new text to the inline content control. inlineContentControl.ParagraphItems.Add(textRange); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Image.png b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Data/Image.png similarity index 100% rename from Content-Controls/Picture-content-control/.NET/Picture-content-control/Image.png rename to Content-Controls/Picture-content-control/.NET/Picture-content-control/Data/Image.png diff --git a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Output/.gitkeep b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Picture-content-control.csproj b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Picture-content-control.csproj index 728a525fa..5e4f5e196 100644 --- a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Picture-content-control.csproj +++ b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Picture-content-control.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Program.cs b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Program.cs index fc522e921..75809a543 100644 --- a/Content-Controls/Picture-content-control/.NET/Picture-content-control/Program.cs +++ b/Content-Controls/Picture-content-control/.NET/Picture-content-control/Program.cs @@ -21,13 +21,13 @@ static void Main(string[] args) InlineContentControl pictureContentControl = paragraph.AppendInlineContentControl(ContentControlType.Picture) as InlineContentControl; //Creates a new image instance and load image. WPicture picture = new WPicture(document); - Stream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.Read); + Stream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.Read); //Adds image from stream. picture.LoadImage(imageStream); //Adds picture to the picture content control. pictureContentControl.ParagraphItems.Add(picture); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Output/.gitkeep b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Plain-text-content-control.csproj b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Plain-text-content-control.csproj index 6a1c1ca8f..975a55e77 100644 --- a/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Plain-text-content-control.csproj +++ b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Plain-text-content-control.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Program.cs b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Program.cs index 6d788b74b..cd733a9ff 100644 --- a/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Program.cs +++ b/Content-Controls/Plain-text-content-control/.NET/Plain-text-content-control/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) //Adds new text to the plain text content control. plainTextControl.ParagraphItems.Add(textRange); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Protect-content-control/.NET/Protect-content-control/Output/.gitkeep b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Protect-content-control/.NET/Protect-content-control/Program.cs b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Program.cs index 6efa7b8fe..c1683afc3 100644 --- a/Content-Controls/Protect-content-control/.NET/Protect-content-control/Program.cs +++ b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) //Protects the contents of content control. contentControl.ContentControlProperties.LockContents = true; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Protect-content-control/.NET/Protect-content-control/Protect-content-control.csproj b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Protect-content-control.csproj index 08be1f98c..01711ae1a 100644 --- a/Content-Controls/Protect-content-control/.NET/Protect-content-control/Protect-content-control.csproj +++ b/Content-Controls/Protect-content-control/.NET/Protect-content-control/Protect-content-control.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content.sln b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content.sln new file mode 100644 index 000000000..05b867742 --- /dev/null +++ b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Remove-content-control-not-content", "Remove-content-control-not-content\Remove-content-control-not-content.csproj", "{E1BED675-D118-4A88-B550-77D95030B0D8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E1BED675-D118-4A88-B550-77D95030B0D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E1BED675-D118-4A88-B550-77D95030B0D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E1BED675-D118-4A88-B550-77D95030B0D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E1BED675-D118-4A88-B550-77D95030B0D8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8A6AF875-A0E2-480E-9089-384D4DEF6010} + EndGlobalSection +EndGlobal diff --git a/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Data/Input.docx b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Data/Input.docx new file mode 100644 index 000000000..ff26a5b0c Binary files /dev/null and b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Data/Input.docx differ diff --git a/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Output/.gitkeep b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Program.cs b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Program.cs new file mode 100644 index 000000000..bf03d66c1 --- /dev/null +++ b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Program.cs @@ -0,0 +1,72 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read)) +{ + //Load the Word document from the FileStream. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) + { + //Iterate through each section in the document. + for (int secIndex = 0; secIndex < document.Sections.Count; secIndex++) + { + WSection sec = document.Sections[secIndex]; + //Iterate through the body items of the section. + for (int bodyItemIndex = 0; bodyItemIndex < sec.Body.ChildEntities.Count; bodyItemIndex++) + { + IEntity body = sec.Body.ChildEntities[bodyItemIndex]; + //Check if the body item is a block content control. + if (body is BlockContentControl) + { + BlockContentControl blockContentControl = body as BlockContentControl; + //Get the block content control index in the body. + int index = sec.Body.ChildEntities.IndexOf(blockContentControl); + //Move the child entities of block content control to section body. + for (int blockItemIndex = 0; blockItemIndex < blockContentControl.ChildEntities.Count;) + { + IEntity item = blockContentControl.ChildEntities[blockItemIndex]; + //Insert the child entity to the section body. + sec.Body.ChildEntities.Insert(index, item); + //Increment the index. + index++; + } + //Remove the block content control from the section body. + sec.Body.ChildEntities.Remove(blockContentControl); + } + //Check if the body item is a paragraph. + else if (body is WParagraph) + { + WParagraph paragraph = body as WParagraph; + //Iterate through the items within the paragraph. + for (int paraItemIndex = 0; paraItemIndex < paragraph.ChildEntities.Count; paraItemIndex++) + { + ParagraphItem item = paragraph.ChildEntities[paraItemIndex] as ParagraphItem; + //Check if the paragraph item is an inline content control. + if (item is InlineContentControl) + { + InlineContentControl inlineContentControl = item as InlineContentControl; + //Get the index of inline content control in the paragraph. + int index = paragraph.ChildEntities.IndexOf(item); + //Move the child items of inline content control to the paragraph. + for (int inlineItemIndex = 0; inlineItemIndex < inlineContentControl.ParagraphItems.Count;) + { + ParagraphItem inlineItem = inlineContentControl.ParagraphItems[inlineItemIndex]; + //Insert the inline content control items to paragraph's child entities. + paragraph.ChildEntities.Insert(index, inlineItem); + //Increment the index. + index++; + } + //Remove the inline content control from the paragraph. + paragraph.ChildEntities.Remove(inlineContentControl); + } + } + } + } + } + //Create a file stream for saving the document. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Save the modified document to the file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } +} diff --git a/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Remove-content-control-not-content.csproj b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Remove-content-control-not-content.csproj new file mode 100644 index 000000000..514059968 --- /dev/null +++ b/Content-Controls/Remove-content-control-not-content/.NET/Remove-content-control-not-content/Remove-content-control-not-content.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Remove_content_control_not_content + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Input.docx b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Data/Input.docx similarity index 100% rename from Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Input.docx rename to Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Data/Input.docx diff --git a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Output/.gitkeep b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Program.cs b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Program.cs index 793a1bc9b..5aa9f9a7d 100644 --- a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Program.cs +++ b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(docStream, FormatType.Automatic)) @@ -23,14 +23,14 @@ static void Main(string[] args) IterateTextBody(sectionBody); } //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); } } } - System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"../../../Sample.docx")) { UseShellExecute = true }); + System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"Output/Output.docx")) { UseShellExecute = true }); } /// /// Iterate the TextBody of the Word document. diff --git a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Remove-placeholder-of-empty-meta-property.csproj b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Remove-placeholder-of-empty-meta-property.csproj index fb1abf5e6..d249120ff 100644 --- a/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Remove-placeholder-of-empty-meta-property.csproj +++ b/Content-Controls/Remove-placeholder-of-empty-meta-property/.NET/Remove-placeholder-of-empty-meta-property/Remove-placeholder-of-empty-meta-property.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Output/.gitkeep b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Program.cs b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Program.cs index e961ade2b..80c61a4b9 100644 --- a/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Program.cs +++ b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Program.cs @@ -5,7 +5,7 @@ // Open the file as stream. -using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open)) +using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open)) { // Load file stream into Word document. using (WordDocument document = new WordDocument(docStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -39,7 +39,7 @@ // Create file stream for output document. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Data/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { // Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Replace-picture-content-control-with-chart.csproj b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Replace-picture-content-control-with-chart.csproj index 041f92cf9..6c88e8ee6 100644 --- a/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Replace-picture-content-control-with-chart.csproj +++ b/Content-Controls/Replace-picture-content-control-with-chart/.NET/Replace-picture-content-control-with-chart/Replace-picture-content-control-with-chart.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Image.png b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Data/Image.png similarity index 100% rename from Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Image.png rename to Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Data/Image.png diff --git a/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Output/.gitkeep b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Program.cs b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Program.cs index 6b4df4356..b9a1eab6e 100644 --- a/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Program.cs +++ b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) //Adds new text to the rich text content control. richTextControl.ParagraphItems.Add(textRange); WPicture picture = new WPicture(document); - Stream imageStream = new FileStream(Path.GetFullPath(@"../../../Image.png"), FileMode.Open, FileAccess.Read); + Stream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.Read); //Adds image from stream. picture.LoadImage(imageStream); picture.Height = 100; @@ -32,7 +32,7 @@ static void Main(string[] args) //Adds new picture to the rich text content control. richTextControl.ParagraphItems.Add(picture); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Rich-text-content-control.csproj b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Rich-text-content-control.csproj index 34e92857d..1b5775e4b 100644 --- a/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Rich-text-content-control.csproj +++ b/Content-Controls/Rich-text-content-control/.NET/Rich-text-content-control/Rich-text-content-control.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Content-Controls/Xml-mapping/.NET/Xml-mapping/Output/.gitkeep b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Content-Controls/Xml-mapping/.NET/Xml-mapping/Program.cs b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Program.cs index bed2a2f89..048e87876 100644 --- a/Content-Controls/Xml-mapping/.NET/Xml-mapping/Program.cs +++ b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Creates the XML data mapping on a content control for specified node. control.ContentControlProperties.XmlMapping.SetMappingByNode(node); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Content-Controls/Xml-mapping/.NET/Xml-mapping/Xml-mapping.csproj b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Xml-mapping.csproj index 5a2740cb5..b42dbaacc 100644 --- a/Content-Controls/Xml-mapping/.NET/Xml-mapping/Xml-mapping.csproj +++ b/Content-Controls/Xml-mapping/.NET/Xml-mapping/Xml-mapping.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Attach-template-to-Word-document.csproj b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Attach-template-to-Word-document.csproj index 9390756df..dcfe979e1 100644 --- a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Attach-template-to-Word-document.csproj +++ b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Attach-template-to-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Template.docx b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Data/Template.docx similarity index 100% rename from FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Template.docx rename to FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Data/Template.docx diff --git a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Output/.gitkeep b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Program.cs b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Program.cs index 2b9bd1b2a..60d02157e 100644 --- a/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-Word-document/Program.cs +++ b/FAQs/Attach-template-to-Word-document/.NET/Attach-template-to-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)) { //Loads a source document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Updates the styles of the document from the attached template each time the document is opened. document.UpdateStylesOnOpen = true; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Check-compatibility-mode.csproj b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Check-compatibility-mode.csproj index e186d825c..d7a2cdfc3 100644 --- a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Check-compatibility-mode.csproj +++ b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Check-compatibility-mode.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Input.docx b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Data/Input.docx similarity index 100% rename from FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Input.docx rename to FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Data/Input.docx diff --git a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Output/.gitkeep b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Program.cs b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Program.cs index 67428677a..670fabe3b 100644 --- a/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Program.cs +++ b/FAQs/Check-compatibility-mode/.NET/Check-compatibility-mode/Program.cs @@ -9,7 +9,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 the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) Console.WriteLine(compatibilityMode); //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) {                         //Save the Word document to the file stream.                         document.Save(outputFileStream, FormatType.Docx); diff --git a/FAQs/Copy-fonts-to-linux-containers/Copy-fonts-to-linux-containers.csproj b/FAQs/Copy-fonts-to-linux-containers/Copy-fonts-to-linux-containers.csproj index bbaa8c2e8..1241eca91 100644 --- a/FAQs/Copy-fonts-to-linux-containers/Copy-fonts-to-linux-containers.csproj +++ b/FAQs/Copy-fonts-to-linux-containers/Copy-fonts-to-linux-containers.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/FAQs/Copy-fonts-to-linux-containers/Dockerfile b/FAQs/Copy-fonts-to-linux-containers/Dockerfile index 18a7e0c10..02d183159 100644 --- a/FAQs/Copy-fonts-to-linux-containers/Dockerfile +++ b/FAQs/Copy-fonts-to-linux-containers/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/runtime:3.1-bionic AS base +FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy AS base RUN apt-get update -y && apt-get install fontconfig -y WORKDIR /app #Copy fonts to linux containers from a folder. COPY ["Fonts/*.*", "/usr/local/share/fonts/"] -FROM mcr.microsoft.com/dotnet/sdk:3.1-bionic AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build WORKDIR /src COPY ["Copy-fonts-to-linux-containers.csproj", "."] RUN dotnet restore "./Copy-fonts-to-linux-containers.csproj" diff --git a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Template.docx b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Data/Template.docx similarity index 100% rename from FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Template.docx rename to FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Data/Template.docx diff --git a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj index 330656faf..2090e5cae 100644 --- a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj +++ b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs index 2a8e65d62..f65691166 100644 --- a/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs +++ b/FAQs/Extract-images-from-Word-document/.NET/Extract-images-from-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)) @@ -28,7 +28,7 @@ static void Main(string[] args) case EntityType.Picture: WPicture picture = item as WPicture; image = picture.ImageBytes; - File.WriteAllBytes(@"../../../Image" + i + ".jpeg", image); + File.WriteAllBytes(@"Output/Output" + i + ".jpeg", image); i++; break; default: diff --git a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Template.docx b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Data/Template.docx similarity index 100% rename from FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Template.docx rename to FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Data/Template.docx diff --git a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Find-and-replace-text-using-regex.csproj b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Find-and-replace-text-using-regex.csproj index a4518c784..c2b929a64 100644 --- a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Find-and-replace-text-using-regex.csproj +++ b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Find-and-replace-text-using-regex.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Output/.gitkeep b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Program.cs b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Program.cs index ed304b4e1..207756f21 100644 --- a/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Program.cs +++ b/FAQs/Find-and-replace-text-using-regex/.NET/Find-and-replace-text-using-regex/Program.cs @@ -9,7 +9,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)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Performs replace. document.Replace(new Regex("Cyles"), replaceText); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/Find-used-fonts-in-word-document.csproj b/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/Find-used-fonts-in-word-document.csproj index 9cc5c0c16..6ef381d47 100644 --- a/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/Find-used-fonts-in-word-document.csproj +++ b/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/Find-used-fonts-in-word-document.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/packages.config b/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/packages.config index ff796ce92..6be96b6c5 100644 --- a/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/packages.config +++ b/FAQs/Find-used-fonts-in-word-document/.NET-Framework/Find-used-fonts-in-word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Insert-data-table-in-Word-document.csproj b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Insert-data-table-in-Word-document.csproj index 64d1b204f..6ef405f82 100644 --- a/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Insert-data-table-in-Word-document.csproj +++ b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Insert-data-table-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Output/.gitkeep b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Program.cs b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Program.cs index c1efeca3d..6c890d2c0 100644 --- a/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Program.cs +++ b/FAQs/Insert-data-table-in-Word-document/.NET/Insert-data-table-in-Word-document/Program.cs @@ -44,7 +44,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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Template.docx b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Data/Template.docx similarity index 100% rename from FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Template.docx rename to FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Data/Template.docx diff --git a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Insert-page-numbers-in-footer.csproj b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Insert-page-numbers-in-footer.csproj index d61866099..fd61ce64a 100644 --- a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Insert-page-numbers-in-footer.csproj +++ b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Insert-page-numbers-in-footer.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Output/.gitkeep b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Program.cs b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Program.cs index 2f5a52977..068510aa1 100644 --- a/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-footer/Program.cs +++ b/FAQs/Insert-page-numbers-in-footer/.NET/Insert-page-numbers-in-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)) @@ -25,7 +25,7 @@ static void Main(string[] args) sec.HeadersFooters.Footer.Paragraphs.Add(para); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Template.docx b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Data/Template.docx similarity index 100% rename from FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Template.docx rename to FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Data/Template.docx diff --git a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Insert-table-from-html-string.csproj b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Insert-table-from-html-string.csproj index 46a8f0fac..0221a4493 100644 --- a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Insert-table-from-html-string.csproj +++ b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Insert-table-from-html-string.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Output/.gitkeep b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Program.cs b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Program.cs index 92491f710..1e48bc50a 100644 --- a/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/Program.cs +++ b/FAQs/Insert-table-from-html-string/.NET/Insert-table-from-html-string/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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Inserts the string to the text body. textbody.InsertXHTML(htmlString); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode.sln b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode.sln new file mode 100644 index 000000000..16c3e3c38 --- /dev/null +++ b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Add-DocVariable-in-DisplayBarCode", "Add-DocVariable-in-DisplayBarCode\Add-DocVariable-in-DisplayBarCode.csproj", "{193797D1-5655-4C15-BB0E-5B73BD9D142B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {193797D1-5655-4C15-BB0E-5B73BD9D142B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {193797D1-5655-4C15-BB0E-5B73BD9D142B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {193797D1-5655-4C15-BB0E-5B73BD9D142B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {193797D1-5655-4C15-BB0E-5B73BD9D142B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {AC73F271-E4F6-4A2C-86B8-C1297A31B1EE} + EndGlobalSection +EndGlobal diff --git a/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Add-DocVariable-in-DisplayBarCode.csproj b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Add-DocVariable-in-DisplayBarCode.csproj new file mode 100644 index 000000000..c07f4ac1a --- /dev/null +++ b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Add-DocVariable-in-DisplayBarCode.csproj @@ -0,0 +1,21 @@ + + + + Exe + net8.0 + Add_DocVariable_in_DisplayBarCode + enable + enable + + + + + + + + + Always + + + + diff --git a/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Output/.gitkeep b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Program.cs b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Program.cs new file mode 100644 index 000000000..563afebfc --- /dev/null +++ b/Fields/Add-DocVariable-in-DisplayBarCode/.NET/Add-DocVariable-in-DisplayBarCode/Program.cs @@ -0,0 +1,71 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; + +// Creates a new instance of WordDocument (empty Word document). +using (WordDocument wordDocument = new WordDocument()) +{ + // Adds a section to the document. + IWSection section = wordDocument.AddSection(); + // Adds a paragraph to the section. + IWParagraph paragraph = section.AddParagraph(); + // Adds a document variable named "Barcode" with a value of "123456". + wordDocument.Variables.Add("Barcode", "123456"); + // Appends a field to the paragraph. The field type is set as FieldUnknown initially. + WField field = paragraph.AppendField("DISPLAYBARCODE ", Syncfusion.DocIO.FieldType.FieldUnknown) as WField; + // Specifies the field code for the barcode. + InsertBarcodeField(paragraph, field); + // Updates all document fields to reflect changes. + wordDocument.UpdateDocumentFields(); + // Saves the output Word document to a specified file stream in DOCX format. + using (FileStream stream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.OpenOrCreate)) + { + wordDocument.Save(stream, FormatType.Docx); + } +} + +/// +/// Inserts the field code with a nested field. +/// +static void InsertBarcodeField(IWParagraph paragraph, WField? field) +{ + // Get the index of the field in the paragraph to insert the field code. + int fieldIndex = paragraph.Items.IndexOf(field) + 1; + // Add the field code for the barcode. + field.FieldCode = "DISPLAYBARCODE "; + // Increment field index for further insertion. + fieldIndex++; + // Insert document variables into the field code at the specified index. + InsertDocVariables("Barcode", ref fieldIndex, paragraph); + // Insert the barcode type (e.g., CODE128) into the paragraph. + InsertText(" CODE128", ref fieldIndex, paragraph as WParagraph); +} + +/// +/// Inserts text such as operators or identifiers into the paragraph. +/// +static void InsertText(string text, ref int fieldIndex, WParagraph paragraph) +{ + // Create a new text range with the specified text. + WTextRange textRange = new WTextRange(paragraph.Document); + textRange.Text = text; + // Insert the text range as a field code item at the specified index. + paragraph.Items.Insert(fieldIndex, textRange); + // Increment the field index for subsequent insertions. + fieldIndex++; +} + +/// +/// Inserts document variables at the given index in the specified paragraph. +/// +static void InsertDocVariables(string fieldName, ref int fieldIndex, IWParagraph paragraph) +{ + // Create a new paragraph to hold the document variable field. + WParagraph para = new WParagraph(paragraph.Document); + para.AppendField(fieldName, FieldType.FieldDocVariable); + // Get the count of child entities in the paragraph (should be 1 for the field). + int count = para.ChildEntities.Count; + // Insert the field into the original paragraph, ensuring the complete field structure is added. + paragraph.ChildEntities.Insert(fieldIndex, para.ChildEntities[0]); + // Increment the field index based on the count of inserted entities. + fieldIndex += count; +} diff --git a/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Add-field-in-Word-document.csproj b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Add-field-in-Word-document.csproj index 54a1f270f..3347b68a9 100644 --- a/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Add-field-in-Word-document.csproj +++ b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Add-field-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Output/.gitkeep b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Program.cs b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Program.cs index 7e837dbd0..f86783ae8 100644 --- a/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Program.cs +++ b/Fields/Add-field-in-Word-document/.NET/Add-field-in-Word-document/Program.cs @@ -21,7 +21,7 @@ static void Main(string[] args) //Field code used to describe how to display the date. field.FieldCode = @"DATE \@" + "\"MMMM d, yyyy\""; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Apply-number-format-for-SEQ-field.csproj b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Apply-number-format-for-SEQ-field.csproj index 0c5dff162..fb2004f36 100644 --- a/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Apply-number-format-for-SEQ-field.csproj +++ b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Apply-number-format-for-SEQ-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Output/.gitkeep b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Program.cs b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Program.cs index 8cdaf4406..13d9002ea 100644 --- a/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Program.cs +++ b/Fields/Apply-number-format-for-SEQ-field/.NET/Apply-number-format-for-SEQ-field/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Updates the document fields. 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Cross-reference/.NET/Cross-reference/Cross-reference.csproj b/Fields/Cross-reference/.NET/Cross-reference/Cross-reference.csproj index 63212c4e6..94c31078b 100644 --- a/Fields/Cross-reference/.NET/Cross-reference/Cross-reference.csproj +++ b/Fields/Cross-reference/.NET/Cross-reference/Cross-reference.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Cross-reference/.NET/Cross-reference/Output/.gitkeep b/Fields/Cross-reference/.NET/Cross-reference/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Cross-reference/.NET/Cross-reference/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Cross-reference/.NET/Cross-reference/Program.cs b/Fields/Cross-reference/.NET/Cross-reference/Program.cs index 42f79c714..6de9af39e 100644 --- a/Fields/Cross-reference/.NET/Cross-reference/Program.cs +++ b/Fields/Cross-reference/.NET/Cross-reference/Program.cs @@ -33,7 +33,7 @@ static void Main(string[] args) //Updates the document Fields. 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Document-variables/.NET/Document-variables/Document-variables.csproj b/Fields/Document-variables/.NET/Document-variables/Document-variables.csproj index b00a16ae1..e49917ddf 100644 --- a/Fields/Document-variables/.NET/Document-variables/Document-variables.csproj +++ b/Fields/Document-variables/.NET/Document-variables/Document-variables.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Document-variables/.NET/Document-variables/Output/.gitkeep b/Fields/Document-variables/.NET/Document-variables/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Document-variables/.NET/Document-variables/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Document-variables/.NET/Document-variables/Program.cs b/Fields/Document-variables/.NET/Document-variables/Program.cs index e29f173a0..958fb059d 100644 --- a/Fields/Document-variables/.NET/Document-variables/Program.cs +++ b/Fields/Document-variables/.NET/Document-variables/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) //Updates the document fields. 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Format-fields/.NET/Format-fields/Format-fields.csproj b/Fields/Format-fields/.NET/Format-fields/Format-fields.csproj index 7d00d5e49..a89b6f22b 100644 --- a/Fields/Format-fields/.NET/Format-fields/Format-fields.csproj +++ b/Fields/Format-fields/.NET/Format-fields/Format-fields.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Format-fields/.NET/Format-fields/Output/.gitkeep b/Fields/Format-fields/.NET/Format-fields/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Format-fields/.NET/Format-fields/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Format-fields/.NET/Format-fields/Program.cs b/Fields/Format-fields/.NET/Format-fields/Program.cs index b3b4869c5..178b3c377 100644 --- a/Fields/Format-fields/.NET/Format-fields/Program.cs +++ b/Fields/Format-fields/.NET/Format-fields/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) entity = entity.NextSibling; } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Hide-SEQ-field-result.csproj b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Hide-SEQ-field-result.csproj index fa032a1dd..2933e518e 100644 --- a/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Hide-SEQ-field-result.csproj +++ b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Hide-SEQ-field-result.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Output/.gitkeep b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Program.cs b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Program.cs index 7ad23e121..370561d52 100644 --- a/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Program.cs +++ b/Fields/Hide-SEQ-field-result/.NET/Hide-SEQ-field-result/Program.cs @@ -23,7 +23,7 @@ static void Main(string[] args) //Updates the document fields 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/IF-field/.NET/IF-field/IF-field.csproj b/Fields/IF-field/.NET/IF-field/IF-field.csproj index 042a8183a..77014cb31 100644 --- a/Fields/IF-field/.NET/IF-field/IF-field.csproj +++ b/Fields/IF-field/.NET/IF-field/IF-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Fields/IF-field/.NET/IF-field/Output/.gitkeep b/Fields/IF-field/.NET/IF-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/IF-field/.NET/IF-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/IF-field/.NET/IF-field/Program.cs b/Fields/IF-field/.NET/IF-field/Program.cs index dc425a950..a338901bf 100644 --- a/Fields/IF-field/.NET/IF-field/Program.cs +++ b/Fields/IF-field/.NET/IF-field/Program.cs @@ -31,7 +31,7 @@ static void Main(string[] args) //Updates the document fields. 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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Insert-Multiple-Body-items-inside-IF-field.csproj b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Insert-Multiple-Body-items-inside-IF-field.csproj index ae1885406..7b1a4eae3 100644 --- a/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Insert-Multiple-Body-items-inside-IF-field.csproj +++ b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Insert-Multiple-Body-items-inside-IF-field.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Output/.gitkeep b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Program.cs b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Program.cs index 0fb157da1..3d27a9218 100644 --- a/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Program.cs +++ b/Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) document.UpdateDocumentFields(); //Save and close the document. - using (FileStream outputStream = new FileStream("Result.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream("Output/Result.docx", FileMode.Create, FileAccess.Write)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Fields/Insert-author-name/.NET/Insert-author-name/Template.docx b/Fields/Insert-author-name/.NET/Insert-author-name/Data/Template.docx similarity index 100% rename from Fields/Insert-author-name/.NET/Insert-author-name/Template.docx rename to Fields/Insert-author-name/.NET/Insert-author-name/Data/Template.docx diff --git a/Fields/Insert-author-name/.NET/Insert-author-name/Insert-author-name.csproj b/Fields/Insert-author-name/.NET/Insert-author-name/Insert-author-name.csproj index 7fea59689..e1058ae20 100644 --- a/Fields/Insert-author-name/.NET/Insert-author-name/Insert-author-name.csproj +++ b/Fields/Insert-author-name/.NET/Insert-author-name/Insert-author-name.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Fields/Insert-author-name/.NET/Insert-author-name/Output/.gitkeep b/Fields/Insert-author-name/.NET/Insert-author-name/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Insert-author-name/.NET/Insert-author-name/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Insert-author-name/.NET/Insert-author-name/Program.cs b/Fields/Insert-author-name/.NET/Insert-author-name/Program.cs index 586d9a55c..bb9348994 100644 --- a/Fields/Insert-author-name/.NET/Insert-author-name/Program.cs +++ b/Fields/Insert-author-name/.NET/Insert-author-name/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)) { //Open the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Update the fields in Word document. document.UpdateDocumentFields(); //Create file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Template.docx b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Data/Template.docx similarity index 100% rename from Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Template.docx rename to Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Data/Template.docx diff --git a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Insert-next-sequence-number.csproj b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Insert-next-sequence-number.csproj index 111a01522..a091a3410 100644 --- a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Insert-next-sequence-number.csproj +++ b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Insert-next-sequence-number.csproj @@ -9,5 +9,14 @@ + + + + Always + + + Always + + diff --git a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Output/.gitkeep b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Program.cs b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Program.cs index 2df142a07..97d9e1b8e 100644 --- a/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Program.cs +++ b/Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/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)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Updates the document fields. document.UpdateDocumentFields(); //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/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Merge-field-inside-IF-field.csproj b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Merge-field-inside-IF-field.csproj index 92b9a7f1b..530ddcf17 100644 --- a/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Merge-field-inside-IF-field.csproj +++ b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Merge-field-inside-IF-field.csproj @@ -12,4 +12,9 @@ + + + Always + + diff --git a/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Output/.gitkeep b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Program.cs b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Program.cs index 80116672b..f4786d2ce 100644 --- a/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Program.cs +++ b/Fields/Merge-field-inside-IF-field/.NET/Merge-field-inside-IF-field/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) document.UpdateDocumentFields(); //Save and close the document. - FileStream outputStream = new FileStream("../../../Sample.docx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream("Output/Sample.docx", FileMode.Create, FileAccess.Write); document.Save(outputStream, FormatType.Docx); document.Close(); } diff --git a/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Data/Template.docx b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Data/Template.docx new file mode 100644 index 000000000..019be1aa5 Binary files /dev/null and b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Data/Template.docx differ diff --git a/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Output/.gitkeep b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Program.cs b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Program.cs index 3a7df1da7..73c7bb759 100644 --- a/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Program.cs +++ b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/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)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Updates the document fields.s document.UpdateDocumentFields(); //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/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Refer-bookmark-in-SEQ-field.csproj b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Refer-bookmark-in-SEQ-field.csproj index b2865641b..a6657baa9 100644 --- a/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Refer-bookmark-in-SEQ-field.csproj +++ b/Fields/Refer-bookmark-in-SEQ-field/.NET/Refer-bookmark-in-SEQ-field/Refer-bookmark-in-SEQ-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Output/.gitkeep b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Program.cs b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Program.cs index 0fb22018a..67b04afa2 100644 --- a/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Program.cs +++ b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) //Updates the document fields. 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); @@ -55,7 +55,7 @@ private static WordDocument CreateDocument() table.ResetCells(3, 2); //Accesses the instance of the cell and adds the content into cell. //First row. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); table[0, 0].AddParagraph().AppendPicture(imageStream); table[0, 1].AddParagraph().AppendText("Mountain-200"); paragraph = table[0, 1].AddParagraph(); @@ -72,10 +72,10 @@ private static WordDocument CreateDocument() table[1, 0].AddParagraph().AppendText("Size: 35"); table[1, 0].AddParagraph().AppendText("Weight: 22"); table[1, 0].AddParagraph().AppendText("Price: $1,079.99"); - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Mountain-300.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Mountain-300.png"), FileMode.Open, FileAccess.ReadWrite); table[1, 1].AddParagraph().AppendPicture(imageStream); //Third row. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Road-550.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Road-550.png"), FileMode.Open, FileAccess.ReadWrite); table[2, 0].AddParagraph().AppendPicture(imageStream); table[2, 1].AddParagraph().AppendText("Road-150"); paragraph = table[2, 1].AddParagraph(); diff --git a/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Repeat-nearest-number-of-SEQ-field.csproj b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Repeat-nearest-number-of-SEQ-field.csproj index 2fa0a29a5..25937b737 100644 --- a/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Repeat-nearest-number-of-SEQ-field.csproj +++ b/Fields/Repeat-nearest-number-of-SEQ-field/.NET/Repeat-nearest-number-of-SEQ-field/Repeat-nearest-number-of-SEQ-field.csproj @@ -10,4 +10,20 @@ + + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Output/.gitkeep b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Program.cs b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Program.cs index 4628d4b52..b38fff9b4 100644 --- a/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Program.cs +++ b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) //Updates the document fields. 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); @@ -63,7 +63,7 @@ private static WordDocument CreateDocument() //Specifies the total number of rows & columns. table.ResetCells(3, 2); //First row. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Nancy.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Nancy.png"), FileMode.Open, FileAccess.ReadWrite); table[0, 0].AddParagraph().AppendPicture(imageStream); paragraph = table[0, 1].AddParagraph(); paragraph.AppendText("Employee Id: "); @@ -73,7 +73,7 @@ private static WordDocument CreateDocument() table[0, 1].AddParagraph().AppendText("Address: 507 - 20th Ave. E."); table[0, 1].AddParagraph().AppendText("Zip Code: 98122"); //Second row. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Andrews.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Andrews.png"), FileMode.Open, FileAccess.ReadWrite); table[1, 0].AddParagraph().AppendPicture(imageStream); paragraph = table[1, 1].AddParagraph(); paragraph.AppendText("Employee ID: "); @@ -83,7 +83,7 @@ private static WordDocument CreateDocument() table[1, 1].AddParagraph().AppendText("Address1: 908 W. Capital Way, "); table[1, 1].AddParagraph().AppendText("TacomaWA USA"); //Third row. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Janet.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Janet.png"), FileMode.Open, FileAccess.ReadWrite); table[2, 0].AddParagraph().AppendPicture(imageStream); paragraph = table[2, 1].AddParagraph(); paragraph.AppendText("Employee ID: "); @@ -105,7 +105,7 @@ private static WordDocument CreateDocument() table.ResetCells(3, 2); //Accesses the instance of the cell and adds the content into cell. //First row. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); table[0, 0].AddParagraph().AppendPicture(imageStream); table[0, 1].AddParagraph().AppendText("Mountain-200"); paragraph = table[0, 1].AddParagraph(); @@ -122,10 +122,10 @@ private static WordDocument CreateDocument() table[1, 0].AddParagraph().AppendText("Size: 35"); table[1, 0].AddParagraph().AppendText("Weight: 22"); table[1, 0].AddParagraph().AppendText("Price: $1,079.99"); - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Mountain-300.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Mountain-300.png"), FileMode.Open, FileAccess.ReadWrite); table[1, 1].AddParagraph().AppendPicture(imageStream); //Third row. - imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Road-550.png"), FileMode.Open, FileAccess.ReadWrite); + imageStream = new FileStream(Path.GetFullPath(@"Data/Road-550.png"), FileMode.Open, FileAccess.ReadWrite); table[2, 0].AddParagraph().AppendPicture(imageStream); table[2, 1].AddParagraph().AppendText("Road-150"); paragraph = table[2, 1].AddParagraph(); diff --git a/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Reset-numbering-for-SEQ-field.csproj b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Reset-numbering-for-SEQ-field.csproj index 4b86c1857..54d43b7e9 100644 --- a/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Reset-numbering-for-SEQ-field.csproj +++ b/Fields/Reset-numbering-for-SEQ-field/.NET/Reset-numbering-for-SEQ-field/Reset-numbering-for-SEQ-field.csproj @@ -10,4 +10,28 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Fields/Unlink-fields/.NET/Unlink-fields/Output/.gitkeep b/Fields/Unlink-fields/.NET/Unlink-fields/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Unlink-fields/.NET/Unlink-fields/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Unlink-fields/.NET/Unlink-fields/Program.cs b/Fields/Unlink-fields/.NET/Unlink-fields/Program.cs index d5133e4e8..6892ee0e0 100644 --- a/Fields/Unlink-fields/.NET/Unlink-fields/Program.cs +++ b/Fields/Unlink-fields/.NET/Unlink-fields/Program.cs @@ -23,7 +23,7 @@ static void Main(string[] args) //Unlink the field. field.Unlink(); //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/Fields/Unlink-fields/.NET/Unlink-fields/Unlink-fields.csproj b/Fields/Unlink-fields/.NET/Unlink-fields/Unlink-fields.csproj index 6cb5c6ea2..09032e875 100644 --- a/Fields/Unlink-fields/.NET/Unlink-fields/Unlink-fields.csproj +++ b/Fields/Unlink-fields/.NET/Unlink-fields/Unlink-fields.csproj @@ -9,5 +9,9 @@ - + + + Always + + diff --git a/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Template.docx b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Data/Template.docx similarity index 100% rename from Fields/Update-fields-in-document/.NET/Update-fields-in-document/Template.docx rename to Fields/Update-fields-in-document/.NET/Update-fields-in-document/Data/Template.docx diff --git a/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Output/.gitkeep b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Program.cs b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Program.cs index 0dafef02c..cd10522c8 100644 --- a/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Program.cs +++ b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Program.cs @@ -10,14 +10,14 @@ 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)) { //Updates the fields present in a document. document.UpdateDocumentFields(true); //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/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Update-fields-in-document.csproj b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Update-fields-in-document.csproj index 9be710888..ba774a7be 100644 --- a/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Update-fields-in-document.csproj +++ b/Fields/Update-fields-in-document/.NET/Update-fields-in-document/Update-fields-in-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text.sln b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text.sln new file mode 100644 index 000000000..50e915cb0 --- /dev/null +++ b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Add-line-break-after-replace-text", "Add-line-break-after-replace-text\Add-line-break-after-replace-text.csproj", "{144F1C21-B921-44FF-99C1-7DC092D71F61}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {144F1C21-B921-44FF-99C1-7DC092D71F61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {144F1C21-B921-44FF-99C1-7DC092D71F61}.Debug|Any CPU.Build.0 = Debug|Any CPU + {144F1C21-B921-44FF-99C1-7DC092D71F61}.Release|Any CPU.ActiveCfg = Release|Any CPU + {144F1C21-B921-44FF-99C1-7DC092D71F61}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CA9DB88C-51BA-4F51-A717-504DABC0AA2E} + EndGlobalSection +EndGlobal diff --git a/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Add-line-break-after-replace-text.csproj b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Add-line-break-after-replace-text.csproj new file mode 100644 index 000000000..4668789a8 --- /dev/null +++ b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Add-line-break-after-replace-text.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Add_line_break_after_replace_text + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Data/Template.docx b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Data/Template.docx new file mode 100644 index 000000000..5d9fb28d2 Binary files /dev/null and b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Data/Template.docx differ diff --git a/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Output/.gitkeep b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Program.cs b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Program.cs new file mode 100644 index 000000000..efba9cf01 --- /dev/null +++ b/Find-and-Replace/Add-line-break-after-replace-text/.NET/Add-line-break-after-replace-text/Program.cs @@ -0,0 +1,30 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) +{ + //Opens the template Word document. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) + { + //Finds the first occurrence of a particular text in the document. + TextSelection[] textSelection = document.FindAll("Adventure Works", false, false); + //Gets the found text as single text range. + WTextRange textRange = textSelection[0].GetAsOneRange(); + //Get the owner paragraph + WParagraph ownerPara = textRange.OwnerParagraph; + //Get the index of text range. + int index = ownerPara.ChildEntities.IndexOf(textRange); + //Replace the text. + document.Replace(textSelection[0].SelectedText, "Adventure Works Cycles", false, false); + //Create line break. + Break lineBreak = new Break(document, BreakType.LineBreak); + //Insert line break in specific index. + ownerPara.ChildEntities.Insert(index + 1, lineBreak); + //Creates file stream. + 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); + } + } +} \ No newline at end of file diff --git a/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Find-and-change-font-for-text.csproj b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Find-and-change-font-for-text.csproj index c5274e726..3de0fa557 100644 --- a/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Find-and-change-font-for-text.csproj +++ b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Find-and-change-font-for-text.csproj @@ -11,5 +11,14 @@ + + + + Always + + + Always + + diff --git a/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Output/.gitkeep b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Program.cs b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Program.cs index f74eaaaab..5ca9d8de7 100644 --- a/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/Program.cs +++ b/Find-and-Replace/Find-and-change-font-for-text/.NET/Find-and-change-font-for-text/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)) { @@ -16,7 +16,7 @@ } //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/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Template.docx b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Template.docx rename to Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Data/Template.docx diff --git a/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Find-and-find-next-paragraphs.csproj b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Find-and-find-next-paragraphs.csproj index 972dc656f..f1f82deea 100644 --- a/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Find-and-find-next-paragraphs.csproj +++ b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Find-and-find-next-paragraphs.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Output/.gitkeep b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Program.cs b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Program.cs index 57dc6d973..5bd949984 100644 --- a/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Program.cs +++ b/Find-and-Replace/Find-and-find-next-paragraphs/.NET/Find-and-find-next-paragraphs/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -33,7 +33,7 @@ static void Main(string[] args) text.CharacterFormat.Italic = true; } //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/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Template.docx b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Template.docx rename to Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Data/Template.docx diff --git a/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Find-and-find-next.csproj b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Find-and-find-next.csproj index 227a6ced4..216368c0c 100644 --- a/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Find-and-find-next.csproj +++ b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Find-and-find-next.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Output/.gitkeep b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Program.cs b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Program.cs index 2584dab55..15c9f2ee5 100644 --- a/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Program.cs +++ b/Find-and-Replace/Find-and-find-next/.NET/Find-and-find-next/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -29,7 +29,7 @@ static void Main(string[] args) //Sets bold formatting. range.CharacterFormat.Bold = true; //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/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Giant Panda.docx b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Data/Giant Panda.docx similarity index 100% rename from Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Giant Panda.docx rename to Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Data/Giant Panda.docx diff --git a/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Find-and-highlight-all.csproj b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Find-and-highlight-all.csproj index b2a08996b..4626df2a6 100644 --- a/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Find-and-highlight-all.csproj +++ b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Find-and-highlight-all.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Output/.gitkeep b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Program.cs b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Program.cs index fc1c72c80..98d004335 100644 --- a/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Program.cs +++ b/Find-and-Replace/Find-and-highlight-all/.NET/Find-and-highlight-all/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Giant Panda.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Giant Panda.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Loads an existing Word document into DocIO instance. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) textRange.CharacterFormat.HighlightColor = Syncfusion.Drawing.Color.Yellow; } //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/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Giant Panda.docx b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Data/Giant Panda.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Giant Panda.docx rename to Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Data/Giant Panda.docx diff --git a/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Find-and-replace-all.csproj b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Find-and-replace-all.csproj index bc0f83158..c6a09cac3 100644 --- a/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Find-and-replace-all.csproj +++ b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Find-and-replace-all.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Output/.gitkeep b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Program.cs b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Program.cs index 51f27ea41..eafeb7677 100644 --- a/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Program.cs +++ b/Find-and-Replace/Find-and-replace-all/.NET/Find-and-replace-all/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Giant Panda.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Giant Panda.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Loads an existing Word document into DocIO instance. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Replaces the word "bear" as "panda". document.Replace("bear", "panda", false, true); //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/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Template.docx b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Template.docx rename to Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Data/Template.docx diff --git a/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Find-and-replace-first-occurrence.csproj b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Find-and-replace-first-occurrence.csproj index 289a21ecb..8a4995df1 100644 --- a/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Find-and-replace-first-occurrence.csproj +++ b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Find-and-replace-first-occurrence.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Output/.gitkeep b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Program.cs b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Program.cs index 2f66db094..29abc10ae 100644 --- a/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Program.cs +++ b/Find-and-Replace/Find-and-replace-first-occurrence/.NET/Find-and-replace-first-occurrence/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Replaces a particular text with the text body part document.Replace("Adventure Works Cycles", bodyPart, false, true, true); //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/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Find-and-replace-multiple-paragraphs.csproj b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Find-and-replace-multiple-paragraphs.csproj index 73692bbaf..942d37edb 100644 --- a/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Find-and-replace-multiple-paragraphs.csproj +++ b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Find-and-replace-multiple-paragraphs.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Output/.gitkeep b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Program.cs b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Program.cs index 646d5689c..e1f2639be 100644 --- a/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Program.cs +++ b/Find-and-Replace/Find-and-replace-multiple-paragraphs/.NET/Find-and-replace-multiple-paragraphs/Program.cs @@ -12,12 +12,12 @@ class Program { static void Main(string[] args) { - 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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { - using (WordDocument subDocument = new WordDocument(new FileStream(Path.GetFullPath(@"../../../Data/Source.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), FormatType.Docx)) + using (WordDocument subDocument = new WordDocument(new FileStream(Path.GetFullPath(@"Data/Source.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), FormatType.Docx)) { //Gets the content from another Word document. TextBodyPart replacePart = new TextBodyPart(subDocument); @@ -29,7 +29,7 @@ static void Main(string[] args) //Finds the text that extends to several paragraphs and replaces it with desired content. document.ReplaceSingleLine(placeholderText, replacePart, false, false); //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/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Input.docx b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Data/Input.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Input.docx rename to Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Data/Input.docx diff --git a/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Find-and-replace-non-breaking-spaces.csproj b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Find-and-replace-non-breaking-spaces.csproj index d17de6dc6..eea6c1267 100644 --- a/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Find-and-replace-non-breaking-spaces.csproj +++ b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Find-and-replace-non-breaking-spaces.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Output/.gitkeep b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Program.cs b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Program.cs index 7b6ad23c0..30229ea3e 100644 --- a/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Program.cs +++ b/Find-and-Replace/Find-and-replace-non-breaking-spaces/.NET/Find-and-replace-non-breaking-spaces/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Open the file as 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.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Replace all occurrences of non-breaking spaces with regular spaces. document.Replace(ControlChar.NonBreakingSpace, ControlChar.Space, false, false); //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/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Template.docx b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Template.docx rename to Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Data/Template.docx diff --git a/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Find-and-replace-paragraphs-with-text.csproj b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Find-and-replace-paragraphs-with-text.csproj index dd0bef6c7..4cc88d6df 100644 --- a/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Find-and-replace-paragraphs-with-text.csproj +++ b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Find-and-replace-paragraphs-with-text.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Output/.gitkeep b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Program.cs b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Program.cs index 4deecac32..b818adf4f 100644 --- a/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Program.cs +++ b/Find-and-Replace/Find-and-replace-paragraphs-with-text/.NET/Find-and-replace-paragraphs-with-text/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Replaces the text extended to two paragraphs with simple text. document.ReplaceSingleLine("First paragraph Second paragraph", "Replaced paragraph", true, false); //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/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Find-and-replace-text-with-TOC.csproj b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Find-and-replace-text-with-TOC.csproj index ff88c42af..318981124 100644 --- a/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Find-and-replace-text-with-TOC.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Find-and-replace-text-with-TOC.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Program.cs b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Program.cs index b19e67e54..897ec139a 100644 --- a/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-TOC/.NET/Find-and-replace-text-with-TOC/Program.cs @@ -10,7 +10,7 @@ internal class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Update the TOC document.UpdateTableOfContents(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Data/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/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Find-and-replace-text-with-chart.csproj b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Find-and-replace-text-with-chart.csproj index 2a9f01ad0..b8a3ab525 100644 --- a/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Find-and-replace-text-with-chart.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Find-and-replace-text-with-chart.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Program.cs b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Program.cs index b32b71141..6931ab2ce 100644 --- a/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-chart/.NET/Find-and-replace-text-with-chart/Program.cs @@ -11,7 +11,7 @@ internal class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Replaces the placeholder text with a new chart. document.Replace("[Purchase details]", bodyPart, true, true, true); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Data/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/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Template.docx b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Template.docx rename to Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Data/Template.docx diff --git a/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Find-and-replace-text-with-formatted-text.csproj b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Find-and-replace-text-with-formatted-text.csproj index 71c0a9f39..c379e10df 100644 --- a/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Find-and-replace-text-with-formatted-text.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Find-and-replace-text-with-formatted-text.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Program.cs b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Program.cs index 5a4dc811e..ffe3b4070 100644 --- a/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-formatted-text/.NET/Find-and-replace-text-with-formatted-text/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)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Replace the particular text with the selected text along with formatting. document.Replace("Bear", selection, false, false, true); //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Find-and-replace-text-with-image.csproj b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Find-and-replace-text-with-image.csproj index 9228f27cd..3661cf5c8 100644 --- a/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Find-and-replace-text-with-image.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Find-and-replace-text-with-image.csproj @@ -10,4 +10,37 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Program.cs b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Program.cs index 9f0fb8fcf..658e94474 100644 --- a/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-image/.NET/Find-and-replace-text-with-image/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - 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)) { //Opens an existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -20,14 +20,14 @@ static void Main(string[] args) { //Replaces the image placeholder text with desired image. WParagraph paragraph = new WParagraph(document); - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data" + textSelections[i].SelectedText + ".png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data" + textSelections[i].SelectedText + ".png"), FileMode.Open, FileAccess.ReadWrite); WPicture picture = paragraph.AppendPicture(imageStream) as WPicture; TextBodyPart bodyPart = new TextBodyPart(document); bodyPart.BodyItems.Add(paragraph); document.Replace(textSelections[i].SelectedText, bodyPart, true, true); } //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/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Find-and-replace-text-with-page-break.csproj b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Find-and-replace-text-with-page-break.csproj index 275360fdf..d179ac1b8 100644 --- a/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Find-and-replace-text-with-page-break.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Find-and-replace-text-with-page-break.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Program.cs b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Program.cs index ed4f2c034..f40b5272b 100644 --- a/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-page-break/.NET/Find-and-replace-text-with-page-break/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Replace all entries of a given regular expression text with the text body part. document.ReplaceSingleLine(new Regex("<<(.*)>>"), bodyPart); //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/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Find-and-replace-text-with-table.csproj b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Find-and-replace-text-with-table.csproj index 7555994c3..06ef46428 100644 --- a/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Find-and-replace-text-with-table.csproj +++ b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Find-and-replace-text-with-table.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Program.cs b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Program.cs index b2b3c1ae9..9bdd4bfae 100644 --- a/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-with-table/.NET/Find-and-replace-text-with-table/Program.cs @@ -12,7 +12,7 @@ class Program { static void Main(string[] args) { - 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)) { //Opens an existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -41,7 +41,7 @@ static void Main(string[] args) bodyPart.BodyItems.Add(table); document.Replace("[Suppliers table]", bodyPart, true, true, true); //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); @@ -55,7 +55,7 @@ static void Main(string[] args) /// private static void ImportDataToTable(WTable table) { - FileStream fs = new FileStream(Path.GetFullPath(@"../../../Data/Suppliers.xml"), FileMode.Open, FileAccess.Read); + FileStream fs = new FileStream(Path.GetFullPath(@"Data/Suppliers.xml"), FileMode.Open, FileAccess.Read); XmlReader reader = XmlReader.Create(fs); if (reader == null) throw new Exception("reader"); diff --git a/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Find-and-replace-text-within-table.csproj b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Find-and-replace-text-within-table.csproj index 34ecc6d11..c51fa5e0d 100644 --- a/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Find-and-replace-text-within-table.csproj +++ b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Find-and-replace-text-within-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Output/.gitkeep b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Program.cs b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Program.cs index 28d685bce..a8a513d55 100644 --- a/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Program.cs +++ b/Find-and-Replace/Find-and-replace-text-within-table/.NET/Find-and-replace-text-within-table/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Open the file as Stream. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the Input document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -21,7 +21,7 @@ static void Main(string[] args) TextSelection textSelection = document.Find("Adventure Works Cycles", false, true); //Find and replace text inside table. FindAndReplaceInTable(table,textSelection); - 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 document. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Find-and-replace-with-Word-document.csproj b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Find-and-replace-with-Word-document.csproj index 8ecdffda7..241f2118a 100644 --- a/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Find-and-replace-with-Word-document.csproj +++ b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Find-and-replace-with-Word-document.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Output/.gitkeep b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Program.cs b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Program.cs index 25be7c47d..7ea1ea069 100644 --- a/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Program.cs +++ b/Find-and-Replace/Find-and-replace-with-Word-document/.NET/Find-and-replace-with-Word-document/Program.cs @@ -12,7 +12,7 @@ class Program { static void Main(string[] args) { - 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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -22,13 +22,13 @@ static void Main(string[] args) for (int i = 0; i < textSelections.Length; i++) { //Replaces the content placeholder text with desired Word document. - using (WordDocument subDocument = new WordDocument(new FileStream(Path.GetFullPath(@"../../../Data/" + textSelections[i].SelectedText.TrimStart('[').TrimEnd(']') + ".docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), FormatType.Docx)) + using (WordDocument subDocument = new WordDocument(new FileStream(Path.GetFullPath(@"Data/" + textSelections[i].SelectedText.TrimStart('[').TrimEnd(']') + ".docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), FormatType.Docx)) { document.Replace(textSelections[i].SelectedText, subDocument, true, true); } } //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/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Template.docx b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Template.docx rename to Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Data/Template.docx diff --git a/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Find-and-replace-with-merge-field.csproj b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Find-and-replace-with-merge-field.csproj index 478cb993c..5f526d6dc 100644 --- a/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Find-and-replace-with-merge-field.csproj +++ b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Find-and-replace-with-merge-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Output/.gitkeep b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Program.cs b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Program.cs index 183cbc855..6bfeee00e 100644 --- a/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Program.cs +++ b/Find-and-Replace/Find-and-replace-with-merge-field/.NET/Find-and-replace-with-merge-field/Program.cs @@ -10,7 +10,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -33,7 +33,7 @@ static void Main(string[] args) document.Replace(searchedPlaceholders[i], bodyPart, true, true, true); } //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/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Find-and-replace-with-multiple-list-paragraphs.csproj b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Find-and-replace-with-multiple-list-paragraphs.csproj index 78b136e35..881bd8129 100644 --- a/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Find-and-replace-with-multiple-list-paragraphs.csproj +++ b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Find-and-replace-with-multiple-list-paragraphs.csproj @@ -12,4 +12,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Output/.gitkeep b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Program.cs b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Program.cs index 0317711a5..788841fc4 100644 --- a/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Program.cs +++ b/Find-and-Replace/Find-and-replace-with-multiple-list-paragraphs/.NET/Find-and-replace-with-multiple-list-paragraphs/Program.cs @@ -3,9 +3,9 @@ using System.Reflection.Metadata; -string[] filePaths = {"../../../Data/Heading1Items.docx","../../../Data/Heading2Items.docx"}; +string[] filePaths = {"Data/Heading1Items.docx","Data/Heading2Items.docx"}; //Open the file as Stream. -using (FileStream documentStream = new FileStream("../../../Data/Input.docx", FileMode.Open, FileAccess.Read)) +using (FileStream documentStream = new FileStream("Data/Input.docx", FileMode.Open, FileAccess.Read)) { //Open an existing Word document. using (WordDocument document = new WordDocument(documentStream, FormatType.Docx)) @@ -33,7 +33,7 @@ } //Save the Word document. - using (FileStream output = new FileStream("../../../Result.docx", FileMode.Create, FileAccess.Write)) + using (FileStream output = new FileStream("Output/Result.docx", FileMode.Create, FileAccess.Write)) { document.Save(output, FormatType.Docx); } diff --git a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Input.docx b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Data/Input.docx similarity index 100% rename from Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Input.docx rename to Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Data/Input.docx diff --git a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Find-next-and-replace-with-formatted-text.csproj b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Find-next-and-replace-with-formatted-text.csproj index 2e65a21bd..95d5dac97 100644 --- a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Find-next-and-replace-with-formatted-text.csproj +++ b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Find-next-and-replace-with-formatted-text.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Output/.gitkeep b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Program.cs b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Program.cs index 25cd5dfba..c18c8b93f 100644 --- a/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Program.cs +++ b/Find-and-Replace/Find-next-and-replace-with-formatted-text/.NET/Find-next-and-replace-with-formatted-text/Program.cs @@ -10,7 +10,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)) @@ -22,7 +22,7 @@ static void Main(string[] args) //Replace the text extended to two paragraphs with the above selected text. document.ReplaceSingleLine("CompanyName", textSelections, true, true); //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/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Template.docx b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Data/Template.docx similarity index 100% rename from Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Template.docx rename to Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Data/Template.docx diff --git a/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Find-next-multiline-text-and-replace-text.csproj b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Find-next-multiline-text-and-replace-text.csproj index 68109b768..6b9389294 100644 --- a/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Find-next-multiline-text-and-replace-text.csproj +++ b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Find-next-multiline-text-and-replace-text.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Output/.gitkeep b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Program.cs b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Program.cs index 0fc8af67a..7c0c797ac 100644 --- a/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/Program.cs +++ b/Find-and-Replace/Find-next-multiline-text-and-replace-text/.NET/Find-next-multiline-text-and-replace-text/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)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Replace the particular text with the selected text. document.Replace("Equation of sodium chloride and silver nitrate", textSelections[1], true, true); //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Output/.gitkeep b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Program.cs b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Program.cs index ded253f02..23f6aae4a 100644 --- a/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Program.cs +++ b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO; //Open the file as a Stream. -using (FileStream docStream = new FileStream("../../../Data/Template.docx", FileMode.Open, FileAccess.Read)) +using (FileStream docStream = new FileStream("Data/Template.docx", FileMode.Open, FileAccess.Read)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(docStream, FormatType.Docx)) @@ -17,7 +17,7 @@ ReplaceOLEObjectsWithPlaceHolder(ole, "Embedded file was here"); } //Save a Word document to the MemoryStream. - FileStream outputStream = new FileStream(@"../../../Data/Output.docx", FileMode.OpenOrCreate); + FileStream outputStream = new FileStream(@"Output/Output.docx", FileMode.OpenOrCreate); document.Save(outputStream, FormatType.Docx); //Closes the Word document document.Close(); diff --git a/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Replace-all-OLE-objects-with-text.csproj b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Replace-all-OLE-objects-with-text.csproj index 08a9090ae..abc31c1fa 100644 --- a/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Replace-all-OLE-objects-with-text.csproj +++ b/Find-and-Replace/Replace-all-OLE-objects-with-text/.NET/Replace-all-OLE-objects-with-text/Replace-all-OLE-objects-with-text.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Output/.gitkeep b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Program.cs b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Program.cs index a5792fe77..50d84256c 100644 --- a/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Program.cs +++ b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 line break with paragraph mark in the Word document. ReplaceLineBreakWithPara(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/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Replace-line-break-with-paragraph-mark.csproj b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Replace-line-break-with-paragraph-mark.csproj index e59346381..4cf153642 100644 --- a/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Replace-line-break-with-paragraph-mark.csproj +++ b/Find-and-Replace/Replace-line-break-with-paragraph-mark/.NET/Replace-line-break-with-paragraph-mark/Replace-line-break-with-paragraph-mark.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Template.docx b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Data/Template.docx similarity index 100% rename from Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Template.docx rename to Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Data/Template.docx diff --git a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Output/.gitkeep b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Program.cs b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Program.cs index 8ea411024..5dd48dc75 100644 --- a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Program.cs +++ b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Finds all occurrences of a misspelled word and replaces with properly spelled word. document.Replace("Cyles", "Cycles", true, true); //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/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Replace-misspelled-word.csproj b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Replace-misspelled-word.csproj index 552d8c640..ae2fb5193 100644 --- a/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Replace-misspelled-word.csproj +++ b/Find-and-Replace/Replace-misspelled-word/.NET/Replace-misspelled-word/Replace-misspelled-word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Template.docx b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Data/Template.docx similarity index 100% rename from Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Template.docx rename to Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Data/Template.docx diff --git a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Output/.gitkeep b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Program.cs b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Program.cs index d3fd8e90c..ff8294429 100644 --- a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Program.cs +++ b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/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)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Replace the text extended to several paragraphs with simple text. document.ReplaceSingleLine(new Regex(@"\[(.*)\]"), "Thank you for Payment"); //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Replace-multiline-text-with-single-line.csproj b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Replace-multiline-text-with-single-line.csproj index 073cb3581..87b17afa2 100644 --- a/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Replace-multiline-text-with-single-line.csproj +++ b/Find-and-Replace/Replace-multiline-text-with-single-line/.NET/Replace-multiline-text-with-single-line/Replace-multiline-text-with-single-line.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Template.docx b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Data/Template.docx similarity index 100% rename from Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Template.docx rename to Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Data/Template.docx diff --git a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Output/.gitkeep b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Program.cs b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Program.cs index 34ddf2d2c..3a654830a 100644 --- a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Program.cs +++ b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Program.cs @@ -9,7 +9,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)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Replace all occurrences of the given pattern of text with normal text. document.Replace(new Regex("{[A-Za-z]+}"), "cycles 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)) { //Save the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Replace-pattern-text-with-normal-text.csproj b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Replace-pattern-text-with-normal-text.csproj index 67da76620..fe94f6058 100644 --- a/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Replace-pattern-text-with-normal-text.csproj +++ b/Find-and-Replace/Replace-pattern-text-with-normal-text/.NET/Replace-pattern-text-with-normal-text/Replace-pattern-text-with-normal-text.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Input.docx b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Data/Input.docx similarity index 100% rename from Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Input.docx rename to Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Data/Input.docx diff --git a/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Output/.gitkeep b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Program.cs b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Program.cs index 87d4e35ba..65ad36290 100644 --- a/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Program.cs +++ b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/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.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) counter++; } //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/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Replace-placeholder-with-incremental-value.csproj b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Replace-placeholder-with-incremental-value.csproj index d6fae9263..28ca6bd5d 100644 --- a/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Replace-placeholder-with-incremental-value.csproj +++ b/Find-and-Replace/Replace-placeholder-with-incremental-value/.NET/Replace-placeholder-with-incremental-value/Replace-placeholder-with-incremental-value.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Template.docx b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Data/Template.docx similarity index 100% rename from Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Template.docx rename to Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Data/Template.docx diff --git a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Output/.gitkeep b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Program.cs b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Program.cs index 149ba887f..a6b25744b 100644 --- a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Program.cs +++ b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/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)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Replace the particular text extended to several paragraphs with the selected text. document.ReplaceSingleLine(new Regex("<<(.*)>>"), textSelections[1]); //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Replace-text-extended-to-several-paragraphs.csproj b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Replace-text-extended-to-several-paragraphs.csproj index 3c32f8978..1e351e254 100644 --- a/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Replace-text-extended-to-several-paragraphs.csproj +++ b/Find-and-Replace/Replace-text-extended-to-several-paragraphs/.NET/Replace-text-extended-to-several-paragraphs/Replace-text-extended-to-several-paragraphs.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj index 5a236fe5d..747fd6a70 100644 --- a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj +++ b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/packages.config b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/packages.config index ff796ce92..6be96b6c5 100644 --- a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/packages.config +++ b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET-Framework/Replace-text-in-Word-with-HTML/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Output/.gitkeep b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Program.cs b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Program.cs index 44db47275..46eb865bd 100644 --- a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Program.cs +++ b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Sample.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Sample.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Replace the text by finding the word using string. ReplaceTextUsingString(document); //Create 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)) { //Save the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); @@ -36,7 +36,7 @@ private static void ReplaceTextUsingString(WordDocument document) //Add section for HTML document. IWSection htmlsection = replaceDoc.AddSection(); //Read HTML string from the file. - string htmlString = File.ReadAllText(Path.GetFullPath(@"../../../Data/Keyword.html")); + string htmlString = File.ReadAllText(Path.GetFullPath(@"Data/Keyword.html")); //Validate the HTML string. bool isValidHtml = htmlsection.Body.IsValidXHTML(htmlString, XHTMLValidationType.None); //When the HTML string passes validation, it is inserted to the document. @@ -58,7 +58,7 @@ private static void ReplaceTextUsingRegex(WordDocument document) //Add section for HTML document. IWSection htmlsection = replaceDoc.AddSection(); //Read HTML string from the file. - string htmlString = File.ReadAllText(Path.GetFullPath(@"../../../Data/File.html")); + string htmlString = File.ReadAllText(Path.GetFullPath(@"Data/File.html")); //Validate the HTML string. bool isValidHtml = htmlsection.Body.IsValidXHTML(htmlString, XHTMLValidationType.None); //When the HTML string passes validation, it is inserted to the document. diff --git a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj index aeec605a5..cb884337f 100644 --- a/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj +++ b/Find-and-Replace/Replace-text-in-Word-with-HTML/.NET/Replace-text-in-Word-with-HTML/Replace-text-in-Word-with-HTML.csproj @@ -12,4 +12,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj index a86600bff..d58836185 100644 --- a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj +++ b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/packages.config b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/packages.config index ff796ce92..6be96b6c5 100644 --- a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/packages.config +++ b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET-Framework/Replace-text-in-headers-and-footers/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Output/.gitkeep b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Program.cs b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Program.cs index ca01ffc51..0df8af659 100644 --- a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Program.cs +++ b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Loads the template document using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -18,7 +18,7 @@ static void Main(string[] args) WParagraph headerParagraph = new WParagraph(document); //Align paragraph horizontally to the right. headerParagraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right; - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/AdventureCycle.jpg"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/AdventureCycle.jpg"), FileMode.Open, FileAccess.ReadWrite); //Append picture in the paragraph. WPicture picture = headerParagraph.AppendPicture(imageStream) as WPicture; //Set width and height for the picture. @@ -47,7 +47,7 @@ static void Main(string[] args) footerBodyPart.BodyItems.Add(footerParagraph); //Replace all entries of a given regular expression with the text body part along with its formatting in footer. document.Replace(new Regex("^//(.*)"), footerBodyPart, false); - 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 document. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj index f8265ad7f..daf9835f4 100644 --- a/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj +++ b/Find-and-Replace/Replace-text-in-headers-and-footers/.NET/Replace-text-in-headers-and-footers/Replace-text-in-headers-and-footers.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table.sln b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table.sln new file mode 100644 index 000000000..d4b8a7fd1 --- /dev/null +++ b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Replace-text-with-HTML-table", "Replace-text-with-HTML-table\Replace-text-with-HTML-table.csproj", "{D3AF529E-DB54-4294-A876-DD42E1E472D0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D3AF529E-DB54-4294-A876-DD42E1E472D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D3AF529E-DB54-4294-A876-DD42E1E472D0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D3AF529E-DB54-4294-A876-DD42E1E472D0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D3AF529E-DB54-4294-A876-DD42E1E472D0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {58137FF9-5AE1-4514-9929-3A8A7DA1DFEB} + EndGlobalSection +EndGlobal diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Input.docx b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Input.docx new file mode 100644 index 000000000..676102a64 Binary files /dev/null and b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Input.docx differ diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Table.html b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Table.html new file mode 100644 index 000000000..07a57f3a5 --- /dev/null +++ b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Data/Table.html @@ -0,0 +1,18 @@ +

ooxWord://word/media/image4.png

+

Mountain-200

+

Product No: BK-M68B-38

+

Size: 38

+

Weight: 25

+

Price: $2,294.99

+

 

+

 

+

Mountain-300

+

Product No: BK-M47B-38

+

Size: 35

+

Weight: 22

+

Price: $1,079.99

+

 

+

 

+

ooxWord://word/media/image5.png

+

 

+
\ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Output/.gitkeep b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Program.cs b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Program.cs new file mode 100644 index 000000000..e3867647b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Program.cs @@ -0,0 +1,40 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using System.IO; + +namespace Replace_text_with_HTML_table +{ + class Program + { + static void Main(string[] args) + { + using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + //Open an existing Word document. + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Docx)) + { + using (FileStream htmlFileStream = new FileStream(Path.GetFullPath(@"Data/Table.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + //Open an HTML document. + using (WordDocument htmlDocument = new WordDocument(htmlFileStream, FormatType.Html)) + { + //Get the first table from the HTML document. + WTable table = htmlDocument.Sections[0].Tables[0].Clone() as WTable; + TextBodyPart bodyPart = new TextBodyPart(document); + //Add the table to the body part. + bodyPart.BodyItems.Add(table); + //Replace the placeholder text "<>" with the HTML table in the Word document. + document.Replace("<>", bodyPart, true, true, false); + //Create a file stream to save the modified Word document. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Save the modified Word document to the file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Replace-text-with-HTML-table.csproj b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Replace-text-with-HTML-table.csproj new file mode 100644 index 000000000..088ab9f80 --- /dev/null +++ b/Find-and-Replace/Replace-text-with-HTML-table/.NET/Replace-text-with-HTML-table/Replace-text-with-HTML-table.csproj @@ -0,0 +1,25 @@ + + + + Exe + net8.0 + Replace_text_with_HTML_table + + + + + + + + + Always + + + Always + + + Always + + + + diff --git a/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Output/.gitkeep b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Program.cs b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Program.cs index 26dc914f8..5405f776b 100644 --- a/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Program.cs +++ b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Program.cs @@ -10,12 +10,12 @@ class Program static void Main(string[] args) { //Loads a template document. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/SourceTemplate.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/SourceTemplate.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Gets the document to replace the text. - using (FileStream replaceFileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/ReplacementDoc.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream replaceFileStreamPath = new FileStream(Path.GetFullPath(@"Data/ReplacementDoc.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an existing Word document. using (IWordDocument replaceDocument = new WordDocument(replaceFileStreamPath, FormatType.Docx)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Replaces a particular text with another document. document.Replace("Information", replaceDocument, false, true, true); //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/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Replace-text-with-Word-document.csproj b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Replace-text-with-Word-document.csproj index 03b317b94..52bdd8d7a 100644 --- a/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Replace-text-with-Word-document.csproj +++ b/Find-and-Replace/Replace-text-with-Word-document/.NET/Replace-text-with-Word-document/Replace-text-with-Word-document.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Template.docx b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Data/Template.docx similarity index 100% rename from Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Template.docx rename to Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Data/Template.docx diff --git a/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Output/.gitkeep b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Program.cs b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Program.cs index 2c237aabb..920409fad 100644 --- a/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Program.cs +++ b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Replaces a particular text with the text body part. document.Replace("Adventure Works Cycles", bodyPart, false, true, true); //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/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Replace-text-with-body-part.csproj b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Replace-text-with-body-part.csproj index 4df18f268..e97153515 100644 --- a/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Replace-text-with-body-part.csproj +++ b/Find-and-Replace/Replace-text-with-body-part/.NET/Replace-text-with-body-part/Replace-text-with-body-part.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Output/.gitkeep b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Program.cs b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Program.cs index bc746d3e9..1d399e6cb 100644 --- a/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Program.cs +++ b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream inputStream = new FileStream(Path.GetFullPath(@"../../../Data/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 an existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -25,7 +25,7 @@ static void Main(string[] args) //Add a new paragraph to the first cell of the table. IWParagraph cellParagraph = row.Cells[0].AddParagraph(); row.Cells[0].CellFormat.VerticalAlignment = VerticalAlignment.Top; - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/image.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/image.png"), FileMode.Open, FileAccess.ReadWrite); //Append a picture to the cell. WPicture picture = cellParagraph.AppendPicture(imageStream) as WPicture; picture.Height = 88.3f; @@ -54,7 +54,7 @@ static void Main(string[] args) //Replace all entries of a given regular expression with the text body part. document.Replace(new Regex("<<(.*)>>"), textBodyPart); //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/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Replace-text-with-content-control.csproj b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Replace-text-with-content-control.csproj index 8816768d4..c939e367b 100644 --- a/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Replace-text-with-content-control.csproj +++ b/Find-and-Replace/Replace-text-with-content-control/.NET/Replace-text-with-content-control/Replace-text-with-content-control.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Output/.gitkeep b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Program.cs b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Program.cs index d5d51dcd5..fda1d43ad 100644 --- a/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Program.cs +++ b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Program.cs @@ -9,7 +9,7 @@ internal class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -28,7 +28,7 @@ static void Main(string[] args) //Clears the text body part textBodyPart.Clear(); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Data/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/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Replace-text-with-hyperlink.csproj b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Replace-text-with-hyperlink.csproj index 55f0e0756..d841922ef 100644 --- a/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Replace-text-with-hyperlink.csproj +++ b/Find-and-Replace/Replace-text-with-hyperlink/.NET/Replace-text-with-hyperlink/Replace-text-with-hyperlink.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Input.docx b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Data/Input.docx similarity index 100% rename from Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Input.docx rename to Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Data/Input.docx diff --git a/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Output/.gitkeep b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Program.cs b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Program.cs index 46b471753..f81921223 100644 --- a/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Program.cs +++ b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/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)) @@ -18,7 +18,7 @@ static void Main(string[] args) ReplaceBookmarkText(document, "Description", "Price", "Amount"); ReplaceBookmarkText(document, "Address", "290", "two hundred and ninety"); //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/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Replace-text-within-bookmark-content.csproj b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Replace-text-within-bookmark-content.csproj index 690900035..d6a8fd438 100644 --- a/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Replace-text-within-bookmark-content.csproj +++ b/Find-and-Replace/Replace-text-within-bookmark-content/.NET/Replace-text-within-bookmark-content/Replace-text-within-bookmark-content.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Input.docx b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Data/Input.docx similarity index 100% rename from Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Input.docx rename to Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Data/Input.docx diff --git a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Find-all-items-by-properties.csproj b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Find-all-items-by-properties.csproj index 629379a18..703f1c742 100644 --- a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Find-all-items-by-properties.csproj +++ b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Find-all-items-by-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Output/.gitkeep b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Program.cs b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Program.cs index d63460415..b17d2741b 100644 --- a/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Program.cs +++ b/Find-item-in-word-document/Find-all-items-by-properties/.NET/Find-all-items-by-properties/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -54,7 +54,7 @@ static void Main(string[] args) textRange.CharacterFormat.Italic = false; } //Creates 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)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Input.docx b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Data/Input.docx similarity index 100% rename from Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Input.docx rename to Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Data/Input.docx diff --git a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Find-all-items-by-property.csproj b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Find-all-items-by-property.csproj index 3d0328446..b0891b94e 100644 --- a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Find-all-items-by-property.csproj +++ b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Find-all-items-by-property.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Output/.gitkeep b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Program.cs b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Program.cs index 3111945df..cf9ddf56e 100644 --- a/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Program.cs +++ b/Find-item-in-word-document/Find-all-items-by-property/.NET/Find-all-items-by-property/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -35,7 +35,7 @@ static void Main(string[] args) hyperlink.Uri = "http://www.w3schools.com/"; } //Creates 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)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Input.docx b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Data/Input.docx similarity index 100% rename from Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Input.docx rename to Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Data/Input.docx diff --git a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Find-first-item-by-properties.csproj b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Find-first-item-by-properties.csproj index bf195685e..bbc460e68 100644 --- a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Find-first-item-by-properties.csproj +++ b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Find-first-item-by-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Output/.gitkeep b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Program.cs b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Program.cs index c19c0ea0c..91e62e2d9 100644 --- a/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Program.cs +++ b/Find-item-in-word-document/Find-first-item-by-properties/.NET/Find-first-item-by-properties/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -30,7 +30,7 @@ static void Main(string[] args) if (table != null) table.OwnerTextBody.ChildEntities.Remove(table); //Creates 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)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Input.docx b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Data/Input.docx similarity index 100% rename from Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Input.docx rename to Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Data/Input.docx diff --git a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Find-first-item-by-property.csproj b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Find-first-item-by-property.csproj index 6ceccbbe9..be68813b2 100644 --- a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Find-first-item-by-property.csproj +++ b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Find-first-item-by-property.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Output/.gitkeep b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Program.cs b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Program.cs index f64212e02..ac9758653 100644 --- a/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/Program.cs +++ b/Find-item-in-word-document/Find-first-item-by-property/.NET/Find-first-item-by-property/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -22,7 +22,7 @@ static void Main(string[] args) picture.Width = 100; } //Creates 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)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Data/Input.docx b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Data/Input.docx index 0b6f8a4a5..d93193eff 100644 Binary files a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Data/Input.docx and b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Data/Input.docx differ diff --git a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Output/.gitkeep b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Program.cs b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Program.cs index 443fbea2a..2dbcd4d69 100644 --- a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Program.cs +++ b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Program.cs @@ -1,7 +1,4 @@ - - -using Microsoft.VisualBasic.FileIO; -using Syncfusion.DocIO; +using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; namespace Replace_text_heading_paragraphs @@ -10,25 +7,27 @@ class Program { static void Main(string[] args) { - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputFileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { - //Opens an existing Word document. - using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) + //Opens the input Word document. + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Automatic)) { for (int headingLevel = 1; headingLevel < 10; headingLevel++) { - //Find headings based on the levels and endnote by paragraph in Word document. + //Get all heading paragraphs based on the heading style level. List headings = document.FindAllItemsByProperty(EntityType.Paragraph, "StyleName", "Heading " + headingLevel); - //Replace the headings with text. + //Iterate through all headings in the list. for (int index = 0; index < headings.Count; index++) { + //Cast the current heading to WParagraph. WParagraph paragraph = headings[index] as WParagraph; + //Remove all child elements from the paragraph. paragraph.ChildEntities.Clear(); - paragraph.AppendText("Replaced Heading"+headingLevel+" text"); + //Add new text to replace the heading content. + paragraph.AppendText("Replaced Heading" + headingLevel + " text"); } } - //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/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Replace-text-heading-paragraphs.csproj b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Replace-text-heading-paragraphs.csproj index a23393083..0357ee7dd 100644 --- a/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Replace-text-heading-paragraphs.csproj +++ b/Find-item-in-word-document/Replace-text-heading-paragraphs/.NET/Replace-text-heading-paragraphs/Replace-text-heading-paragraphs.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Add-endnotes-in-Word-document.csproj b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Add-endnotes-in-Word-document.csproj index 07d2cc9b7..020d6b10d 100644 --- a/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Add-endnotes-in-Word-document.csproj +++ b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Add-endnotes-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Output/.gitkeep b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Program.cs b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Program.cs index b2538fedd..3a6f744ef 100644 --- a/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Program.cs +++ b/Footnotes-and-Endnotes/Add-endnotes-in-Word-document/.NET/Add-endnotes-in-Word-document/Program.cs @@ -31,7 +31,7 @@ static void Main(string[] args) paragraph = endnote.TextBody.AddParagraph(); 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/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Add-footnotes-in-Word-document.csproj b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Add-footnotes-in-Word-document.csproj index ab6bd3ba3..332fa53af 100644 --- a/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Add-footnotes-in-Word-document.csproj +++ b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Add-footnotes-in-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Output/.gitkeep b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Program.cs b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Program.cs index fabafcf35..3684afc67 100644 --- a/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Program.cs +++ b/Footnotes-and-Endnotes/Add-footnotes-in-Word-document/.NET/Add-footnotes-in-Word-document/Program.cs @@ -31,7 +31,7 @@ static void Main(string[] args) paragraph = footnote.TextBody.AddParagraph(); 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/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Change-default-endnote-separator.csproj b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Change-default-endnote-separator.csproj index 348ce456c..c5c7c194d 100644 --- a/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Change-default-endnote-separator.csproj +++ b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Change-default-endnote-separator.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Output/.gitkeep b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Program.cs b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Program.cs index 2ffc444fd..5e666a426 100644 --- a/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Program.cs +++ b/Footnotes-and-Endnotes/Change-default-endnote-separator/.NET/Change-default-endnote-separator/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) paragraph = endnote.TextBody.AddParagraph(); 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/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Change-default-footnote-separator.csproj b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Change-default-footnote-separator.csproj index 34f31fae2..676b5c3ab 100644 --- a/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Change-default-footnote-separator.csproj +++ b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Change-default-footnote-separator.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Output/.gitkeep b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Program.cs b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Program.cs index bd0354b60..b517cc6d1 100644 --- a/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Program.cs +++ b/Footnotes-and-Endnotes/Change-default-footnote-separator/.NET/Change-default-footnote-separator/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) paragraph = footnote.TextBody.AddParagraph(); 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/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Input.docx b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Data/Input.docx similarity index 100% rename from Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Input.docx rename to Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Data/Input.docx diff --git a/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Modify-Footnote-and-Endnote-content.csproj b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Modify-Footnote-and-Endnote-content.csproj index f37bfa8fa..031ba62f3 100644 --- a/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Modify-Footnote-and-Endnote-content.csproj +++ b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Modify-Footnote-and-Endnote-content.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Output/.gitkeep b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Program.cs b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Program.cs index 20e5d84fc..2e6126eac 100644 --- a/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Program.cs +++ b/Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream inputStream = new FileStream(@"../../../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)) @@ -38,7 +38,7 @@ static void Main(string[] args) endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Append the endnote text. endnoteParagraph.AppendText(" Endnote is modified."); - using (FileStream outputStream = new FileStream(@"../../../Sample.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.OpenOrCreate, FileAccess.ReadWrite)) { //Save a Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Output/.gitkeep b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Position-for-footnote-and-endnote.csproj b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Position-for-footnote-and-endnote.csproj index 14a95af00..8a270652d 100644 --- a/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Position-for-footnote-and-endnote.csproj +++ b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Position-for-footnote-and-endnote.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Program.cs b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Program.cs index 158e01386..8e9447474 100644 --- a/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Program.cs +++ b/Footnotes-and-Endnotes/Position-for-footnote-and-endnote/.NET/Position-for-footnote-and-endnote/Program.cs @@ -54,7 +54,7 @@ static void Main(string[] args) //Append text into the paragraph. paragraph.AppendText("Paragraph in third Section."); //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/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Template.docx b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Data/Template.docx similarity index 100% rename from Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Template.docx rename to Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Data/Template.docx diff --git a/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Output/.gitkeep b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Program.cs b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Program.cs index 6b8e7c1a5..aff0088a7 100644 --- a/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Program.cs +++ b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Loads the template document as stream using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Removes footnote and endnote from the document RemoveFootNoteEndNote(document); //Creates file stream. - using (FileStream outputStream = new FileStream(@"../../../Result.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.OpenOrCreate, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Remove-footnotes-and-endnotes.csproj b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Remove-footnotes-and-endnotes.csproj index 1d56aa8ca..71c260f0b 100644 --- a/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Remove-footnotes-and-endnotes.csproj +++ b/Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Remove-footnotes-and-endnotes.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Add-checkbox-form-field.csproj b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Add-checkbox-form-field.csproj index 7042a4e1b..b6292b492 100644 --- a/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Add-checkbox-form-field.csproj +++ b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Add-checkbox-form-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Output/.gitkeep b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Program.cs b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Program.cs index c9e1796d4..0a8dcc6d8 100644 --- a/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Program.cs +++ b/Form-Fields/Add-checkbox-form-field/.NET/Add-checkbox-form-field/Program.cs @@ -31,7 +31,7 @@ static void Main(string[] args) checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //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/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Add-dropdown-form-field.csproj b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Add-dropdown-form-field.csproj index ad260752f..b956d2cff 100644 --- a/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Add-dropdown-form-field.csproj +++ b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Add-dropdown-form-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Output/.gitkeep b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Program.cs b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Program.cs index a802007fb..90e6b2817 100644 --- a/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Program.cs +++ b/Form-Fields/Add-dropdown-form-field/.NET/Add-dropdown-form-field/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) dropDownField.DropDownSelectedIndex = 1; dropDownField.CalculateOnExit = true; //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/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Add-text-form-field.csproj b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Add-text-form-field.csproj index 11701481d..3eb93fd11 100644 --- a/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Add-text-form-field.csproj +++ b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Add-text-form-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Output/.gitkeep b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Program.cs b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Program.cs index befa81d02..8d9ad4e2f 100644 --- a/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Program.cs +++ b/Form-Fields/Add-text-form-field/.NET/Add-text-form-field/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) textField.Type = TextFormFieldType.DateText; textField.CalculateOnExit = true; //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/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Template.docx b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Data/Template.docx similarity index 100% rename from Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Template.docx rename to Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Data/Template.docx diff --git a/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Modify-checkbox-form-field.csproj b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Modify-checkbox-form-field.csproj index 67a129506..1539a3ca9 100644 --- a/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Modify-checkbox-form-field.csproj +++ b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Modify-checkbox-form-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Output/.gitkeep b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Program.cs b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Program.cs index a7c536b8f..b0c685b69 100644 --- a/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/Program.cs +++ b/Form-Fields/Modify-checkbox-form-field/.NET/Modify-checkbox-form-field/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)) @@ -26,7 +26,7 @@ static void Main(string[] args) } } //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/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Template.docx b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Data/Template.docx similarity index 100% rename from Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Template.docx rename to Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Data/Template.docx diff --git a/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Modify-dropdown-form-field.csproj b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Modify-dropdown-form-field.csproj index b5d93df8b..df1c54431 100644 --- a/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Modify-dropdown-form-field.csproj +++ b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Modify-dropdown-form-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Output/.gitkeep b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Program.cs b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Program.cs index b798d2f02..781fc72c6 100644 --- a/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/Program.cs +++ b/Form-Fields/Modify-dropdown-form-field/.NET/Modify-dropdown-form-field/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)) @@ -26,7 +26,7 @@ static void Main(string[] args) } } //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/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Template.docx b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Data/Template.docx similarity index 100% rename from Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Template.docx rename to Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Data/Template.docx diff --git a/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Modify-text-form-field.csproj b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Modify-text-form-field.csproj index 89b67f46c..3ece76d6f 100644 --- a/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Modify-text-form-field.csproj +++ b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Modify-text-form-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Output/.gitkeep b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Program.cs b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Program.cs index 3b1588b73..236b7fdb0 100644 --- a/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/Program.cs +++ b/Form-Fields/Modify-text-form-field/.NET/Modify-text-form-field/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)) @@ -41,7 +41,7 @@ static void Main(string[] args) } } //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/Getting-Started/.NET-Framework/Create-Word-document/Create-Word-document.csproj b/Getting-Started/.NET-Framework/Create-Word-document/Create-Word-document.csproj index 496507551..9d554797a 100644 --- a/Getting-Started/.NET-Framework/Create-Word-document/Create-Word-document.csproj +++ b/Getting-Started/.NET-Framework/Create-Word-document/Create-Word-document.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Getting-Started/.NET-Framework/Create-Word-document/packages.config b/Getting-Started/.NET-Framework/Create-Word-document/packages.config index ff796ce92..6be96b6c5 100644 --- a/Getting-Started/.NET-Framework/Create-Word-document/packages.config +++ b/Getting-Started/.NET-Framework/Create-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Getting-Started/ASP.NET-MVC/Create-Word-document/Create-Word-document.csproj b/Getting-Started/ASP.NET-MVC/Create-Word-document/Create-Word-document.csproj index dcb5714ec..0746d0b05 100644 --- a/Getting-Started/ASP.NET-MVC/Create-Word-document/Create-Word-document.csproj +++ b/Getting-Started/ASP.NET-MVC/Create-Word-document/Create-Word-document.csproj @@ -46,17 +46,17 @@ - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.OfficeChart.Base.dll diff --git a/Getting-Started/ASP.NET-MVC/Create-Word-document/Web.config b/Getting-Started/ASP.NET-MVC/Create-Word-document/Web.config index ba42ae46c..bfca76b12 100644 --- a/Getting-Started/ASP.NET-MVC/Create-Word-document/Web.config +++ b/Getting-Started/ASP.NET-MVC/Create-Word-document/Web.config @@ -17,7 +17,7 @@ - + @@ -70,7 +70,7 @@ - + \ No newline at end of file diff --git a/Getting-Started/ASP.NET-MVC/Create-Word-document/packages.config b/Getting-Started/ASP.NET-MVC/Create-Word-document/packages.config index 4d009cea0..bc4599fd0 100644 --- a/Getting-Started/ASP.NET-MVC/Create-Word-document/packages.config +++ b/Getting-Started/ASP.NET-MVC/Create-Word-document/packages.config @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/Create-Word-Document.csproj b/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/Create-Word-Document.csproj index d761dc451..2702d4ba4 100644 --- a/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/Create-Word-Document.csproj +++ b/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/Create-Word-Document.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Create_Word_Document diff --git a/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/aws-beanstalk-tools-defaults.json b/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/aws-beanstalk-tools-defaults.json index 4674fef80..bf5e4a45f 100644 --- a/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/aws-beanstalk-tools-defaults.json +++ b/Getting-Started/AWS/AWS_Elastic_Beanstalk/Create-Word-Document/aws-beanstalk-tools-defaults.json @@ -2,7 +2,7 @@ { "region" : "us-east-1", "configuration" : "Debug", - "framework" : "net6.0", + "framework" : "net8.0", "self-contained" : false, "application" : "ConvertWordDocumenttoPDF2", "environment" : "ConvertWordDocumenttoPDF2-test", diff --git a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Create-Word-Document.csproj b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Create-Word-Document.csproj index 95ff6a15c..7406c250a 100644 --- a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Create-Word-Document.csproj +++ b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Create-Word-Document.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Properties/launchSettings.json b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Properties/launchSettings.json index e6144efbb..28a3bca9a 100644 --- a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Properties/launchSettings.json +++ b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/Properties/launchSettings.json @@ -3,8 +3,8 @@ "Mock Lambda Test Tool": { "commandName": "Executable", "commandLineArgs": "--port 5050", - "workingDirectory": ".\\bin\\$(Configuration)\\net6.0", - "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe" + "workingDirectory": ".\\bin\\$(Configuration)\\net8.0", + "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-8.0.exe" } } } \ No newline at end of file diff --git a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/aws-lambda-tools-defaults.json b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/aws-lambda-tools-defaults.json index ed7dfb0e8..e46214b8b 100644 --- a/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/aws-lambda-tools-defaults.json +++ b/Getting-Started/AWS/AWS_Lambda/Create-Word-Document/aws-lambda-tools-defaults.json @@ -10,11 +10,11 @@ "region" : "us-east-1", "configuration" : "Release", "function-architecture" : "x86_64", - "function-runtime" : "dotnet6", + "function-runtime" : "dotnet8", "function-memory-size" : 256, "function-timeout" : 30, "function-handler" : "Create-Word-Document::Create_Word_Document.Function::FunctionHandler", - "framework" : "net6.0", + "framework" : "net8.0", "function-name" : "Create-Word", "package-type" : "Zip", "function-role" : "arn:aws:iam::1428877144330098:role/LambdaRole", diff --git a/Getting-Started/Azure/Azure_App_Service/Create-Word-Document/Create-Word-Document.csproj b/Getting-Started/Azure/Azure_App_Service/Create-Word-Document/Create-Word-Document.csproj index f08edd7e6..1f39858f9 100644 --- a/Getting-Started/Azure/Azure_App_Service/Create-Word-Document/Create-Word-Document.csproj +++ b/Getting-Started/Azure/Azure_App_Service/Create-Word-Document/Create-Word-Document.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Create_Word_Document diff --git a/Getting-Started/Azure/Azure_Functions/Azure_Functions_v4/Create-Word-Document/Create-Word-Document.csproj b/Getting-Started/Azure/Azure_Functions/Azure_Functions_v4/Create-Word-Document/Create-Word-Document.csproj index 89a81b04f..a232586bf 100644 --- a/Getting-Started/Azure/Azure_Functions/Azure_Functions_v4/Create-Word-Document/Create-Word-Document.csproj +++ b/Getting-Started/Azure/Azure_Functions/Azure_Functions_v4/Create-Word-Document/Create-Word-Document.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 v4 Create_Word_Document diff --git a/Getting-Started/Create-Word-document/.NET/Create-Word-document/Create-Word-document.csproj b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Create-Word-document.csproj index 773af006b..5d1eb699a 100644 --- a/Getting-Started/Create-Word-document/.NET/Create-Word-document/Create-Word-document.csproj +++ b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Create-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Getting-Started/Create-Word-document/.NET/Create-Word-document/Output/.gitkeep b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Getting-Started/Create-Word-document/.NET/Create-Word-document/Program.cs b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Program.cs index f60399c81..c5d5c3e89 100644 --- a/Getting-Started/Create-Word-document/.NET/Create-Word-document/Program.cs +++ b/Getting-Started/Create-Word-document/.NET/Create-Word-document/Program.cs @@ -17,7 +17,7 @@ static void Main(string[] args) //Appends text to the last paragraph of the document. document.LastParagraph.AppendText("Hello World"); //Creates file stream. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(fileStream, FormatType.Docx); diff --git a/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Create-Word-with-basic-elements.csproj b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Create-Word-with-basic-elements.csproj index e637c7d19..b9f975c4f 100644 --- a/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Create-Word-with-basic-elements.csproj +++ b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Create-Word-with-basic-elements.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Output/.gitkeep b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Program.cs b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Program.cs index 9059242a8..3fd59ff41 100644 --- a/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Program.cs +++ b/Getting-Started/Create-Word-with-basic-elements/.NET/Create-Word-with-basic-elements/Program.cs @@ -39,7 +39,7 @@ static void Main(string[] args) //Sets after spacing for paragraph. paragraph.ParagraphFormat.AfterSpacing = 8; //Adds a picture into the paragraph. - FileStream image1 = new FileStream(Path.GetFullPath(@"../../../Data/DummyProfilePicture.jpg"), FileMode.Open, FileAccess.Read); + FileStream image1 = new FileStream(Path.GetFullPath(@"Data/DummyProfilePicture.jpg"), FileMode.Open, FileAccess.Read); IWPicture picture = paragraph.AppendPicture(image1); //Specify the size of the picture. picture.Height = 100; @@ -68,7 +68,7 @@ static void Main(string[] args) paragraph = firstCell.AddParagraph(); //Sets after spacing for paragraph. paragraph.ParagraphFormat.AfterSpacing = 6; - FileStream image2 = new FileStream(Path.GetFullPath(@"../../../Data/DummyProfile-Picture.jpg"), FileMode.Open, FileAccess.Read); + FileStream image2 = new FileStream(Path.GetFullPath(@"Data/DummyProfile-Picture.jpg"), FileMode.Open, FileAccess.Read); IWPicture profilePicture = paragraph.AppendPicture(image2); profilePicture.Height = 100; profilePicture.Width = 100; @@ -140,7 +140,7 @@ static void Main(string[] args) section.AddParagraph(); //Creates file stream. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(fileStream, FormatType.Docx); diff --git a/Getting-Started/GCP/Google_App_Engine/Create-Word-Document/Create-Word-Document.csproj b/Getting-Started/GCP/Google_App_Engine/Create-Word-Document/Create-Word-Document.csproj index 9f01226c0..8baf70a39 100644 --- a/Getting-Started/GCP/Google_App_Engine/Create-Word-Document/Create-Word-Document.csproj +++ b/Getting-Started/GCP/Google_App_Engine/Create-Word-Document/Create-Word-Document.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Create_Word_Document diff --git a/Getting-Started/WPF/Create-Word-document/Create-Word-document.csproj b/Getting-Started/WPF/Create-Word-document/Create-Word-document.csproj index b7f0a6a6e..baa4e29b2 100644 --- a/Getting-Started/WPF/Create-Word-document/Create-Word-document.csproj +++ b/Getting-Started/WPF/Create-Word-document/Create-Word-document.csproj @@ -36,17 +36,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.Wpf.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.Wpf.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Getting-Started/WPF/Create-Word-document/packages.config b/Getting-Started/WPF/Create-Word-document/packages.config index f0ac24332..7da726d83 100644 --- a/Getting-Started/WPF/Create-Word-document/packages.config +++ b/Getting-Started/WPF/Create-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Getting-Started/Windows-Forms/Create-Word-document/Create-Word-document.csproj b/Getting-Started/Windows-Forms/Create-Word-document/Create-Word-document.csproj index d6b40455d..630e456bf 100644 --- a/Getting-Started/Windows-Forms/Create-Word-document/Create-Word-document.csproj +++ b/Getting-Started/Windows-Forms/Create-Word-document/Create-Word-document.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Getting-Started/Windows-Forms/Create-Word-document/packages.config b/Getting-Started/Windows-Forms/Create-Word-document/packages.config index ff796ce92..6be96b6c5 100644 --- a/Getting-Started/Windows-Forms/Create-Word-document/packages.config +++ b/Getting-Started/Windows-Forms/Create-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj index 60fbdf46b..5d4fac1d7 100644 --- a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj +++ b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Convert-HTML-to-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Input.html b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html similarity index 100% rename from HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Input.html rename to HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Data/Input.html diff --git a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Program.cs b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Program.cs index 8c22cf2cc..7e9186260 100644 --- a/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-to-Word/Program.cs +++ b/HTML-conversions/Convert-HTML-to-Word/.NET/Convert-HTML-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.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Html)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../HTMLtoWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/HTMLtoWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Convert-Word-to-HTML.csproj b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Convert-Word-to-HTML.csproj index fa2f60f9c..5db55931a 100644 --- a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Convert-Word-to-HTML.csproj +++ b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Convert-Word-to-HTML.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Template.docx b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Data/Template.docx similarity index 100% rename from HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Template.docx rename to HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Data/Template.docx diff --git a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Output/.gitkeep b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Program.cs b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Program.cs index ef0de90bf..663a2c321 100644 --- a/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/Program.cs +++ b/HTML-conversions/Convert-Word-to-HTML/.NET/Convert-Word-to-HTML/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(@"../../../WordToHtml.html"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToHtml.html"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Html); diff --git a/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/Customize-HTML-to-Word-conversion.csproj b/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/Customize-HTML-to-Word-conversion.csproj index 9dd2df94e..cd49e1294 100644 --- a/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/Customize-HTML-to-Word-conversion.csproj +++ b/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/Customize-HTML-to-Word-conversion.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/packages.config b/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/packages.config index ff796ce92..6be96b6c5 100644 --- a/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/packages.config +++ b/HTML-conversions/Customize-HTML-to-Word-conversion/.NET-Framework/Customize-HTML-to-Word-conversion/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj index f2f77456e..208047c6a 100644 --- a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj +++ b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/packages.config b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/packages.config index ff796ce92..6be96b6c5 100644 --- a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/packages.config +++ b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET-Framework/Customize-Word-to-HTML-conversion/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj index 31c6ee682..ae7897c1c 100644 --- a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj +++ b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Customize-Word-to-HTML-conversion.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Output/.gitkeep b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Program.cs b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Program.cs index 9586150a9..102ba0d85 100644 --- a/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Program.cs +++ b/HTML-conversions/Customize-Word-to-HTML-conversion/.NET/Customize-Word-to-HTML-conversion/Program.cs @@ -10,7 +10,7 @@ class Program static void Main(string[] args) { //Loads an existing Word document into DocIO instance. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Rtf)) { @@ -26,7 +26,7 @@ static void Main(string[] args) document.SaveOptions.HtmlExportOmitXmlDeclaration = false; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToHTML.html"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToHTML.html"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Html); diff --git a/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Customize-image-data.csproj b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Customize-image-data.csproj index c78ee3ce1..8fbef0198 100644 --- a/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Customize-image-data.csproj +++ b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Customize-image-data.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Output/.gitkeep b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Program.cs b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Program.cs index 6ee940f04..e3b9ec146 100644 --- a/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Program.cs +++ b/HTML-conversions/Customize-image-data/.NET/Customize-image-data/Program.cs @@ -9,7 +9,7 @@ class Program static void Main(string[] args) { //Loads an existing Word document into DocIO instance. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Input.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.html"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument()) { @@ -20,7 +20,7 @@ static void Main(string[] args) //Unhooks the ImageNodeVisited event after loading HTML. document.HTMLImportSettings.ImageNodeVisited -= OpenImage; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../HtmlToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/HtmlToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Customize-image-path-in-Word-to-html.csproj b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Customize-image-path-in-Word-to-html.csproj index 08e5dad27..29a341f7f 100644 --- a/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Customize-image-path-in-Word-to-html.csproj +++ b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Customize-image-path-in-Word-to-html.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Output/.gitkeep b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Program.cs b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Program.cs index fba25b380..adfeda778 100644 --- a/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Program.cs +++ b/HTML-conversions/Customize-image-path-in-Word-to-html/.NET/Customize-image-path-in-Word-to-html/Program.cs @@ -10,14 +10,14 @@ class Program static void Main(string[] args) { //Open the file as a Stream. - using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(docStream, FormatType.Docx)) { //Hook the event to customize the image. document.SaveOptions.ImageNodeVisited += SaveImage; - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToHTML.html"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/WordToHTML.html"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the HTML file. document.Save(outputStream, FormatType.Html); @@ -27,7 +27,7 @@ static void Main(string[] args) static void SaveImage(object sender, ImageNodeVisitedEventArgs args) { // Specify the folder path. - string folderPath = Path.GetFullPath(@"../../../"); + string folderPath = Path.GetFullPath(@"Output"); // Specify the image filename. string imageFilename = "Image.png"; // Check if the folder exists, and create it if it doesn't. diff --git a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Template.docx b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Data/Template.docx similarity index 100% rename from HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Template.docx rename to HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Data/Template.docx diff --git a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Export-HTML-with-body-content.csproj b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Export-HTML-with-body-content.csproj index 8596b4381..fea35e010 100644 --- a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Export-HTML-with-body-content.csproj +++ b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Export-HTML-with-body-content.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Output/.gitkeep b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Program.cs b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Program.cs index 6d263a4da..d743a4f60 100644 --- a/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Program.cs +++ b/HTML-conversions/Export-HTML-with-body-content/.NET/Export-HTML-with-body-content/Program.cs @@ -2,14 +2,14 @@ using Syncfusion.DocIO.DLS; //Load an existing Word document. -using (FileStream fileStreamPath = new FileStream("../../../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)) { //Enable the flag, to save HTML with elements inside body tags alone. document.SaveOptions.HtmlExportBodyContentAlone = true; - using (FileStream outputFileStream = new FileStream("WordToHTML.html", FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/WordToHTML.html"), FileMode.Create, FileAccess.ReadWrite)) { //Save Word document as HTML. document.Save(outputFileStream, FormatType.Html); diff --git a/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/Extract-images-when-export-to-HTML.csproj b/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/Extract-images-when-export-to-HTML.csproj index 7f2404207..15f0941e2 100644 --- a/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/Extract-images-when-export-to-HTML.csproj +++ b/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/Extract-images-when-export-to-HTML.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/packages.config b/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/packages.config index ff796ce92..6be96b6c5 100644 --- a/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/packages.config +++ b/HTML-conversions/Extract-images-when-export-to-HTML/.NET-Framework/Extract-images-when-export-to-HTML/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Input.docx b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Data/Input.docx similarity index 100% rename from HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Input.docx rename to HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Data/Input.docx diff --git a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Output/.gitkeep b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Program.cs b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Program.cs index bd86fe8e0..52257d88c 100644 --- a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Program.cs +++ b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Program.cs @@ -9,13 +9,13 @@ class Program static void Main(string[] args) { //Load an existing Word document. - 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)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToHtml.html"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToHtml.html"), FileMode.Create, FileAccess.ReadWrite)) { //Hook the event to customize the image. document.SaveOptions.ImageNodeVisited += SaveImage; @@ -30,7 +30,7 @@ static void Main(string[] args) static void SaveImage(object sender, ImageNodeVisitedEventArgs args) { //Customize the image path and save the image in an external folder. - string imagepath = Path.GetFullPath(@"../../../Image_") + imageCount + ".png"; + string imagepath = Path.GetFullPath(@"Output/Image_") + imageCount + ".png"; //Save the image stream as a file. using (FileStream fileStreamOutput = File.Create(imagepath)) args.ImageStream.CopyTo(fileStreamOutput); diff --git a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Save-image-in-folder-in-Word-to-HTML.csproj b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Save-image-in-folder-in-Word-to-HTML.csproj index af7a10aa3..601a75b2b 100644 --- a/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Save-image-in-folder-in-Word-to-HTML.csproj +++ b/HTML-conversions/Save-image-in-folder-in-Word-to-HTML/.NET/Save-image-in-folder-in-Word-to-HTML/Save-image-in-folder-in-Word-to-HTML.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Template.dotm b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Data/Template.dotm similarity index 100% rename from Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Template.dotm rename to Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Data/Template.dotm diff --git a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Open-and-save-macro-enabled-document.csproj b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Open-and-save-macro-enabled-document.csproj index 14ce372bd..55332f69f 100644 --- a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Open-and-save-macro-enabled-document.csproj +++ b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Open-and-save-macro-enabled-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Output/.gitkeep b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Program.cs b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Program.cs index 1a56b086e..0bd1a5bbf 100644 --- a/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Program.cs +++ b/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Program.cs @@ -9,13 +9,13 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.dotm"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.dotm"), FileMode.Open, FileAccess.ReadWrite)) { //Opens the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Dotm)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docm"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docm"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Word2013Docm); diff --git a/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Template.docm b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Data/Template.docm similarity index 100% rename from Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Template.docm rename to Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Data/Template.docm diff --git a/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Output/.gitkeep b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Program.cs b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Program.cs index b5b936564..de781b7ef 100644 --- a/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Program.cs +++ b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docm"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docm"), FileMode.Open, FileAccess.ReadWrite)) { //Opens the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Dotm)) @@ -17,7 +17,7 @@ static void Main(string[] args) if (document.HasMacros) document.RemoveMacros(); //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/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Remove-macros-in-document.csproj b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Remove-macros-in-document.csproj index 23c885c51..a904f0a68 100644 --- a/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Remove-macros-in-document.csproj +++ b/Macros/Remove-macros-in-document/.NET/Remove-macros-in-document/Remove-macros-in-document.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Change-mail-merge-data-source-path.csproj b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Change-mail-merge-data-source-path.csproj index 484c15dd8..b22166f88 100644 --- a/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Change-mail-merge-data-source-path.csproj +++ b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Change-mail-merge-data-source-path.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Output/.gitkeep b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Program.cs b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Program.cs index 90b3a7a2b..48dbb9688 100644 --- a/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Program.cs +++ b/Mail-Merge/Change-mail-merge-data-source-path/.NET/Change-mail-merge-data-source-path/Program.cs @@ -8,15 +8,15 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/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)) { //Change the data source file path. - document.MailMerge.Settings.DataSource = Path.GetFullPath(@"../../../Data/DataSource.mdb"); + document.MailMerge.Settings.DataSource = Path.GetFullPath(@"Data/DataSource.mdb"); //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/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Create-Envelopes-for-mailing.csproj b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Create-Envelopes-for-mailing.csproj index 541709475..160813667 100644 --- a/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Create-Envelopes-for-mailing.csproj +++ b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Create-Envelopes-for-mailing.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Template.docx b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Data/Template.docx similarity index 100% rename from Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Template.docx rename to Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Data/Template.docx diff --git a/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Output/.gitkeep b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Program.cs b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Program.cs index 5d8634cd9..6deb35619 100644 --- a/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Program.cs +++ b/Mail-Merge/Create-Envelopes-for-mailing/.NET/Create-Envelopes-for-mailing/Program.cs @@ -13,7 +13,7 @@ static void Main(string[] args) using (WordDocument document = new WordDocument()) { //Opens the Word template document. - Stream docStream = File.OpenRead(Path.GetFullPath(@"../../../Template.docx")); + Stream docStream = File.OpenRead(Path.GetFullPath(@"Data/Template.docx")); document.Open(docStream, FormatType.Docx); docStream.Dispose(); //Gets the recipient details as "IEnumerable" collection of .NET objects. @@ -21,7 +21,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(recipients); //Saves the file in the given path. - docStream = File.Create(Path.GetFullPath(@"../../../Sample.docx")); + docStream = File.Create(Path.GetFullPath(@"Output/Sample.docx")); document.Save(docStream, FormatType.Docx); docStream.Dispose(); } diff --git a/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Create-Word-document-template.csproj b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Create-Word-document-template.csproj index dc3525936..131fa1005 100644 --- a/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Create-Word-document-template.csproj +++ b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Create-Word-document-template.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Output/.gitkeep b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Program.cs b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Program.cs index 7caaa18c0..7e2f58f74 100644 --- a/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Program.cs +++ b/Mail-Merge/Create-Word-document-template/.NET/Create-Word-document-template/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) document.LastParagraph.AppendText("\nCity: "); document.LastParagraph.AppendField("City", FieldType.FieldMergeField); //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/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Create-merge-field.csproj b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Create-merge-field.csproj index 681d989d9..58e78de0f 100644 --- a/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Create-merge-field.csproj +++ b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Create-merge-field.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Output/.gitkeep b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Program.cs b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Program.cs index ce2213bbb..cfb866427 100644 --- a/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Program.cs +++ b/Mail-Merge/Create-merge-field/.NET/Create-merge-field/Program.cs @@ -16,7 +16,7 @@ static void Main(string[] args) //Appends merge field to the last paragraph. document.LastParagraph.AppendField("FullName", FieldType.FieldMergeField); //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/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Event-for-image-mail-merge-field.csproj b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Event-for-image-mail-merge-field.csproj index b0e3d6dce..ae84615f6 100644 --- a/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Event-for-image-mail-merge-field.csproj +++ b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Event-for-image-mail-merge-field.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Output/.gitkeep b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Program.cs b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Program.cs index ed600b40b..0e63c1439 100644 --- a/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Program.cs +++ b/Mail-Merge/Event-for-image-mail-merge-field/.NET/Event-for-image-mail-merge-field/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/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)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Executes the mail merge with groups. document.MailMerge.Execute(fieldNames, fieldValues); //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); @@ -41,7 +41,7 @@ private static void MergeField_ProductImage(object sender, MergeImageFieldEventA { string ProductFileName = args.FieldValue.ToString(); //Gets the image from file system - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/" + ProductFileName), FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/" + ProductFileName), FileMode.Open, FileAccess.Read); args.ImageStream = imageStream; //Gets the picture, to be merged for image merge field WPicture picture = args.Picture; diff --git a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Template.docx b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Data/Template.docx similarity index 100% rename from Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Template.docx rename to Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Data/Template.docx diff --git a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Event-for-mail-merge-field.csproj b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Event-for-mail-merge-field.csproj index 78b73f1fb..7eb1b2494 100644 --- a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Event-for-mail-merge-field.csproj +++ b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Event-for-mail-merge-field.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Output/.gitkeep b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Program.cs b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Program.cs index b4c3aa3e7..113454c37 100644 --- a/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Program.cs +++ b/Mail-Merge/Event-for-mail-merge-field/.NET/Event-for-mail-merge-field/Program.cs @@ -10,7 +10,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)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Executes Mail Merge with groups. document.MailMerge.ExecuteGroup(GetDataTable()); //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/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Template.docx b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Data/Template.docx similarity index 100% rename from Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Template.docx rename to Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Data/Template.docx diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Event-to-bind-data-for-unmerged-fields.csproj b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Event-to-bind-data-for-unmerged-fields.csproj index 65d790dfe..f75d71d13 100644 --- a/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Event-to-bind-data-for-unmerged-fields.csproj +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Event-to-bind-data-for-unmerged-fields.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Output/.gitkeep b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Program.cs b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Program.cs index 1ceb4e841..30286203e 100644 --- a/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Program.cs +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-fields/.NET/Event-to-bind-data-for-unmerged-fields/Program.cs @@ -10,7 +10,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)) @@ -22,7 +22,7 @@ static void Main(string[] args) //Execute mail merge. document.MailMerge.ExecuteGroup(GetDataTable()); //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/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Template.docx b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Data/Template.docx similarity index 100% rename from Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Template.docx rename to Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Data/Template.docx diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Event-to-bind-data-for-unmerged-group.csproj b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Event-to-bind-data-for-unmerged-group.csproj index 7c7f5388c..0163f03ba 100644 --- a/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Event-to-bind-data-for-unmerged-group.csproj +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Event-to-bind-data-for-unmerged-group.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Output/.gitkeep b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Program.cs b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Program.cs index 34d891a52..359061832 100644 --- a/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Program.cs +++ b/Mail-Merge/Event-to-bind-data-for-unmerged-group/.NET/Event-to-bind-data-for-unmerged-group/Program.cs @@ -10,7 +10,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)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Performs Mail merge document.MailMerge.ExecuteNestedGroup(dataTable); //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/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Template.docx b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Data/Template.docx similarity index 100% rename from Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Template.docx rename to Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Data/Template.docx diff --git a/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Exception-field-not-in-data source.csproj b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Exception-field-not-in-data source.csproj index 5c13c1485..18f0ba9f8 100644 --- a/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Exception-field-not-in-data source.csproj +++ b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Exception-field-not-in-data source.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Output/.gitkeep b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Program.cs b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Program.cs index b16ac9ba3..ad61b0b0e 100644 --- a/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Program.cs +++ b/Mail-Merge/Exception-field-not-in-data source/.NET/Exception-field-not-in-data source/Program.cs @@ -10,7 +10,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)) @@ -22,7 +22,7 @@ static void Main(string[] args) //Execute mail merge. document.MailMerge.ExecuteGroup(GetDataTable()); //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/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/Generate-certificate-for-employees.csproj b/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/Generate-certificate-for-employees.csproj index 6d704fe01..494d8ed5f 100644 --- a/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/Generate-certificate-for-employees.csproj +++ b/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/Generate-certificate-for-employees.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/packages.config b/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/packages.config +++ b/Mail-Merge/Generate-certificate-for-employees/.NET-Framework/Generate-certificate-for-employees/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/Generate-letter-for-candidates-in-sorted-order.csproj b/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/Generate-letter-for-candidates-in-sorted-order.csproj index 6a7d03d36..57fbb648b 100644 --- a/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/Generate-letter-for-candidates-in-sorted-order.csproj +++ b/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/Generate-letter-for-candidates-in-sorted-order.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/packages.config b/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/packages.config +++ b/Mail-Merge/Generate-letter-for-candidates-in-sorted-order/.NET-Framework/Generate-letter-for-candidates-in-sorted-order/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/Generate-letter-for-filtered-contacts.csproj b/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/Generate-letter-for-filtered-contacts.csproj index c712a3b91..3147b0ed5 100644 --- a/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/Generate-letter-for-filtered-contacts.csproj +++ b/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/Generate-letter-for-filtered-contacts.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/packages.config b/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/packages.config +++ b/Mail-Merge/Generate-letter-for-filtered-contacts/.NET-Framework/Generate-letter-for-filtered-contacts/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/Generate-multiple-Word-documents.csproj b/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/Generate-multiple-Word-documents.csproj index aff6af9ab..a7dfc941a 100644 --- a/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/Generate-multiple-Word-documents.csproj +++ b/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/Generate-multiple-Word-documents.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/packages.config b/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/packages.config +++ b/Mail-Merge/Generate-multiple-Word-documents/.NET-Framework/Generate-multiple-Word-documents/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/Generate-notice-to-renew-lease.csproj b/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/Generate-notice-to-renew-lease.csproj index 003b8e311..e407741f0 100644 --- a/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/Generate-notice-to-renew-lease.csproj +++ b/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/Generate-notice-to-renew-lease.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/packages.config b/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/packages.config +++ b/Mail-Merge/Generate-notice-to-renew-lease/.NET-Framework/Generate-notice-to-renew-lease/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/Generate-payroll-for-employees.csproj b/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/Generate-payroll-for-employees.csproj index dfcede903..43bc0f6d3 100644 --- a/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/Generate-payroll-for-employees.csproj +++ b/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/Generate-payroll-for-employees.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/packages.config b/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/packages.config +++ b/Mail-Merge/Generate-payroll-for-employees/.NET-Framework/Generate-payroll-for-employees/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/Generate-sales-invoice.csproj b/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/Generate-sales-invoice.csproj index a595e0e8f..51faaf4d5 100644 --- a/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/Generate-sales-invoice.csproj +++ b/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/Generate-sales-invoice.csproj @@ -36,20 +36,20 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.Wpf.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.Wpf.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Shared.WPF.26.1.42\lib\net462\Syncfusion.Shared.WPF.dll + + ..\packages\Syncfusion.Shared.WPF.27.1.53\lib\net462\Syncfusion.Shared.WPF.dll diff --git a/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/packages.config b/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/packages.config index 54d42e757..087745a77 100644 --- a/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/packages.config +++ b/Mail-Merge/Generate-sales-invoice/WPF/Generate-sales-invoice/packages.config @@ -1,8 +1,8 @@  - - - - - + + + + + \ No newline at end of file diff --git a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Template.docx b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Data/Template.docx similarity index 100% rename from Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Template.docx rename to Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Data/Template.docx diff --git a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Getting-started-mail-merge.csproj b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Getting-started-mail-merge.csproj index 4af394ac8..550268621 100644 --- a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Getting-started-mail-merge.csproj +++ b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Getting-started-mail-merge.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Output/.gitkeep b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Program.cs b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Program.cs index 598c08658..41654e732 100644 --- a/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/Program.cs +++ b/Mail-Merge/Getting-started-mail-merge/.NET/Getting-started-mail-merge/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.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/Group-customers-based-on-products.csproj b/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/Group-customers-based-on-products.csproj index c712a3b91..3147b0ed5 100644 --- a/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/Group-customers-based-on-products.csproj +++ b/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/Group-customers-based-on-products.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/packages.config b/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/packages.config +++ b/Mail-Merge/Group-customers-based-on-products/.NET-Framework/Group-customers-based-on-products/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Template.docx b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Data/Template.docx similarity index 100% rename from Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Template.docx rename to Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Data/Template.docx diff --git a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Insert-as-new-row.csproj b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Insert-as-new-row.csproj index 234fd0aa0..6e00ef578 100644 --- a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Insert-as-new-row.csproj +++ b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Insert-as-new-row.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Output/.gitkeep b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Program.cs b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Program.cs index e1059a2c3..a1a229016 100644 --- a/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/Program.cs +++ b/Mail-Merge/Insert-as-new-row/.NET/Insert-as-new-row/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)) @@ -43,7 +43,7 @@ static void Main(string[] args) //Execute mail merge. document.MailMerge.ExecuteGroup(table); //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/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Template.docx b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Data/Template.docx similarity index 100% rename from Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Template.docx rename to Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Data/Template.docx diff --git a/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Keep-unmerged-merge-fields.csproj b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Keep-unmerged-merge-fields.csproj index c9a4ea4db..aabcf8d35 100644 --- a/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Keep-unmerged-merge-fields.csproj +++ b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Keep-unmerged-merge-fields.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Output/.gitkeep b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Program.cs b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Program.cs index 1f6bdf0d8..7bb377c60 100644 --- a/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/Program.cs +++ b/Mail-Merge/Keep-unmerged-merge-fields/.NET/Keep-unmerged-merge-fields/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)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/Mail-merge-for-group.csproj b/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/Mail-merge-for-group.csproj index ac4f03317..c4bf8f589 100644 --- a/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/Mail-merge-for-group.csproj +++ b/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/Mail-merge-for-group.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/packages.config b/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/packages.config +++ b/Mail-Merge/Mail-merge-for-group/.NET-Framework/Mail-merge-for-group/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/Mail-merge-using-OleDbConnection.csproj b/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/Mail-merge-using-OleDbConnection.csproj index 7c64b976e..9dab67794 100644 --- a/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/Mail-merge-using-OleDbConnection.csproj +++ b/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/Mail-merge-using-OleDbConnection.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/packages.config b/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/packages.config +++ b/Mail-Merge/Mail-merge-using-OleDbConnection/.NET-Framework/Mail-merge-using-OleDbConnection/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Mail-merge-using-image-from-URL.csproj b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Mail-merge-using-image-from-URL.csproj index 7b0715615..4d6b6528e 100644 --- a/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Mail-merge-using-image-from-URL.csproj +++ b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Mail-merge-using-image-from-URL.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Output/.gitkeep b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Program.cs b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Program.cs index a8f14e5f0..204069a0e 100644 --- a/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Program.cs +++ b/Mail-Merge/Mail-merge-using-image-from-URL/.NET/Mail-merge-using-image-from-URL/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Unhooks the mail merge event handler. document.MailMerge.MergeImageField -= new MergeImageFieldEventHandler(MergeField_ProductImage); //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/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Mail-merge-with-.NET-objects.csproj b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Mail-merge-with-.NET-objects.csproj index c9b2dd7a6..cdcd2d534 100644 --- a/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Mail-merge-with-.NET-objects.csproj +++ b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Mail-merge-with-.NET-objects.csproj @@ -10,4 +10,28 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Output/.gitkeep b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Program.cs b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Program.cs index 7d876906a..d73f469de 100644 --- a/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Program.cs +++ b/Mail-Merge/Mail-merge-with-.NET-objects/.NET/Mail-merge-with-.NET-objects/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/EmployeesTemplate.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/EmployeesTemplate.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Loads an existing Word document into DocIO instance. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Performs Mail merge. document.MailMerge.ExecuteGroup(dataSource); //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); @@ -57,7 +57,7 @@ private static void MergeField_EmployeeImage(object sender, MergeImageFieldEvent { string photoFileName = args.FieldValue.ToString(); //Gets the image from file system. - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/" + photoFileName), FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/" + photoFileName), FileMode.Open, FileAccess.Read); args.ImageStream = imageStream; } } diff --git a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Input.docx b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Data/Input.docx similarity index 100% rename from Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Input.docx rename to Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Data/Input.docx diff --git a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Json Data.json b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Data/Json Data.json similarity index 100% rename from Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Json Data.json rename to Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Data/Json Data.json diff --git a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Mail-merge-with-JSON.csproj b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Mail-merge-with-JSON.csproj index de09525b3..370d19acc 100644 --- a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Mail-merge-with-JSON.csproj +++ b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Mail-merge-with-JSON.csproj @@ -11,4 +11,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Output/.gitkeep b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Program.cs b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Program.cs index ac8de3c9d..1940c8e75 100644 --- a/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Program.cs +++ b/Mail-Merge/Mail-merge-with-JSON/.NET/Mail-merge-with-JSON/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open the template document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -22,7 +22,7 @@ static void Main(string[] args) document.MailMerge.Execute(jsonData); //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); @@ -37,7 +37,7 @@ static void Main(string[] args) private static List GetJsonData() { //Reads the JSON object from JSON file. - JObject jsonObject = JObject.Parse(File.ReadAllText(Path.GetFullPath(@"../../../Json Data.json"))); + JObject jsonObject = JObject.Parse(File.ReadAllText(Path.GetFullPath(@"Data/Json Data.json"))); //Converts JSON object to Dictionary. IDictionary data = GetData(jsonObject); return data["Employee"] as List; diff --git a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Template.docx b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Data/Template.docx similarity index 100% rename from Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Template.docx rename to Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Data/Template.docx diff --git a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Mail-merge-with-dynamic-objects.csproj b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Mail-merge-with-dynamic-objects.csproj index 1a90db410..921fdb37d 100644 --- a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Mail-merge-with-dynamic-objects.csproj +++ b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Mail-merge-with-dynamic-objects.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Output/.gitkeep b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Program.cs b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Program.cs index 46fbf1d69..f4ea0b2c4 100644 --- a/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Program.cs +++ b/Mail-Merge/Mail-merge-with-dynamic-objects/.NET/Mail-merge-with-dynamic-objects/Program.cs @@ -11,7 +11,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)) @@ -33,7 +33,7 @@ static void Main(string[] args) //Performs the mail merge operation with the dynamic collection. document.MailMerge.ExecuteNestedGroup(dataSet, commands); //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/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/Mail-merge-with-explicit-relational-data.csproj b/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/Mail-merge-with-explicit-relational-data.csproj index 5369d2659..b2e772bc2 100644 --- a/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/Mail-merge-with-explicit-relational-data.csproj +++ b/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/Mail-merge-with-explicit-relational-data.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/packages.config b/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/packages.config +++ b/Mail-Merge/Mail-merge-with-explicit-relational-data/.NET-Framework/Mail-merge-with-explicit-relational-data/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Template.docx b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Data/Template.docx similarity index 100% rename from Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Template.docx rename to Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Data/Template.docx diff --git a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Mail-merge-with-implicit-relational-data.csproj b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Mail-merge-with-implicit-relational-data.csproj index e63ded38e..3ac4a5be2 100644 --- a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Mail-merge-with-implicit-relational-data.csproj +++ b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Mail-merge-with-implicit-relational-data.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Output/.gitkeep b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Program.cs b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Program.cs index 255ee2a60..ffac4c48c 100644 --- a/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/Program.cs +++ b/Mail-Merge/Mail-merge-with-implicit-relational-data/.NET/Mail-merge-with-implicit-relational-data/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)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Performs Mail merge. document.MailMerge.ExecuteNestedGroup(dataTable); //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/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Template.docx b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Data/Template.docx similarity index 100% rename from Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Template.docx rename to Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Data/Template.docx diff --git a/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Mail-merge-with-string-arrays.csproj b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Mail-merge-with-string-arrays.csproj index 7d0797626..45d105a19 100644 --- a/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Mail-merge-with-string-arrays.csproj +++ b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Mail-merge-with-string-arrays.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Output/.gitkeep b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Program.cs b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Program.cs index e3df80082..78941e95e 100644 --- a/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/Program.cs +++ b/Mail-Merge/Mail-merge-with-string-arrays/.NET/Mail-merge-with-string-arrays/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)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Template.docx b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Data/Template.docx similarity index 100% rename from Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Template.docx rename to Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Data/Template.docx diff --git a/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Mapping-field-names-with-column-names.csproj b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Mapping-field-names-with-column-names.csproj index 5ef705fb5..678e0d208 100644 --- a/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Mapping-field-names-with-column-names.csproj +++ b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Mapping-field-names-with-column-names.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Output/.gitkeep b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Program.cs b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Program.cs index ce1b8f7ed..31413aabc 100644 --- a/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/Program.cs +++ b/Mail-Merge/Mapping-field-names-with-column-names/.NET/Mapping-field-names-with-column-names/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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Template.docx b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Data/Template.docx similarity index 100% rename from Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Template.docx rename to Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Data/Template.docx diff --git a/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Modify-font-during-mail-merge.csproj b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Modify-font-during-mail-merge.csproj index c28c47d4f..e776a7426 100644 --- a/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Modify-font-during-mail-merge.csproj +++ b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Modify-font-during-mail-merge.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Output/.gitkeep b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Program.cs b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Program.cs index b61337333..17fd357c2 100644 --- a/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Program.cs +++ b/Mail-Merge/Modify-font-during-mail-merge/.NET/Modify-font-during-mail-merge/Program.cs @@ -10,7 +10,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)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Executes Mail Merge with groups. document.MailMerge.ExecuteGroup(GetDataTable()); //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); @@ -35,10 +35,15 @@ static void Main(string[] args) /// private static void ModifyFont(object sender, MergeFieldEventArgs args) { + // Sets the font name to Arial for the selected text range. args.TextRange.CharacterFormat.FontName = "Arial"; + // Sets the font size to 18 points for the selected text range. args.TextRange.CharacterFormat.FontSize = 18; + // Applies bold formatting to the selected text range. args.TextRange.CharacterFormat.Bold = true; + // Applies italic formatting to the selected text range. args.TextRange.CharacterFormat.Italic = true; + // Applies single underline to the selected text range. args.TextRange.CharacterFormat.UnderlineStyle = UnderlineStyle.Single; } @@ -47,17 +52,26 @@ private static void ModifyFont(object sender, MergeFieldEventArgs args) /// private static DataTable GetDataTable() { + // Creates a new DataTable with the name "Employee". DataTable dataTable = new DataTable("Employee"); + // Adds a column "EmployeeName" to the DataTable. dataTable.Columns.Add("EmployeeName"); + // Adds a column "EmployeeNumber" to the DataTable. dataTable.Columns.Add("EmployeeNumber"); + // Loops 20 times to add rows to the DataTable. for (int i = 0; i < 20; i++) { + // Creates a new DataRow for the DataTable. DataRow datarow = dataTable.NewRow(); + // Adds the newly created DataRow to the DataTable. dataTable.Rows.Add(datarow); + // Sets the value of the first column (EmployeeName) for the current row. datarow[0] = "Employee" + i.ToString(); + // Sets the value of the second column (EmployeeNumber) for the current row. datarow[1] = "EMP" + i.ToString(); } + // Returns the populated DataTable. return dataTable; } #endregion diff --git a/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Multiple-documents-as-data-sources.csproj b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Multiple-documents-as-data-sources.csproj index e63ded38e..55254e4b2 100644 --- a/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Multiple-documents-as-data-sources.csproj +++ b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Multiple-documents-as-data-sources.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Output/.gitkeep b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Program.cs b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Program.cs index 62f8f1036..b327cb1b7 100644 --- a/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Program.cs +++ b/Mail-Merge/Multiple-documents-as-data-sources/.NET/Multiple-documents-as-data-sources/Program.cs @@ -15,7 +15,7 @@ class Program static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/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)) @@ -35,7 +35,7 @@ static void Main(string[] args) ReplaceBookmarks(document); //Creates file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Data/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Data/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputStream, FormatType.Docx); @@ -105,14 +105,14 @@ public static List GetCategoryList() field.Add(new FieldList("Location", "Washington")); List items = new List(); - items.Add(new ItemsList("Introduction", "../../../Data/One.html", field)); + items.Add(new ItemsList("Introduction", "Data/One.html", field)); field = new List(); field.Add(new FieldList("Manufacturing plant", "Importadores Neptuno")); field.Add(new FieldList("Location", "Mexico")); field.Add(new FieldList("Year", "2000")); - items.Add(new ItemsList("History", "../../../Data/Two.docx", field)); + items.Add(new ItemsList("History", "Data/Two.docx", field)); List categories = new List(); categories.Add(new CategoryList("Adventure Work Cycles", items)); diff --git a/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Outer-group-fields-within-inner-group.csproj b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Outer-group-fields-within-inner-group.csproj index 1e57088b2..1914316f9 100644 --- a/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Outer-group-fields-within-inner-group.csproj +++ b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Outer-group-fields-within-inner-group.csproj @@ -10,4 +10,22 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Output/.gitkeep b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Program.cs b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Program.cs index f1a12a741..508fa79c5 100644 --- a/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Program.cs +++ b/Mail-Merge/Outer-group-fields-within-inner-group/.NET/Outer-group-fields-within-inner-group/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open the template Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -29,7 +29,7 @@ static void Main(string[] args) //Execute the nested mail merge. document.MailMerge.ExecuteNestedGroup(dataSet, commands); //Create a 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)) { //Save a Word document to the file stream. document.Save(outputStream, FormatType.Docx); @@ -54,7 +54,7 @@ private static DataSet GetDataSet() row["BillID"] = "BL7936"; row["ControlNumber"] = "CN100"; row["RecipientId"] = "900893674"; - FileStream fs = new FileStream((@"../../../Data/Mountain-300.png"), FileMode.Open, FileAccess.Read); + FileStream fs = new FileStream((@"Data/Mountain-300.png"), FileMode.Open, FileAccess.Read); byte[] buff = new byte[fs.Length]; fs.Read(buff, 0, buff.Length); fs.Dispose(); @@ -73,7 +73,7 @@ private static DataSet GetDataSet() row["DetailID"] = "6758671"; row["ControlNumber"] = "CN110"; row["ProductAmount"] = "1500"; - fs = new FileStream((@"../../../Data/Road-550-W.png"), FileMode.Open, FileAccess.ReadWrite); + fs = new FileStream((@"Data/Road-550-W.png"), FileMode.Open, FileAccess.ReadWrite); buff = new byte[fs.Length]; fs.Read(buff, 0, buff.Length); fs.Dispose(); @@ -90,7 +90,7 @@ private static DataSet GetDataSet() row["DetailID"] = "6758671"; row["ControlNumber"] = "CN111"; row["DiscountAmount"] = "500"; - fs = new FileStream((@"../../../Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); + fs = new FileStream((@"Data/Mountain-200.png"), FileMode.Open, FileAccess.ReadWrite); buff = new byte[fs.Length]; fs.Read(buff, 0, buff.Length); fs.Dispose(); diff --git a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Input.docx b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Data/Input.docx similarity index 100% rename from Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Input.docx rename to Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Data/Input.docx diff --git a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Output/.gitkeep b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Phase-by-phase-mail-merge.csproj b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Phase-by-phase-mail-merge.csproj index 3c839e3dc..218c6eeb6 100644 --- a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Phase-by-phase-mail-merge.csproj +++ b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Phase-by-phase-mail-merge.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Program.cs b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Program.cs index 8fe43186d..104a6385d 100644 --- a/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Program.cs +++ b/Mail-Merge/Phase-by-phase-mail-merge/.NET/Phase-by-phase-mail-merge/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Input.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open the input Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Docx)) @@ -34,7 +34,7 @@ static void Main(string[] args) //Perform the mail merge. document.MailMerge.Execute(phase3_FieldName, phase3_FieldValue); //Create file stream. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge.sln b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge.sln new file mode 100644 index 000000000..ad8d78a5d --- /dev/null +++ b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34322.80 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Remove-empty-column-after-mail-merge", "Remove-empty-column-after-mail-merge\Remove-empty-column-after-mail-merge.csproj", "{5945DC82-CDAA-4847-BDA7-9FABCD9F18AF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5945DC82-CDAA-4847-BDA7-9FABCD9F18AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5945DC82-CDAA-4847-BDA7-9FABCD9F18AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5945DC82-CDAA-4847-BDA7-9FABCD9F18AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5945DC82-CDAA-4847-BDA7-9FABCD9F18AF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E854CAE3-189F-4690-A15C-FBBCE7C8789C} + EndGlobalSection +EndGlobal diff --git a/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Data/Template.docx b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Data/Template.docx new file mode 100644 index 000000000..17b4f23d1 Binary files /dev/null and b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Data/Template.docx differ diff --git a/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Output/.gitkeep b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Program.cs b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Program.cs new file mode 100644 index 000000000..717de62fa --- /dev/null +++ b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Program.cs @@ -0,0 +1,123 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using Syncfusion.Drawing; +using System; +using System.Data; +using System.IO; + +namespace Remove_empty_column_after_mail_merge +{ + class Program + { + //Boolean to check whether the merge field has value. + public static bool hasCostValue = false; + //Cell index of the merge field. + public static int cellIndex; + static void Main(string[] args) + { + //Creates new Word document instance for Word processing. + using (WordDocument document = new WordDocument()) + { + //Opens the Word template document. + Stream docStream = File.OpenRead(Path.GetFullPath(@"Data/Template.docx")); + document.Open(docStream, FormatType.Docx); + docStream.Dispose(); + //Get the table. + WTable table = GetColumnIndex(document); + //Get the data set. + DataSet ds = GetData(); + //Even handler to verify if a field has a valid value. + document.MailMerge.MergeField += new MergeFieldEventHandler(MergeField_TaskCost); + //Execute Mail Merge with groups. + document.MailMerge.ExecuteGroup(ds.Tables["Task_CostList"]); + if (!hasCostValue) + { + //Remove the empty column. + RemoveColumn(table); + } + //Saves and closes the Word document. + docStream = File.Create(Path.GetFullPath(@"Output/Output.docx")); + document.Save(docStream, FormatType.Docx); + docStream.Dispose(); + } + } + + #region Helper Methods + /// + /// Get the column index. + /// + private static WTable GetColumnIndex(WordDocument document) + { + WTable table = null; + //Get the merge field. + WMergeField mergeField = document.FindItemByProperty(EntityType.MergeField, "FieldName", "Cost") as WMergeField; + if (mergeField != null) + { + //Check whether the merge field is present inside a table cell. + if (mergeField.OwnerParagraph.IsInCell) + { + WTableCell cell = mergeField.OwnerParagraph.OwnerTextBody as WTableCell; + //Get the column index. + cellIndex = cell.GetCellIndex(); + table = cell.OwnerRow.Owner as WTable; + } + } + return table; + } + /// + /// Gets the data to perform mail merge. + /// + private static DataSet GetData() + { + // Create a DataSet. + DataSet ds = new DataSet(); + //List of Syncfusion products name. + string[] products = { "Task 1", "Task 2", "Task 3", "Task 4", "Task 5" }; + //Add new Tables to the data set. + DataRow row; + ds.Tables.Add(); + ds.Tables.Add(); + //Add fields to the Task_CostList table. + ds.Tables[0].TableName = "Task_CostList"; + ds.Tables[0].Columns.Add("Task"); + ds.Tables[0].Columns.Add("Cost"); + int count = 0; + //Insert values to the table row. + foreach (string product in products) + { + row = ds.Tables["Task_CostList"].NewRow(); + row["Task"] = product; + ds.Tables["Task_CostList"].Rows.Add(row); + count++; + } + return ds; + } + /// + /// Remove the column. + /// + private static void RemoveColumn(WTable table) + { + //Iterate through all rows. + for (int i = table.Rows.Count - 1; i >= 0; i--) + { + //Remove the cell present in the cellIndex. + table.Rows[i].Cells.RemoveAt(cellIndex); + } + } + #endregion + + #region Event Handlers + /// + /// Method to handle MergeField event to verify field value and set a flag. + /// + private static void MergeField_TaskCost(object sender, MergeFieldEventArgs args) + { + if (args.FieldName == "Cost" && hasCostValue && args.FieldValue != null + && args.FieldValue != DBNull.Value && args.FieldValue != string.Empty) + { + hasCostValue = true; + } + } + #endregion + } +} diff --git a/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Remove-empty-column-after-mail-merge.csproj b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Remove-empty-column-after-mail-merge.csproj new file mode 100644 index 000000000..74fc4461c --- /dev/null +++ b/Mail-Merge/Remove-empty-column-after-mail-merge/.NET/Remove-empty-column-after-mail-merge/Remove-empty-column-after-mail-merge.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Remove_empty_column_after_mail_merge + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Template.docx b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Data/Template.docx similarity index 100% rename from Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Template.docx rename to Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Data/Template.docx diff --git a/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Output/.gitkeep b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Program.cs b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Program.cs index 909821e0e..8d22a3daa 100644 --- a/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Program.cs +++ b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Program.cs @@ -10,7 +10,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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Performs Mail merge. document.MailMerge.ExecuteNestedGroup(dataTable); //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/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Remove-empty-merge-field-groups.csproj b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Remove-empty-merge-field-groups.csproj index a4412be61..8f8c0a510 100644 --- a/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Remove-empty-merge-field-groups.csproj +++ b/Mail-Merge/Remove-empty-merge-field-groups/.NET/Remove-empty-merge-field-groups/Remove-empty-merge-field-groups.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Template.docx b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Data/Template.docx similarity index 100% rename from Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Template.docx rename to Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Data/Template.docx diff --git a/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Output/.gitkeep b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Program.cs b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Program.cs index d7af93a14..272750bba 100644 --- a/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Program.cs +++ b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/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)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Performs the mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Remove-empty-paragraphs.csproj b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Remove-empty-paragraphs.csproj index 5fd48f884..04a2d5498 100644 --- a/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Remove-empty-paragraphs.csproj +++ b/Mail-Merge/Remove-empty-paragraphs/.NET/Remove-empty-paragraphs/Remove-empty-paragraphs.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Template.docx b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Data/Template.docx similarity index 100% rename from Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Template.docx rename to Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Data/Template.docx diff --git a/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Output/.gitkeep b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Program.cs b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Program.cs index 45ac61dbf..e60714b3b 100644 --- a/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Program.cs +++ b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/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)) @@ -17,7 +17,7 @@ static void Main(string[] args) if (document.MailMerge.Settings.HasData) document.MailMerge.Settings.RemoveData(); //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/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Remove-mail-merge-settings.csproj b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Remove-mail-merge-settings.csproj index 46140e31f..594ab9827 100644 --- a/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Remove-mail-merge-settings.csproj +++ b/Mail-Merge/Remove-mail-merge-settings/.NET/Remove-mail-merge-settings/Remove-mail-merge-settings.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/Replace-Merge-field-with-HTML.csproj b/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/Replace-Merge-field-with-HTML.csproj index 47526dd7d..21440dfa8 100644 --- a/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/Replace-Merge-field-with-HTML.csproj +++ b/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/Replace-Merge-field-with-HTML.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/packages.config b/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/packages.config index ff796ce92..6be96b6c5 100644 --- a/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/packages.config +++ b/Mail-Merge/Replace-Merge-field-with-HTML/.NET Framework/Replace-Merge-field-with-HTML/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Template.docx b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Data/Template.docx similarity index 100% rename from Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Template.docx rename to Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Data/Template.docx diff --git a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Output/.gitkeep b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Program.cs b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Program.cs index 8f8669d64..209a2679e 100644 --- a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Program.cs +++ b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Program.cs @@ -9,7 +9,7 @@ class Program static Dictionary> paraToInsertTable = new Dictionary>(); 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 an existing Word document into DocIO instance. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -28,14 +28,14 @@ static void Main(string[] args) //Unhooks the event after mail merge execution. document.MailMerge.MergeField -= new MergeFieldEventHandler(MergeField_Table); //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); } } } - System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"../../../Result.docx")) { UseShellExecute = true }); + System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"Output/Result.docx")) { UseShellExecute = true }); } #region Helper methods /// diff --git a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Replace-Merge-field-with-table.csproj b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Replace-Merge-field-with-table.csproj index 684336ba2..2e3facea6 100644 --- a/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Replace-Merge-field-with-table.csproj +++ b/Mail-Merge/Replace-Merge-field-with-table/.NET/Replace-Merge-field-with-table/Replace-Merge-field-with-table.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Template.docx b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Data/Template.docx similarity index 100% rename from Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Template.docx rename to Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Data/Template.docx diff --git a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Output/.gitkeep b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Program.cs b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Program.cs index 3c85dacf5..28dbdf95d 100644 --- a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Program.cs +++ b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Program.cs @@ -10,7 +10,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 an existing Word document into DocIO instance. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -26,14 +26,14 @@ static void Main(string[] args) //Unhooks the event after mail merge execution. document.MailMerge.MergeField -= new MergeFieldEventHandler(MergeField_EmployeeGraph); //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); } } } - System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"../../../Result.docx")) { UseShellExecute = true }); + System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"Output/Result.docx")) { UseShellExecute = true }); } #region Helper methods /// diff --git a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Replace-merge-field-with-chart.csproj b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Replace-merge-field-with-chart.csproj index 3c4929992..60470fead 100644 --- a/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Replace-merge-field-with-chart.csproj +++ b/Mail-Merge/Replace-merge-field-with-chart/.NET/Replace-merge-field-with-chart/Replace-merge-field-with-chart.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Template.docx b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Data/Template.docx similarity index 100% rename from Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Template.docx rename to Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Data/Template.docx diff --git a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Output/.gitkeep b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Program.cs b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Program.cs index 00f566ebd..6fb29d37c 100644 --- a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Program.cs +++ b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Program.cs @@ -12,7 +12,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)) { //Open the input Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -56,7 +56,7 @@ static void Main(string[] args) document.UpdateDocumentFields(true); #endregion //Create 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)) { //Save the Word document to file stream. document.Save(outputStream, FormatType.Docx); diff --git a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Reset-page-numbers-after-each-record.csproj b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Reset-page-numbers-after-each-record.csproj index e5f8d569d..d9c5e15b4 100644 --- a/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Reset-page-numbers-after-each-record.csproj +++ b/Mail-Merge/Reset-page-numbers-after-each-record/.NET/Reset-page-numbers-after-each-record/Reset-page-numbers-after-each-record.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Template.docx b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Data/Template.docx similarity index 100% rename from Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Template.docx rename to Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Data/Template.docx diff --git a/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Output/.gitkeep b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Program.cs b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Program.cs index f96535102..0f1f2732e 100644 --- a/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Program.cs +++ b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/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)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Performs mail merge. document.MailMerge.ExecuteGroup(dataTable); //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/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Restart-list-numbering-in-mail-merge.csproj b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Restart-list-numbering-in-mail-merge.csproj index 589ad8e4b..e7f20757f 100644 --- a/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Restart-list-numbering-in-mail-merge.csproj +++ b/Mail-Merge/Restart-list-numbering-in-mail-merge/.NET/Restart-list-numbering-in-mail-merge/Restart-list-numbering-in-mail-merge.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Template.docx b/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Data/Template.docx similarity index 100% rename from Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Template.docx rename to Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Data/Template.docx diff --git a/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Program.cs b/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Program.cs index 5d66ad6e5..da022c843 100644 --- a/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Program.cs +++ b/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/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)) { //Creates new Word document instance for Word processing. using (WordDocument document = new WordDocument()) @@ -37,8 +37,6 @@ static void Main(string[] args) Console.WriteLine("\n\nMerge field names in " + groupNames[1] + " Group :"); foreach (string fieldNameInGroup in fieldNamesInGroup) Console.WriteLine(fieldNameInGroup); - - Console.ReadKey(); } } } diff --git a/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Retrieve-merge-field-names.csproj b/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Retrieve-merge-field-names.csproj index 87aed58ba..8037c38b9 100644 --- a/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Retrieve-merge-field-names.csproj +++ b/Mail-Merge/Retrieve-merge-field-names/.NET/Retrieve-merge-field-names/Retrieve-merge-field-names.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Output/.gitkeep b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Program.cs b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Program.cs index ef1842ad5..af4e17727 100644 --- a/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Program.cs +++ b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/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,11 +17,11 @@ static void Main(string[] args) document.MailMerge.MergeImageField += new MergeImageFieldEventHandler(MergeEmployeePhoto); //Executes Mail Merge with groups. string[] fieldNames = { "Nancy", "Andrew", "Steven" }; - string[] fieldValues = { Path.GetFullPath(@"../../../Data/Nancy.png"), Path.GetFullPath(@"../../../Data/Andrew.png"), Path.GetFullPath(@"../../../Data/Steven.png") }; + string[] fieldValues = { Path.GetFullPath(@"Data/Nancy.png"), Path.GetFullPath(@"Data/Andrew.png"), Path.GetFullPath(@"Data/Steven.png") }; //Execute mail merge. document.MailMerge.Execute(fieldNames, fieldValues); //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/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Skip-to-merge-image.csproj b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Skip-to-merge-image.csproj index e77f6c6d2..0d9cd7618 100644 --- a/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Skip-to-merge-image.csproj +++ b/Mail-Merge/Skip-to-merge-image/.NET/Skip-to-merge-image/Skip-to-merge-image.csproj @@ -10,4 +10,22 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Data/Template.docx b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Data/Template.docx new file mode 100644 index 000000000..7440662c5 Binary files /dev/null and b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Data/Template.docx differ diff --git a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Output/.gitkeep b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Program.cs b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Program.cs index 9eecb7b12..b5cb74e0d 100644 --- a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Program.cs +++ b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Performs Mail merge. document.MailMerge.ExecuteNestedGroup(dataTable); //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/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Start-at-new-page.csproj b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Start-at-new-page.csproj index 44a45e084..1b7b86fbb 100644 --- a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Start-at-new-page.csproj +++ b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Start-at-new-page.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Template.docx b/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Template.docx deleted file mode 100644 index a7ab57abd..000000000 Binary files a/Mail-Merge/Start-at-new-page/.NET/Start-at-new-page/Template.docx and /dev/null differ diff --git a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Convert-Markdown-to-Word.csproj b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Convert-Markdown-to-Word.csproj index e533cecd0..0ac9d30c7 100644 --- a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Convert-Markdown-to-Word.csproj +++ b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Convert-Markdown-to-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Input.md b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Data/Input.md similarity index 100% rename from Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Input.md rename to Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Data/Input.md diff --git a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Output/.gitkeep b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Program.cs b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Program.cs index 56152592f..cb87edd6a 100644 --- a/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Program.cs +++ b/Markdown-to-Word-conversion/Convert-Markdown-to-Word/.NET/Convert-Markdown-to-Word/Program.cs @@ -9,13 +9,13 @@ class Program static void Main(string[] args) { //Open a file as a stream. - using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Input.md"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.md"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Markdown file. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Markdown)) { //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../MarkdownToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/MarkdownToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save a Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Customize-image.csproj b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Customize-image.csproj index 2f32bdc54..e59761aad 100644 --- a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Customize-image.csproj +++ b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Customize-image.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Image_1.png b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Image_1.png similarity index 100% rename from Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Image_1.png rename to Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Image_1.png diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Image_2.png b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Image_2.png similarity index 100% rename from Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Image_2.png rename to Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Image_2.png diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Input.md b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Input.md similarity index 99% rename from Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Input.md rename to Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Input.md index c72823103..3f27606e9 100644 --- a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Input.md +++ b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Data/Input.md @@ -5,7 +5,7 @@ Image from file: Image from Website -![Third](https://help.syncfusion.com/file-formats/docio/DocumentObjectModelrepresentation_images/DocumentObjectModelrepresentation_img1.png) +![Third](https://help.syncfusion.com/document-processing/word/word-library/net/documentobjectmodelrepresentation_images/documentobjectmodelrepresentation_img1.png) Image from base64 string ![Fourth](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAACVCAMAAABRsodJAAAADmdJRnhORVRTQ0FQRTIuMAEBAD1VqREAAAMAUExURZ9jasrL+Nbm78GAg/LN0Ozt/uLj/tnZ59PT/tzd/vP09KWnqoWGicbI2iNckVRVWZCaq/RMLzo8QJijrnR6hJeYm/0pALnFze3x+WqcyzdBTPn6+nZ2efr7/WVmaY2wyex3bVVZYPCLgcbG7P4xAvf5/Orr7HiGkNu6vqdsdnKRrrq7x9vc3lZjcuHj5KmsryYmKdLT1e+2t7TR4k50kkpMUYqMkvfm58rLzubd4+5YROzt8bu8vuxnWWhrcsLCxfv9+zk5PS5QdExzqM3Au/b2/sTFy0NESK2PjzI1OePl6c3R1o6UmPg5Evb2+UlKTfDw//39+tTU99Sxs7KztG1yedpqcU5RVgxNdj9BRTIyNdTV2t3d9GpSblmMugwND66wtuPj9fr698FUTxE0SyorL+Tp7b6+1tfa3Ke4yPjt8MzW5vfd27S2ujU4PcbIy4NPU72/5Q8nNdVGNS0xNj4+QqKrwqSjoeo1Gbe5vefo/nSmu/n3+vHx+NDO1vhCHqGfpuk9JRAZIGdtykVHS3Rsdg40aaa/1/fz79bZ/ZSEgLOttD83Ofv19lM0NNE5IvWglfL2/tozE4zC2tTa0+jn6kZbkPL2+c/O6lBOUyY4bf37/tvLzDEuNmd+prU8MSt5sLOzrLCrrX5lavb49XFlWf77+snGzYSkx77Awd7g4R9CWc/P+7u9tdjW1tra2MXIxdzu97u1vK1DQElFTDY1OVxJTuODh9jY/h0cIsjFxZCPlJ/J6NHTz9nV3woXTewrBrS4tpeVjufj5FZSUIyNiZ2foTArLL8uWM7Lx+/w8fTz+dbY8Li1tTxifUpGMjcyNOrn8n5/gn1ydOCVnv4iAOgsEfQwDejo+9jX9q2vsc7P0WxtbUdDRCAgIubo6DEwMUxJSRsZGvv9/f3///3//fv///39//39/fv9/////fv//fn9/f/9//j9//P///n//P/9/F5eYvLz/goiapy12LGwxzxIUcSh0i0vMcLd7WWFnJuz/K2Jz/////z+/qCZmKIAAAABYktHRACIBR1IAAAADGNtUFBKQ21wMDcxMgAAAANIAHO8AABEvElEQVR4Xt29C3yT5f03TJwNzQEDoUElB4htyiOUNlUSO1rbBNZmKSUpXWNIipwkUg+kUxtqawvoos7N/Tc3gdYO56F/pSECbmSmdrqhEB6D+kKYA9pSSnOHYlYQ07/yVt/3yvO97pTSYjlNP5uf54Ke7yT39/qdT1fGxa92kUsuhn2KsLwfnwkTDvfL5eGrfdZ/+3XjrvoVrwg4LI/LmdwdJC4Pf3/xxr8DwOcJHJaHGel7se0Mice/v0T+DgCzPMIwLAdkGhyyvAwpqIx/38v17QGzBGYYaWVeZ44wJLJYZFZZjpyR6xKU/76tbw+YxUt+f0ikVnf3Ltuj0IRkenVISr6feL+9DLMUJO+dONDW/eyeQydCMpcolh/zCdP/LwVMYTFM575epSzlQM+xZ0V7QzKzw6aUtUu/n4i/LUuzDK0qf3LD/uMlW5p2xVyiquVKffeTuab/S5VWQicRuapickrvln0HDsRiDn1tJ//7KsLfkQxDa/EzC7o03a49J9S9tlwCU/wvL7gt4TNn+vtZ76Uf/77T9W1ZGrY3cT/UDmc3xQ7skZ0oV32rW4TsJzQD/T/2Ykaua3ux7wDwEPeGw4RoFedKjguzmX/dtRwF5ZI/jHJz//2ASQKyVEcyYl8vvVEg4P+rCnrIX7u02z7WX/4TgClkSJ6OtGu+XrpTcPxfFeGEf3rFNXpf/jOAIcqIlshGl2LpfVm19Kdru48LiuCKcHHBqI25thf6LmR46BaZsE5KAuqvZ4b2CDciLL5GyFRgrwbsN675jwEmJCwnQbdrhn2XopZcc1D8r6EdthJXC/s7pDBlNR3pcIRivl2vgKevlcLnGeXN23/32GOPzVx68834wDf4YeLMpTNnzvx6Rij09Uz5xSS+WqiJ675bwLiXoFYkdJk7mq8RbsKQ0/XVSzcsfmrVqqcWr9q2atvixYu3GY3V9m2Lt1VX2+0+47bF075ngFuFIplC5mmWXqsvPQT4zRsWL75hqTZQuybF8KzLZZs6deq2qVPP2WxTz23DWvzUY/8uwJdzCeATYcGnzuyUNIX2tAfSobSujdXOU3jr4q0PXBeMA1Vuh9InttlslMyLz52zzcOXebNn/9sofJn7H0pShuV9HpFwS0gky6EpnmtFzDqozO2VFyjoCTX59FO3LT43b9tUm2vbnJnTOt9PN/27KHxlgoXDfeWu9l27hO3FRHrlyy9xxUg89XkhkXjqPMrNx6Y+9Q3aJi69tle6eqV1Fc9LspYdUAgdeVI5BPhfITClMT5GYFbNsdvmnZu3eNvUpxZvHdtMX8WNjbjkuwQcJmt8ju5QUxbRyf9VvEO3NmyUn5vXs23xqqewbpj25vcLcDiuI+VzHnaK7FrWCLMUvkbVNSIiHIJs+toye/G8OY9Nm/bVmUv4Yf85CpNgyqpVTq3MI6c6Gnl5/Lsm40ROnTp1QRIS+FSbBUKZ5HI+578Z8IUbZDbnWZ5Y9cTsybeXUqcL8RPCiWtZDNM3Mq5M0DjoCbW7c75HgC8gIjfOPrfq4VXOydcN3d61gGWvJX197NcEbBZwOKNVZnnycnj/3Vo6rDpPRlI+T7ntiVVtwttuu//8HV4ySTPmZjCRUxcD9iwoCYkKhp4u4fuM0uL/AbM0LKbksXkfr3ri4VU/PfzJpOm33T+saCm9INKU96/A4iSBdwSFpQWVIYvi1Gh7e1FcdW2M9K3NEnAMORnkd4vnbVvVNvtPc6evnzJl0i3X/yp6njLn1fUVdNjoXBjFlZGTZxG1sk9zQbxHAL42sPTqbw0YxJNLw5TPwvnzANgx/56Fc+96a+76T9Im3fJg/XneplTWXeH2RvF/mHU/1mRL8ocI/H0BzAb6lHLk7XOL533smv2zx6dMSVt45/Tpcw9POTz3Nw9+ftXyPAQ4ofdPPvdlTm5uUY5MIbzAJ0Mcf0GH/QcoTK0t7E+YYSRzVs2bY/n6nnvumnQYmCfdectdk9I+WXjnbx4c6StebUKTOXN397laj8Ai8ny/ALO+Bc3f8RUfr1r8cf6hw3//LPe26Y8Cctqk6W9Nfzztk0fvvO2OYTonTPRVeJ7R2qkHRO0yRfswh5wn54hA9T9A4aGXDJP7LFPV2z6ecU/abbhD+YN/B0dPmbJw7vTpd67/ZMp6qO2RxnQI8GUCjH5y47x51WqnqDU6pPuuljcuvwnfXmkNydVnSz+2V2+bDwmedD0Lbf/v33okjRVnqLCFU6ip+tVIg3Kl+48un7pt1cPitrbgxSx97WQd8YjvCjC5bs7iJ9Szf/a/5076ZNKDiVs8abqNGqgpaevvfOuuuYep2r7+VyPpzHoRYy1QnjyQcsOqhx9+Ypek+XsIGHWlwLmlDz8h2nrL4XvWTzmPGOJ68LY7FwLy4Ul3vjUdKuzw3Fuurx/tOHwTcFgKwLkTtyEqfPjhLhIeuv5KLHF1hP/2FA7H+8PhT4li5sRVbdZGcsvhu9YP05h1GCDOf6OsPemtu6g4w1Rdf3oUnUff6VA+Pl3yMaz6qtDPz579PgFmw8AzYempgHJayg2zLY2EoYhB45FlhIbb7jyclpY2Zf3cu26Zu34KNVV3fDoC81AjEB5ygfjFlqduuGHqqqpof/PQ9nwvKAwD3K97LUqaY8ucspSUkgcI+XR6gsajKidnf3IPCzntceqRQJdRU3Xe8xxJ7uHvJ85DVvqGicOu2kjf8uqYd+yrviVLh8PN/StfO77gXsu+Zb0nxDsZ+BjNFDGl8YXkOmCkPgLAFPPhSXexHgk1VXdcsr7Cn3gDMvHz1lzMB98GK/vYbwlYLm8+2/KRYvart76398/LenawPFl/5xCN8fzDN/zZD+CJpC2EgcLXudPvoh7JFBpVjU3nihfnLZ43ddv4a4x2r7wf3xJwnJHqgiLlXz5WSg7NeKyLn4ja6+989K31U+ZSGg8DZmb9bf2ktClvPfgWdTwhzm8hwJjCmqr9Y/D0RKCdNyflpqtyyq4M88IV3w4wBFhOWnfNnvY7qyj25GP5fNLPIv7VnY/CGlHEF7A8d0/a3LS0xx8k9bfdgviCinPCI6GmatFo3p7clTLn4+p5H+d85wT+tiwNi0SEz349b87vqmMlE83HCe30oIjn/iOBeASQp387iZIYv4nfz1rnKYfX38V6JFPSYKrO+xf04csfdji3bau2mL4bzTySA74dhWGCSabi0GNPPDwntMcyUVNM5PgNXffPpTS+c8jnYn/12ThK4oWJXzEP/oYV58OInakKY6OqxEPpo3+xapX64WpN+vePwnFSfihnzhNPbPvFe3uFkiDRoWp4HvF0IL5jhHze+FsqxdNPJqjOvHb9LZNAZgQYt8AjmfLJlIUwVYk/TU+7x/lE2xPVtf9ZwGPENv0Mc0iwdduyh2dkpAf72QQ80h8JxJMeB+LpIwzpc7dOAYkfhWSfZ/T7r6fONjwSKs7U7aZRFUPuXz9l/aFtTzhmZ1494KttsbhqlqZRvk4X1+mGagqsXISlkY+ezPj6iWUfv0YJc15WElS9gyL+ZPoF35/c/muWxGzb2RDlGYgzYmeosOlQ24dB50nTr//74bRHQtpzT3RcGq+OLnbYgP1HUxBXlwS/WsC0+BlmXwSufYLUtNWfeJpqFny87OFp0VHl0fOIF4LGt1AWZ+Mi5rNfpE1amLbwehbHMK9/yoozPBI4nlBh8MIeT0sbl9Juzqq4tM6idxJPbD7QJr5elXW6WsB0M6W07h0/xd4FtHHOdtxzYNeOpx9+YvF1RDeyjDREvwcXAvEnt9Cf2Jsht/9hSIrZDbuQyGUS4gwV9hZyJI8+mrbwkNZill+GoeWYnGEgPOy+JaLM7xRw4uaYT+NSeVia+GG7ubcrsFcRypzzxLI5mwmCphE7PKRvb1u4ntL4PGLmpHYKS+Jhyg2DBmsPiTMwp6XdY5HYJCRy6TwnewtxFZ8fDPL58nDfSIm6LKWvgsLsc6NZVoCqVkghQxqxRNLaGQxY9ir0CkXeddueeHga7K/u7IUXAr8lOPa2w+unp0255fztkK/+tJCV4tG8OhRn3IGgilpneN3jZghtnWRsvIn7yckThEKKWEwkEiktsr0drZUtI0BfWhYuBZiN++SQWNA1tyAgbHL7HIMOx+A+tUON4YZBX1O+9vU/tj55aMfEVcu2XQfmG3V3w4r4tjRK49+gSEQ5jvms5G8XpHg0JSiORCosLW39Ia0iBqYZsajQ6iBXDAnf2ykIiQw+vW8w5jZ06TVuu1njdBpiMkE20kEM7YmTSqloj0XqS1JYDhWFZ+87ntXVpHY4HFt8ertPrxeLfTaxa1BvG+xVSPTKQ3s3z4HXAbzfLBUmaPwbqN00ijghxV/9KS1hi8e6GTbyuP7OKWmPpJTYBKMBSylgbH9uUbvIptS4Fa6YzBaz2kSuExq7G6S2iRVin6KkSI5uMeCF0hmTQS4FWA5hZRh+lcWmVuv1LrFbL9L79umN1U67cdBot+vt6g5Fz7PteTeinPQ0Qa72m00sQ4iRvhuBeOI/QOLDF6T4IuAMOQPA42ZoXbmj4gZozH4UNzKXK8QGkTgmEptdYqverjc69T16n9GmN6Djx91l6DF2CdLpPCA1VNdCYewOSReI9Gqf0aDwxWy2LT6j0T5YbRzcB3JXO6q7fXnq7tgv35/2xBOLEfaD2S62gzrdGIjJdT9lSXzp3u8HH0179FCJKES5ZqQalKN0KrE6NVa3RmwU2wftPjC1D1znBGjfAbFPLBZrXAqlz6gMZFIRGltrX4rCDDEFYj61Rqyx2m0+32B1tdFpTCyxU4zXUOe393aH3n975ryHP24SFrP9w6PXsOb6zSdzWRonHI6tv10/SlFfTOK/T4GObrfVgqNHPmMfOa4125Rmq8046HQCrnjodnBnWD34qDbqezQxg8WgVgZyx7gh9pXGACxHSwpR5eU77BqRS+QW6R2DRqMTRK0GaavVascWPLfz3HLRMrUkWnHD5Me27XOIBCbaMXzxtg55zbcMIabOGLnu1ctIMYzz3ClpP01JaQL/9p+lbInnbIG7ys9SWK1mq2vQYRTrxS5sv8Plg2rZMji4xW6vpr9OQHcaDBaXuqlcRVQtY/QgjAEYT0+2p/gcPrdV7BLpxXZn9aDaoW+KhbQlgYCkpF2Ykr9rmUPw3/reN1aWrBLOGDzg8g0qWhkiR1f8aIIlmJoZhXjar9evv6QUkx+un7LwkFCkzEmHbWXC8mZ4tFLGVBBS2hRK7L1dbLD5YCnE5lhob0Ag6CjPmryhJNQl0ogdTsqETr053+A2+BRVhKGa6CIO+ibgsIrIazRivR77KRY7nU6HelApzKqqWLAzLysAxIGs3Ttl3aG9PtGWHVLJsdDepi0QJbs+YILgjJrvGHal+qZ/cuf0tDToarhGb45N4iF/9TfQ0SVa8YwXlSkTioPN5LXT4LfcGmhmM6hr17tcdnWPxhLYvbs8q6akRKsN7W0vCQg6amsnh0SD1Q4jVKzLZXUb1YZAEKrlYsU1BoWJR+gzKN0um03jdBnVPoWkKiNHIFNaNe6YYs8eheLYn3/x3//Pzlib+tkfpisO7Xh7l2OLXa/vsSsyEtZ2aJ1PoFMay4EY2heI4VtdTGL2Qf1n6MOYQsRTP/1a6BM+MOG+tTNnTrtvIhpasvOtCrcbYMQu16DaLBS05tUI2yUbXgl8mfOjmg9elwgDJcJQye6dtUJrtd7mcuptBqVC71AcB9NdicIMqYw5wMoxl0tssw+6tVWVrUJlU0z4x3WeiuTCO9JJ/bsbJ4Tee+XYs8sObH/+2CvbtfsOGHvsPT7XoDInoWcSRnYkYCR9KOKFlMbkpkMXSXHCy2Ef+eDhtEfv/p+ZIZ+ok/wwvXj82nPnZhUorE1WvcPhtOGTaEPr8pK9T76yPVfeR1R+1crXyEByPVmZvr0jRdFe29nR5fK5xGKbSOQW9yhzRhvzi5UWLfWSPCuUlc1tsLldDrcko1KiNHdpx9MbNbUkJb3GMKo4mbxFoVC/LNjzfo3ynQ9E6h693r4PXO2zraFipzvfA5GQ4MS6H4jnfoJICevpPywcJcXo2xuiBIGOfmT+Xzc9NqPJWOJGKby+dcaL51wxt94Bh8fRrRQUbQi15/3wKJcwJ08y+5M3r4xGkzhy6tklHa0SyCw1nTDVLGSNW+ywFeGGRrXHjWZpYKm1uWDqXD6D2yfWejxadyzwPuFx8ZTxYEvSkSj6/KNktvB5tzqmkO1Q7N0Bfjrh8Im3bLHDXIkFOmiKlefjx5GI75g7BYW29RTxc8K/rR/T3WLOQEf/YNMLN9x8+wJLj8EYSyf8vMkvnuux+1xQVQZJgSAk2GEiZIlXBU8HgPcvooClTLif8XPR1dUasmRVZsUGwfwut8ig16xh4DGOaHUdDZiENxgMCqVSLDa7HYqcTK1YURUmzOkPsYdhAC49EiFxabRBWdC6bNmzPZIPXK0Sl6ijIGR3iH1Gpw9sXYJBxGFVPRIweXDSJ3e+9Te20Hb7n9LGVNTkengdXSXzb5i/+qsJlhNOn61G0O0SzpzXtsXl6PXlCfa2z+ojjPRUEkfFyOMA/FyUSQAOy5NXRKSwFK8rurI8AXG1TSxu0ljz9QJcP0KORwFmGIEd/qkxpnEbnYF7O9yK8o2Ybm8O38QpBdPwW0q5EZ1cR7KnejLd7e2HsvcqOvcI9/bIOmtOwAF1wtV2+rTocbnwAiMLLg9OmvLWXZ/Q8vFn2sPrkfC62KNmTkJH/8EiLHn61ZT5Dzw2JwZz5zYMHpBNnKNe1mYdVNS8f/qon7qNpZyBIcDx/ghYOn42PJB8JArRYKKZX+aH7s2IqV02vVtkG3TAKb8UhUmW2Jav1DsNbrX1xntl7iwped1DN8/E4eILf2Upd5EO41hHtNvjwtdz2n95ouOjYxtJjuhEeYFCLXY5XXBo7QI4hcOxAXTRBTJfv37K9ARX/+UelsQXRfiMiuroGTLF65v+Ou/paY/NAZH1xrbu7n0pX09d1h3qJPK+mzh12PuG1DqwHKVwXEcBM/3/TCorjCDP02zy1/HbY9vDQofYIHY15YvVeSNf5gKF0Se0wDBojUHcDd1d93o0XelQcemtfOo+HfVHwvHN0lLuKV1YHknikre7OgoOLFsWapcxYRJuNwRyQlArCKZcTlse5Dx8IQMygq+vR1Zv7ifrHyTPzfwHpPjOM0Mbcz5pdD1yfLESZde98+4Ovbj16WnzZyh8trZe9bI9shdnhybOGQ+79yFHhTRTGS8CNtqfPBCJAzBYOsL16s7qwn1SHg8xVV4sjyx3+Ax6Q76mW58NIOft03nAUGUkQynWuA16m61bWFhl1H7KUL2QvRNKLrLCW6hjAeMO5YTLjeY0vfxL5a62dhHQReq4f+wOLSix2yE3ep+rqZJIaTR3fo1GfMtcWj7+/346UorPA36LcnSJOUAeuHn+3Zum3X7DDV8LXU7jsmWyY8YXX5yzYd4sJlzv5SGVeNQPLgKFCyNxhrJ0XM7zR86ejS9a4jfBSpB1Bgmp1esNLlss1qYE6c6z9TBgHeFbHG4FuMClbifLjYHC5FKoN7m8wANpaeAkRRhTAnCc+OsiJPOXEze9sKkmFmQiR5JXSCs1XdmSQaeB0lgMgw/Ew5I8oj2SAY3foohv+tlvF46Q4oT5bqB+9IyQwSMlX2xq++vWaV8vXjy/JObrWdZ9QJG/6YGc9k0TCDnISYrrlngLzwNOmCXVM0dIvzx6xPucTod8V8sEi5YU+MQGn0hpbwtRO5+4n2GWlkqFPo3VCh+lu4QEbNlEyk0G74T7gzuDaDzzclmW5tGmYMZbp1sUFLz4wl8nyoQknuQ9wmdIsCuWHfDpDXq9T+zEb2kMfsHpGhZk5rbDhyniO4ZIzIrXkBVmbvtb2qMKbayLjwm3eZtkm+Y/oESNeKbMJfbV3j9PGZi89kXsfuQobFJCjbIUZgGHC70NEK4Gb1KEmqGWJG6DUNZX67TZkAqJDdbA5Uow9TBgsluvhz2CvhKSgDiDqPrq/X4kBsPEkwMDsKQszAwBlvYlJ0VI9tqlN8xfsycbfg53JZFLiVwRWyDRG8DV0ALlKEGMiCOGKk5sIHFbGov43Z/9YyGkmNr3IcDMSXD0nywl4nKoDXId9vPFrTMPbLth8fxQk1hSk//CstmbKohupc7E4UXknCSmnwUcBktDf5WC5H31Xm7knyBwS52/kGFCQiJwGMS2mKu7h4rxMGD6LclU+pqa3G53jwy+RwYb0POTuXhwPJ5TCTJyCilLg8I6aaF/IM7M+vLpxV/UKKSqZC7A9kOyTQpLpdDutumddqcGTD3Kib0gx8xvprCI/39aIU+kPhLcz/wc+WjoaE2Fija6zbwh5e6nHpixr/vjl16aoXCIhdrZmybfh8qGPLqCUxpp5OIiaOmIHPcGruP6PyV9fp70bL9O18LlqSJyRiWrIe2DBhcSJGoFu7MJCoO9IeXaLW6FxmD2ieqzxa+zUxrhyP5kLgNNzy8IkkLOEQZmyX/ypBSwC1dKN0z+3V++Wl5OknnASzM8cszS7n2+a9At1rvc+pKRxpiiuYA4fsuUhRTxuF+jH4C1xQleIP8rLe23Cq1Ixqd7RYRzXvjrnJu3duk/mvnSS3Nkx/Rdnk+b197X3KdbdApM/eEzGLJoSB5gqJbGt89wo6eWJBfGz4R19VyedBFN2ayw5jEKu0FsNveoz6fIAJjKOOmER9nkMov1GVKzcAm0vRSG5fOk5NI+ICkukMqfORo1sYBbPq/z9+tumvk//7P0i+xMnl9KwqAIds0UnGXN2qnxGVxwQVyto932kfXf+FufLHxr0pRHfkpJfNv51BXDTKc6WmvOMlGXvsDnnLd1/l9nThPU1Gye9tJLKTGHkE+ka+87Hdc1N3C4K7xyhgXM2uFIfzI3+iGn9BTSxTBMKiguJsz1L1fmemxwQFwiM05iYPkIgHGzDF9hjylsNrNjA7FYSLCR2jfQ+DUu9gzphuxswvXKW1Ym+cMnpVGuP7JowsyZ8+bd/rbfr4LRpd65TtrC5daeyMly2qCqDXbZRW7USC+zefon6/8+acqvwcKsFCc4+uAkytEhV2Y6Ai1pvtj88Qt//fOLWzPb08lrTy8FkX3mKiJfex/TB6b2cjm4xSEKe8OR58oGjsAlkddLpTyujgFeFY+TSzZYSNYWt14vMrdJRgAOkyq7q8lqM9u7SFYTH2nuRqrtsBUreX657mRYtTN9gFMKwMmARri86KLJS5fe/MXTDyUX0oQlG2XBEBaS0JP80Ba3Taw3igtGu1Gj3GqEx+v/fg9t+kibQknMAr5tCtXRIlk6H+q2VaxUGudtfXH+m9OeJkjBZN8MIp8YFAZPr73vFDLIZZzGuoi0ATIMlvb2RZPKBqg3KF+p8kPx4C7lPG9DhOmTbSBddjhEbrUtyN4Q1dLYzy6fRYmQUOxJd8F/QwYJiKmPEZb6qRiT4wUmb10CsI7hckn61BdeXLp1YrEqCnmgU1nRQj9PFzlt2rMms8mGFKprMCU+euCSVv6HGRvh8fr/91aKeNjdOnkX1dHCnvJ0VOukCiPcYOX8p+Zvnb+kXt7cfGrFQyBy16Aoh1CujjRwOFwKuDAClgZgrrfs6KfhfikcS+prh4F3f7RfTjwxjwcpEH2ToTeLndNnlRbpdBoUIpcGHocM6VFAIC3jvXVRfKMzJddRhVTRySvjL0rywtNp5iVFF8BobLq5YBHgYvXDFiZzKUBmudUkqdYY4HEZsmGsRmdYRjRAsIjHUcSsFIPA98O5/mmKxZ3JRxqoyGXNNzhdL0zb9NSP124FaeTMig//8tJ8EDlQv3ZWnzy+gsOTQoY3Uzvs7WN4HK+KCbcAb4QKGPCaqL6VEkmICLfYnC6D2sqnGR8KOB4WihVWg8HmSn/Hlg4ehRpjVkJMoD7DK2+C1YVE7Bzv3QzAcSlf5R/QWeYtnT9z3fZTQEQ9GOYILsKsZZKfu2fDRrMNmlo8KMTzj8ywjO5buR96mkU8RGLyk8Npj6fc+tNXf5+d+5kqf9CKDKJT/OINm2bOf+BNE6jSt2TJdTe/NEcxqMi4b3XzabnXW0gpDP4E4HAy5ya4G/uBFzaHUfmRBGFb10mxObtSD542iNXQo/IwBUwybAYLJNihJYr2mzwRUEYlZxYdhHfFyOXg4wFEDsEi7xHQUS7lF3rPFC8FgbdOTu+jexOP9vH8DTAPhTz/ftIpSi8xQopdetFFQ8SjpBj1coqY7Va7jYZXZ6Cj75n8+JTDv33knh/84L8OiB3VTrXivq1L/2frh0vfpJZP/uGS+F+gu1yujrUTSBw6aiVlaep4MKWcFYyupcGPbcfMCfBKwZ5QxvIMjzBEZAdcRoNeLUMaU84CrsF+mg0GfWa2lV/HacxF1qK5vjma6+VRr1zH9YPCTPHqJSQpWSVfWZjMTNx08/wXn+4gMCA6eVQFXR2J6OqSj5pIM+nakGm2gad9xg4yqrxzEWB0CHwy6e8LKYlV8BLvYKvg9zwO94tWEH/7hz/813/te1Ly4vz5N9+9aetzzTRf++GSKIhsEdktk9OJiZPcMORaeomfMyBtuclfGgHDRVT+ZwAV3ldzetE6035FRqfR5hO7B12ZiCEAGDbJma80aOwh0gXdXcjlfNgQwdOHo0EvkISl9Yi4oLha8wC4UKcb4N00k0rw5O3IlaviUfiWYQbkRQBOmptJUUwl1LvFsH6W0TOmo1ka8K+f9MnctyhiSDHV0b8+ZFFa73513D2PADxdj/76kXvG3Xr3T2csLWY7YeRHP4wyIHK+Xlxi6mvk8EygsBwU5nHKVLCZpeDncMTk94NictRO1hVtPN1HJO0kZkTOSu8oBysBMFngcmpEbrNxQbEovQ8ltAEeZ8l+0hxuPhUsg08qp6oPUViwlj+Q3CAlSXXL5908f9MXG/h4WinYvO6fZ/vr4HFFwUSw94qqTgPV0y6NZ3SW9JuIHwfiw2lT5p5hGCRx/5Qf64lpDE6x0vKLWwH7UfwJQv6PR+6569Yf/3HBdZuZOG8F8to3v5SyxyHLOJrM4SYP6OKRUk4qh7coyU8lTx4pTPbr4H8w8cyiinralVHZJRUM2pxisUMGfTYOpiIwqIxpNGIl1WjyMIAyA37vEtUpGHj+0eSBU3LpAFVcZKeg1D/Aj9TVTQOBl64tJ+Fm2IPk0giuTy79HBESNPYpPItc4QJPu+xjN6WM0NXXP8oihhT/kOrofGsXyczOq9G0VRs1CtmTIPY9j4AFgPsfv/31Pbf+uOb1h1Z8xpDbYaAOmL/kLuF4i9/hR+s448u4wLsI+w132H+qD+WAYE4nDC947FNGVpBuc+nFmkFXOpGOi5PNCqM1Zrb2SEislpagQKc+prTMy1URacQEQLrmRVBcjC5XUsEbaFnEfWjm1k0vbC2pZJqpujJF5dxkrpz0UaUIe5w0oSlXojfTNL7wcjV8VqRvOzxl7vq0T6YzP/nHlN/GLEatlA7tWNocbW29y6ptzqnW2Ku33vqnRx6nxAbsX//hnh/8+I/bb7/5pa814onrON6A4PiA15vL89NwAW03hcm8U3EYqIyCzD62Zg1FXdNO8n3IVvu2FBFQmBy3uWIijcaZfdyVTUiU6Qv3NcORPuL1HpFLT0m5cEGkiLdUjCprlr+0Jcr9YtML82/+QkD1F32dAb9/ANlfSPMpVZKf89C7ooJs965du2z2mIkZsyg9IloE4rRH/zROu/cn437QKfC5c+Dn3at3GLdscbRJarU1MpFYPHWqKHae2ED9N0rsu2fPyHfsmeWXdeX6OV5EsiqUkcK6gWSeDiyanlPRAnmLf8qQqC7ikZ3cYDc4bWK1hECGSYHTKtNobKJwTRd6z2k3LzrT+04TQE4+Eo4uOuKtk9av5PJO9neO5wyky/1bl85/6KvJ7SYYrLrP+0HePtLXHD9ZWMfjPDRh3UYi1KrQiyB2GZoyxiYx+mKGVfZt414d1x4IlewsCbV68iaufXMzKWpzVKuBuLb8HXhnLZUCYb4bJWFN7FWq0B55lBI77fCvHzlkE69t37ukcV0yHH24DPIIxcv0NVR0pgNEhImuzF3B/bDRO9GzQI/OhV3qLiIfF0bI6EbdSB8iFgkZKCxEovP83chXeJOTmuHJ1MV18FFJ64TkL4XjOfP/Z9PNX0h+WV+XnBQtpeQl0bgq6RlO6rrM9JbTp0kr9LTBjDyAu/USjUeJwUJ23ThzsrYkP6YUKWcrRNrbb58Y+ujGx754egZ+sTtw/Lkzif7/YCWqCiLUE84pFa+OSyi0w4dmKF3agDZlw4RUFCJ0YeClsXlmZya4eiBpyVG/v6yMVzdQqO3I1ejFeqtPs5GMY4jQ0aUwa4wdUmVnKc/v9/O43Lqk0kJ5H6ZYpSs4/tJFDTA88NpKP1jO1cq4D908/4unp1kKeP7NOm5yXZQwlLapH/7w/nqMDKIPI9Ocm+XWoDZlD1zyLMDzJM4t75BZkVrKF822aqZaNaKimuPaYzKtUBsQvPfejV9Mbm0teCfDky7FzTD12a+ERFax02ZVHDo0blwoJAwJAzPma2Xa1uzjTKTUu+Rzprhowoc83tEyP1CUyhkmEokQgVAVQ3+KzY7MxjgaGYpiZo042wNnk5GrCgcKS+vquFwuBV5XumQ1p2z8Og63PrjE71nDm7x3wtKnbtj69OQsL69/ACJM5NBvZQ8c5ONA2ni4v/9sf1il7MwxN6E4JRZeSFCPyn/QAJ9dLQWh2LnZFtGsLGuXKF9pVVYXdFY1LVO3qfVqSWt5rqeqs+Cjj/ImT7vvvkB5wZq8zOt2v11VLoyJB6uhzxQWYJ62dNbybEFW3u7xfk4jgiivn5s0UKgKR2gely600HU9F7Ijnaq3V5Fx5LhZDD/L7T5eEKM1KboicKLRwCMvHEhKquP6vZyHUr1lHwL5gqONgYkvzr/56a2hsrqV3OQVnxdyk70rDuoY5uTZIXMD2skCxSKrAf70ZRqeWRJvvjFkVaZYYsoN2nZFLFRg0VgDxRnCZeotTrGjvKCVLIqCQK8tuunNN+/1vO/56vavvsp7u6O9IHuDVqtEdVNsmaj93ZwSieCdnIwJqWsncBvHm3CsF/WyWDc+kf4lGfn3Sox6n0Hs+AiAPWa3BY6lUl4DX5PdkcSpI6gpgT7Yp7Cq4SgnOZlTlprqnxXLt9y9ae3t9+19P8mf2ti4eta68T98v/h9dh3Hxw89nh31oVBc0YQEtyGWiEHHXBEA3ijUzA51xZSaUMXOUGvgnQ8CVndWsNa6bNBlc2ZnaVevLlq9esKExvHjlxxJSipNwipNOjJh3fuZeZVrsrQzZm6dPH/pHMF7EoGg4KEJVe0b0MBD89VDjYOEoSPnDEnPr+zw0ZIiyi7jSKfLile0KYgwFKZH6LJtoImWzfOL+fzgak4yzzOrZMuyF7a+ePe8m0v+2MjhPNRYl4F99+ygK4P9v2P79h3bg3stxNJk1hvMsdzL9MMu+ty0QTQ7xSICjRVCmWJ3tuCDpPypFmFKQbca2ZeMrApw2KgF1EdWrDhSEMjJlghqBSGhQmF5aX7W3tAHrVkFRXnZrQGo52+usPCdAqfYjoxsOwDn2BVQGzYZkZUQKRRulFA2opx9ikT7ToHYSCqSlnVfpnK/7FW35d+8dOv8ye0cb+rRBl0kSiK4OooPLHzBoyMM6VCQkMaqd+kNnsv0h+oWbczXKJVu6OP82Sl7hYrO+ldE+SXnpoYaUnoNNtG9Ag/uZtSCpYkg/0vSC7IrOgpaU1IkMsXXL0lefuWVna21SN+TyiyEbcNlHvZoDfTRyIU7K2zoa9I79gJwgd6ssGrEQtLVQQpHLRXW+V8MJK1b/pDW3tttmf/Sz9Zq2ye+jpLDMFQWb2IBNSo7ZK9Z5DLYDBmXBhyOrBRYY3nawPIUy+zZs/NTSlK0Cl+XSmF1dIXUBojDNwHTnWWwBUTa2ZoHng5pLefmvDR/8keS1oKcekqonLw4va/EYnV0fFG0L5S3wOY64HI7hMw4Uq42w8/S7yWKjgHo5tEL2hrKmq6yxtq8JvUxhXX+zybuPfTK6iN1WFDjY63VsfBegwiZLfflKMxslJ0LbcypkAi0sy1K5WzLOatiuayl5py1rdeuMSiCyx9IGvv58duk1aurAhJtQDJ728dz5lfJ3qhcvaKUrllLSpPYb0Yu4e4JrmM+va071DeO5KlFCo3VRQGTSGQRaIR9STDSolPYzs/xTUv6jpqa7NefVXftaXMoQqFQx4R1FUtWHEnokYvXwOpY3163CJk8PVL4l1rIO+RrUkLavHJJyuypIqV1Ngg9Q/R+lUak7kYiUMFf3kit45irMdW7unWNIEuy29B9wAIpfiOnES4EVllq4uvIxdO+McF9DGpLHQKF83oOiJqawNIsYATyidNBhv7jdk9CXx8sqBjIHdggejIWO3bA93Z95QRu3UCY3ZRFnw/tD3aJmjTIcK2CaFGmQh/B5YYWmMp8kXJiVkgms5xTxkQW5ezZKVZFx72zRU70xLlim8HSDGVgVktgJTgUFrzl3VRedoGkXBso361Q75szp0bSmpGdQUU23peXCy8zscuJOYE4Y0opKDIcQ9cEykiQYbVLoWkyIPoXIAHLLv8zz+B/2fBqTE1NTfZ6U1PX2vbt2eXTVlSmy+Fo8/zc0ufQ8YFE5tCiChK+4PInSQiAfVvclznDVEdaRRatU/ArCcL+/EC50mqNvZ0XCq22WB3ddrdBuTlrO30y6lsOT0jguB7Cz36I8+GON8qXL19TUiJ5uUsxZ2Zg74TxG9dl8GkkUJlBk2zUHGGzaFlDh0Jfdq3LgNaqbqqls/fpY9DSFhIKFSZk8khi5WIdPJgbDHp++SUQH313wuqCJ7cccLX/cd27nbmflyYnldbxkv3cusIw1c6sOWPiffQ0TxmxiDTogXBfZvBIR2o1ipvyp4Yss60Wi0U42zl5eaygQqGZrbQ77AaDObc2mx2TOX8gDcWAVqjg6od4uZkV7zauzsuT1AhC6K3Zu/dlWMmy1YJOzJoEC0aEJgkTVV9SLEDh1OVUBwB4u93hFpndClKiYIZkN3HZ57rPI4j4Sss4Xv+KAZM0yctJKhZseJc3SzA+Oz24Eogj4cKBOnAEL2kAXhoNBWnTEhEKST46aJxGJVKul1o6UhHTFBedc81+cWpJini2cmpnLSKmYvhezmo7kuQbi14f0RNLw3S5/JTOk+rl1sHhT16dVZuzvHWNxBLqeq9m584POY08mMqkwmBnWHcKqZ6+vj48pg8zGqTCshl1TbSgqDuop+VzWEVms5VfroAEYCXukIky8sIjPH/q6iVH6rHLn/I4sxobszs+auA0vt3IbUgPRg5yVkiRE2XiA0e4NOYoRRosipoLsQhgXADYoUDL6aUBF+e7C4rzP7KcOzc5JTbRai2pTZfE0rOmaraojTaRvrKC5qCGF0Mi8b79H6ZyOKkTlpQeHe9p16ZYY8eOnQh01ZRvrzx+lJObPr7xIe/RskLEikOTKEhBo826SHYmZHOhkcxRAMD8Pb22Jo3ZnNmpgR/K9sMy/4zEC5O4iDhWFFQFo8zJfmSKUosr/KtrPVkZyY2edQ9xCfIoB71LbjLVI2yIgNRJoLS/LqlwJeGLsitFIiRVBkOXDh6QTTWVuLT1IaEyf8ZEZcnEc0pJ5YJygSSmVBidTrHIWXs8q4+dG6BMHWVUSUlcL4fTuC7bw1ehFtAX67YfOyHa0xRrfWdNBh8FkeQGz/aC5V+mcpIRPoSh6qCyzvYj/bihRKVAp6bPYc+m4aGi19WENuSioKYSmWoooLCqlMtLRiB5Ov0DT6LMm+RtzOWvK/syd0ljK6cxQ1qUWofMQqShzOtdsv81frBeVy/9HPdUR0FXuIOtGmQqjA5UNy5NYSmTozRXxnbFJPeliBakWPMtJfmiknxjSDAIxEqnRBVogGShHGhqOIjY1tv4UCqvoaVPFy3klcb3T9gg+WjRzz3PvxHqer41k1KUl4zK/b2C2ooJqx/ilPGS5J9ipzDSzQjL00VN4kG72lBMkADYCwqjcRYpLQHRRVVJXH8Zj7u/+XNiyi5AN4gcPW/c1PGm0xvfTV1ByngezupMEpyACjxO0tqfnFqWzEXqkJ+LiRrTIqJD5J0VIwEN7cR1XG52UKdj+HttSkWFUDl5dqBy7WyRwuhShJSaWoEaXcAidwrpqOB7MsaPh9HlLTliykz1JsnjfaboAG8g0heoXfnGG9nvPP98ZsZ7z3em1lH1BsSkqDIX6trTWTQBlK5LUsE35ndl5JjN9p6e7i55HIB3qw/satIYuki7hUAWj3JLVdGoLnz6/dYdUsTHulOF/tRiXd/pjC+TP5U3chn/Wg/DpE9AtpJNAi9pOJrMG8CwCZ8vNaXn8nUkhBKVVYO+fDNOXb40hYF4p+JcbKOnZKIlOyvfphWGKm/Sui2bF2xB+zeSApvzhBMeSuX460oLmSh/QSqvEGrL9Dnq8Uzc5BK+s7NV1PPG84LQG8+Xv5tchxJEmOfPwJCHqTPbROqDucXvTkBYy5VXWVQSg7vHbldvSCTxnj3Q1KTRuHMXuN9dckR+6vMoyg0npdlvo4QsDf8TiYTU3CgkruZLXlyVeoTwJqNMxhyfkIyUdThu8vPiuUu8vFJdBHa/P1zPD1o702NQ0np17HLTYnRoxrRGOWgtmjxD69EKSpxaErQ4lZUkaFUbnTalMyddAptHO+4YaXGqt07eV6+SnqpD3jDO9DXtqylfo+iVCdW9Na15rw8kl8IwqjgPbUTTEpNZVYx4vvmUju/5sKxshuSkwm2zY0ygkybx4lLFvmOaXVZn7aeacqQ8aDUwzKS/nY1aKULjftReUHZjTDmBxjpdITiZNws1FDmT8RASmfK4ju/39y0Kfuj1J4Vp4Q75hdinrRolquIONPNcZlEfiC+xtVnXWvLW3EgWnJs1S2lQVOaeDcvUTjQwYzQNh6/TXlim5QGQF2UFlS6K9g1Ufwq52rYTSnVs44Znf/9HfU5R+/YlySqpJy8HVQdaDeDnZKNZDePNDLLLaBo1a/R2Y7cIRTmaiJeoXZpdTcjiwX4i23kGHSo7fvQ+6iioHKl4qePxUGIqyM7xJkVVnIFFvEYcxYoSbmcqjzYnSIG4MLoouCTZX4e6g5zsFZJ2q0jstDuKxuhIH70DTG7gwIzJXRkTJRtmi61OpySjBeGcwA631KqJqQqKSHMf03cwlZMkZbv5gRdlo1OFyWWx3r3btZXEdJxkWCqOqXt8euHbeRmoK/E+x5AcI90OBsXOqKSk08IIxBq7fRD9WGxtiXTaxSd2NTWZg50iUxiDEUzu2+t+hbw69mcA1ggVCMbU6mkt8g9EBzjPRbhHW1v5GIZqWZfKU9HmjhYeuDu+kr+kzF+nInxlTjCGBmd9DxzLS4twAji4esNkS2DCjO4tML2WTrwfF3gkw1XtFLuVtgW5AngOpndTacEHZTLk/Xl4DPDySH7v2xvH58IPi4cPvqvNF8ViX66ASxBRIRMv7ddJT6e/vR0qSKoiwgCT77b1GNX2TsgoLaa1iLpdJ3ZZ9VlEmUXkpH5dwfswgLRZLwmlRFQq+0wFGbnlH/JUaBgqZLi83AU5UuSW+UUcbhxVNykQD8BnWQTIyUlrYqRcGXPBKIWQXroCYrjhmRPzWyfnKyXC1kok4emwLmNSGFGqUaJBXFBBMlM5dfJmWi5l5GhngBs1kHw0iurEy8F3Mxh6Lk5usndJJkHDGCpg0jhytbQAiJvOzkGxm/HEMjvFTcYt9m4RH44g7eIhkm7XLoPZrCQdIikp/uMHmNbAnepgjRpxTTjOL8iQVqXzeEwEjdkRLq+hsnM7hJ3JLfLWhVXo4UE+D32KaJ1IP8i1dEhlMY0YozAFVyQwaKxqKNHWalufbw2U76z0oAcPJCMdRmS1zUqNZ3ugMRX1dzllaJRluaBvZMC75BTp27Xrg2hFMW0HlZt4SzhL0AeexFbldTclcz9vZp3wzJ2VUtKOhDsiB2cPrTtQGQbgHT37DLt2icR5xFyeXvs+YfrP9KNLy5/qAQqo+YIMUpEd5fEizIdl8khdmWpBcQHeTykMVe1NgmZr1gFxUpROGZEOK9MqitkwFKCh2ZbLaS0awEnDQW35REFfnzSYcfvTNXnlu7dvDJLjBoxK2WJQW6FZpWBmeLBxUkhrmLS6sORUc9y0Rbjj56hy0HSOiVdYxlEtWkkRM/KzZ4EYhUyIJGPqzKwUeSrEGr0RAQk7g0Lblphwl9pmtjUhkdehz6inCgl/gTVKxwuANYoqCb+Vz+ehpfToM/C6ykyeyo1FzWB7kjkBVTbgVK084k062d//T9OfXyGymNKFDa2hHQZXAAyuqNTOmuEhdCgZLmxwR0HV7rU3eoQn9I5usdiQWwEpVmEWX0dKkfNHsxyy7RG5ihRveb11xzoEY9D1Jp58fyo30idHza8UNhXXcKN98f7+fl3/mRh0sdhg9BnbEklZClhO3t6nNxjcVn0r0QQSY4RSao2g2HVhVVEFIZ2V0QY0HEbQpoymGVOwiHRiv1CNrJjgh73Ac6D/ow6nmASaSJFIYUaOUJz5zRmab8JnwpM7SiaTU2zRDRE+It/Nb16XmVOyZrdsxoypEhJ4h9AuM5ShUbGVn6J4pdC8Mbvl9u3rgtASLGDpBDSbNtej2oWeU7orK6JyVT+6eKqs6R6xGe0IPWoY4QRgdEU0K7oNZpvGlk8K7B5QOGLipb7b0kcPrDQVbD/NBAtMi0q92AY0b+LZ9odzcqUFufQ4AGkOVDWb0wViLroPqxiLUgS8iLVp29MVKIzQraQWBIa9Z6+kFVdm0WvEJNMrulBvyAru3htsaSHAWwq3mOKNYls9ml676+t71+FNYVjAqjg0uUrejDYA2oxIm/PoPEA/ExRlEZkLToexl5YZhiiMxtA8td7gxmSfgMiUbFUqNUOKk49h8qsqoR+rwNRHeOin5XCjkQHOflJRSTxVgENNPAedIFSJoomoFAwkEClRmhzUI7tDnZjLIybSyYHJmBnQ9ScA00YUKtgkx6jucfRgXMqzu+OB61Tc1Ap+y8rXkrwrGHkfTsPZYrOIfTsr6Lvg6ChgkjGenVKgFU3aRBip8x78PHySEXaRNZi09TkHu9ckvCDamAY5lSp69Wgt1WgyVEjn1XEmpJ9GmVXOSAsqGDmTWcCE+Tw0YjVw6iIAbCLpnfI4WB2anAlWoUWMKsXwIqJtklYoY00YM1ZrqYYYOV0xJnJSmVI7I5NITyUG09hqPD6kfX0Wo8Hl9OkxsLDhvuueSc6paS248SvvipUmeO1kTZv5PWfvy8Um9vB9FnDGEQ7tC6WIn4Osn6zjHIwSgTWYYbNhzLi6t2uonTbRL62jzeMas0Hk7mI6Hct5C/g4RYlOWVd1Um6lKvk1qOF4LprRmQHvfmKqwhWtQciLPHw8xwvPnba91BzI2CxD07XeqEb/MAvg0gTG86NfUVsimRyFW32B+dmHwPlwYxZB7PbpNwa7GuHySPn3fsXhBst33n57ZXrI4TK7lGr7TjQu97OAizuljckq9GDwW9B5Q2dv6jgrqgxFjIL2rDvVPe8MaZQEYKjIkNplbjKL9O1E0I32HMyJIhqogm8iJ5XUQ+H7S6PMEUzPMIVeFPyzMxlS3Cr/FBtMVXVSRGoi25/NIyVKOFnGLeqsSx87MLQHUEUYCzsXyMez09650VvDkHYHOuVsSrWSeCYfpIcqoPM+eoof9Dxw49u/xFjAs7InY1Cc/arwfsiwKUeVy+GeAlPuB2JTBNaqzmsQEGG1GQ1u9mVoTxrdEU8yj9lt5qYmkauchMS5BIZeHs/JCcP2mAqC8XjLEZ6KwayHCvOQXgQmmdkMOhbxCb4Ns301/A5SLG4nWdDQLnF1t4zGFZdftCge1sYwVnWKeg8XX0yCSicAa5RtQpKnNTH9kN8IvDqG1H8QJMVrOnbypRnwAfrDcgo4/LqJoG8cz9TXwE/yF0IvbYxpyYZB+LhicZsIHUcJEiQoTJm6Q415FDPqiBVEYcAganO4KqcPxyWQ7HUg8CKuH6oATcoAXJZEcDqACVzQei+iBVCnYEKyPNMlI1Ua+Fguo0NfQYbP2b4UbOb4muXarvyYyCXMRfx3MfOHSdGgGN3sVmVbgHRo9xd6j7CH/kKfZUSY8ekoO5k6+XFpf1wFwOF41cY+ytQoLMkp4gZyHFP1BXq3y45+JXjR7FsxjAAcXhQPqX1IBFjd5kqicGEIIOd1kJlfn1vAp1MiXF6kP7IiGeJVWHYE8tlZjBgqvaglTrvD+TncMnMXyUE+3SXWD6IDbPgAm0uSmckVWPdhQtAm3iehsxUXXYhOAkm1GO1GMZHjlyRLW5FEW/exu9md8EcXpEOXNxSZmmHOKOA4U1F5mslNhe8JhZDLT6qrtIZIjs1gs+NAiu4a0g/ndBRgDNjxY736ExpktzSeuExdxa9gq6WnqzwMPLsgr+6f4fiSMjxIVbYCitJTAbeEVOagWYbqq1cg/J0aK1J39p5uLcLqUSOdY6Jmgu12h0/U021YM4b5gg8ml6FqihkNq2M5KYihORzpJrKx1QTLW4XIlml4vYW+iomPDnimeAHaPMZzSldK0f9p6lsO+SowGNDlpvep21FCTLyr4IipFnTaZhzrfvaEeVeTuKmCSHrbaSsmNUlSKJTIfu/AP0/qGnlAKT+6Ap3PwQXNuM2WVvhT6PKT9AZIkdUqMoh9jt6uyyRnL0DHLlXJFKJdIm0O6PuNtzrB65BipQMMYBNp7FkkO1TLwAab8jANyaRXIfPANOQgeMZ4Ggs4PefTSLi+MRl3+ymJCwfXkFpM1LpQs03cz3klel6GMSwiJzn7ul1ms7nJZWgleQ4ZgiZ53+tseajlJq/qbFyFjFY4/ukzPGpjc6DKdCQzzyQn6V37Cki5xiyyOX12tRu3dBWLPWiDfzzjOI43oI3ZF7M09CxsU7UNnQ0i62AJ2RiSbCZMDnR6nPHgM0ancmDZ4vGGBiR9GHj7YKuDqRglIxldmmwSMLrZpl6HctSEzTBg0FxOXu51uNwGt8amDzDHm3w4nP39IipdYfhZ/WdPIqNFewP8fjr1soAGHxiHyCWv7GvaKJcYrEqry2XsRXfbmN1oF+8B1SK0NYFGeOwR5KMXO19Gqlx2zFrZlCL9kxtJoKvIVCmFgiLZlZjZjQR30u5VJkgBx+VFuYhiIuM5KmmNK8QPyqrNiKlt4u5jowf1hwHDvkiZaKC3W+92mzVmuyUdljCWvX8/A6cvjMmJePikCgN5wMjzAyr6g6AfcMN5u9TvIc1iQDEM8yzqnp0Yw7uSC53Axh7/RWfkaFPJxTyNgSzksEiefZC+55I15jLXku0yTADQoLYK6VAdcxDEAODcIJ1iYXKKGfnKlviStSJrAcyF0WxzYoa+24wRrZFvdjUMmLa+IAiTdKt9NrjVbidewNPliHXScwrkGARAa4+UU/pPXfNpCrj/LD+PHvxcIOqWFZNykQFtOy6Ds9eWg+DmqijMemEJbUXdjm9oafrmAnRC36w2QvNrYmZHSjBcKxPmIME2oSGyUsdcd+NZlBaYIAUsP51dgfrEot//eVdNODdk1JvRuyfW98LkjPboL7A028gSJ7sRh7JsbfBZKkiGzN6UlUuiJl4SYu9cxGBS1VkAPnP27Mnc+lzBMYdsIw5hsJlFkBexU43ixWX9yauQ7aFLaDcOPb0Lb4jqoKxpUIrsLompL0/2ix9t38Gc7T/DZEBxIw6ggKVnmPQfnn7wJ7e+WnOyXoLmaDFKZy5xG8Y+L6r2XABMX4hmWfN8CL2g0JHZFIcySKZQb1fUVLIVWmS0TsvPMNxn6A+5AtE+uzCTbBe6DNYmcLPe2YvnZ9+X5upxXeFKKDOcI9mGWSi8iEjjcG8wkQ9+8d+H/teDP4+S3OPkJLRAeD8XRerXHvzxra8e+lFLS43ZAdWJ6pQYMX/wG92towCzFUmyw9zbo4dT12TV+MShCtLSatHbRaHlOZXjjxaeJtFFB9+94/cv//jPB7re0JF1MpfejEMSUCtQq4UtEHiq4747wJTGiBUQOuEwJZh5HHxQTII/+vEvflHzk4/eeD/9/fSMog1r99b8AGhfyfyseOI52G4c2ILWVrVaws6xjF6jKcxGeSRX1tuLAq3bgMYAo1Gx/Djpyw50WTFkcqwpdmjcT7H2/Pd7H6wkwQ6F3mlGDzvOhBlsM2Yh6z3cbvCdYIa9gl0l0hqjGg3nLkplm9qZ33HvZ/wdP6oB6l8cenWPwSCKCX+Zc/zMdR0KowMCj6ORcOJHtyYPI67f8OAuAkypgyatLN+ybhcgaxAy6gddlo4MvL0iP6NqzSs1gZqs2gX31p/ZnJEl09j1blygBwt19yoqYGH+CX11paD/WraCLYM0MyRH0d2NSRykMtHo7OgejGlbPbnPhc/yczPTMbCjSs/I0yq3qAdx3hSttYrF3d0hREAIO5svT2H2rzDdHllvd48Bky4YsDVD4bliIUlHa06FJ7PYs6BojUBrgZPhRJnehVYdn1Hda6hpuSp341rQDl8LD4EvMDvoKQbQX2YNjlTp7naIRV1CoVCL03gwouLoVldjNh3ENRr11epuBY66HrM4/Q0K064F2rGeHVvW7YP2QnsZjJQBp1c5IUXww9Dcj1yEHvTHaS6UmZ3ofQ0Fz8eb/xKiKz0IOXASDDi7HbgHGm9gqMyGQ5HasHp7e9u61YP0D9QpAwEG23qta+hpV2OqkjEA07P2EJvHdzctWzZIqzx4BRYp/SRCc7PIakXHgBuvqnc67d1taksFdukqvY0rYRv996FuT9aAkMx2W5uapujpOQPUHWEXvsUJMUO/wSlbvb2aLLSWXOok0zEA0/E69nhB6ZpY97JeBysUaPZ029zACS43u+lYF+2HprvZE6rA7tAzaa8Ny6WvZlHiID9EdMONotQtY00hyFmtRwyEm6KyioUIH1ShP1UPdi9Tx/JAXQpg7AzEGIDZC+npRzBx2SH9smUAbcfTOsUAS4EDK2UpKMJutTVwnG3WvTDE8O1hs4ApXmnL8NMy4T45pk+IaafMpu5tG4ShpeKKT+xXvJ+ro7u316Ep8ago3ASGsW5lLJYevo4eBx7cHToBzMsADkfFVYuhp3BYmMOhXoZzxSSd6GAd/X7P35XqYlEnziO/aAXxfrA9kN5uR7djUG1Udztwlgv+u7oCFZQlEn1dw+dYXIWWHnkJPRRLuv1l2Z4eihqrbVkv0PeKY8JW2q/7zfXtKTz6GS56Bbb3u6+4VttldfTiZnpBCr1IEQqgVDhy86Wm+jF5+jIUHvVK/B07P6qpqQkEagKCGsHLBTuCQ4c4fgPxdwmYLc9dagWzd76d19qatzN7rK7wobjkG3dztYDHeFXaftqXaAz8zvTVhftL6Gf8fEnAl//Dpfb9/wDgsRJS5bjyxwAAUNxtc09HTVNPRkZJQ0U5LjBHSUY4OWHwAJUAhwAAn2Nqysv41ubvwYCD8s3Q7O3+4uP+2dnn09P+3N3+8/T0paeqhYaJxsjaI1yRVFVZkJqr9EwvOjxAmKOudHqEl5ib/SkAucXN7fH5apzLN0FM+fr6dnZ5+vv9ZWZpjbDJ7HdtVVlg8IuBxsbs/jEC9/n86uvseIaQ27q+p2x2cpGuurvH29zeVmNy4ePkqayvJiYp0tPV77a3tNHiTnSSSkxRioyS9+bnysvO5t3j7lhE7O3xu7y+7GdZaGtywsLF+/37OTk9LlB0THOozcC79vb+xMXLQ0RIrY+PMjU54+XpzdHWjpSY+DkS9vb5SUpN8PD//f361NT31LGzsrO0bXJ52mpxTlFWDE12P0FFMjI11NXa3d30alJuWYy6DA0PrrC24+P1+vr3wVRPETRLKisv5Ontvr7W19rcp7jI+O3wzNbm993btLa6NTg9xsjLg09Tvb/lDyc11UY1LTE2Pj5CoqvCpKOh6jUZt7m95+j+dKa7+ff68fH40M7W+EIeoZ+m6T0lEBkgZ23KRUdLdGx2DjRppr/X9/Pv1tn9lISAs620Pzc5+/X2UzQ00Tki9aCV8vb+2jMTjMLa1NrT6OfqRluQ8vb5z87qUE5TJjht/fv+28vMMS42Z36mtTwxK3mws7OssKutfmVq9vj1cWVZ/vv6ycbNhKTHvsDB3uDhH0JZz8/7u7212NbW2trYxcjF3O73u7W8rUNASUVMNjU5XElO44OH2Nj+HRwiyMXFkI+Un8no0dPP2dXfChdN7CsGtLi2l5WO5+PkVlJQjI2JnZ+hMCssvy5YzsvH7/Dx9PP51tjwuLW1PGJ9SkYyNzI06ufyfn+CfXJ04JWe/iIA6CwR9DAN6Oj72Nf2ra+xzs/RbG1tR0NEICAi5ujoMTAxTElJGxka+/39/f///f/9+////f3//f39+/3////9+//9+f39//3/+P3/8///+f/8//38Xl5i8vP+CiJqnLXYsbDHPEhRxKHSLS8xwt3tZYWcm7P8rYnP/////P7+If8LTkVUU0NBUEUyLjADAQEAACH5BAAAAAAALAAAAADwAJUAAAj/AP8JHEiwoMGDCAv6W8iwocOHDskVHNeB3UB/5MaNY9ehw7iEIEOKHEmypMmTKFOqVAmxpcuFEglq7PCvA7kdr/zV1Liyp8+fQIMKFfqyaMOYAykqJbdBmDxX5HT+4+hxqNWrWLNqRWi0a0FyURu6OFKGAw8WG3TSpLm1rdu3cEF2LYr0H9gNaHhsw8FA2oMqVThc4YDDZgcgdeMqXsz459yXBKNymvYABgxv4r4Q81BDGocgMKSlTdy4tOnTXB9DVCgsHLRc3hgRmxbOc50H8nzIq8XABGnUwIMvVv0QKdhtx8SF4EABGrhujB4U8/ykTJbluzb8Fs69+1XiDiOX/6BSCNCyb0w6ZaIl7/YbMCGCeCu0wwlb7/jzEwXP0KC/DiVsMQEF4nRyDDTQyCNPGUHksY0CGOkn4YQr8deQQVEp4MIP3NTgTR3EhAODOFnssBCFPI3jjjvssPPRQBZZRCGFFob3FUMxZCIPNMRwEA4VJcxol0DGSQSWT2AlqaSSQgZVY0QTjbOQDR7cw8Q3DMSQkYRLdunll2Am6VWTjj0J5UAbAOEPC/Ls48UFCyygwHaogWXmnReS6ROeUH40jpq71OAmLAt8I5V3YfH5kp1F6bmnohdS9I8/ldThgRdpvJDHiS8KlyikLX3akqM9gXrUn2kZA8M+KkhDDAOVZP/Ek2lKmmomqRXayhBF/ihDSB0naEGLB5t61GljourKH64sKQuTmtqUIc1utIii06ylJYtRLDNMsse3KniRQQbhZgDut3tAEK4K7O5zgjTSsNqBasym5KxDytjwAAN1PKHNJsdmC5E+oDiAhSFkkGEIFmSs0jAWEK+SRBJ0aLEKFqvQUbEWtSRx8Qf01nvSvQ2lwsADHHjAgSqbbHCfwA7FYjAWDnhhgzF5tEHBEYzUUUcWGgS9StD3ZAH0PaskfbEhe4QscklhRu2lXUxO6sI2FWTi6i7G+IYtzA2hggUqawigzKQL7aBNCLVIYHQWF0OMxT1FCyG3EC20APJjTzf/VpVMHZyjyr6d+EVYTTtxB9YMaLykijSZ1BKEBhffI8TQWdSxCg0qfLDNMCY44XTfp2l0DhV17EILLQzsooQ/G0hoFB88+CWBBkJogPQq3WhgyN4Wkh6cPy98AY0HDJTBg8tsBRwcUkWVQIMWWQhhOca+j/2k8KhJ2UYtZXgD+Qv+AEGT8/lp608kQoBzscKGxO/AB7Fsz31jH6lJBQ1yuPGAFja4lp9kgj64GOk3yXLCPqrQAiwIgQZ7+MAH9OGOW92vNL2iQMLcYIOV2SRFHgnhyxTjD3SYsIBoa0gJLrEABnCgApC6oFZQSI5L8KAKgiCDIFowgRlAgSFHmgmt/8hxDjoRCV+P2wUhcBBDGQ7nAi24BxnkQAY3TEAAqwGOP85xjq/caFcsSAUHqlAIUDkRK+MowQgF4g8qCCEEq8hhLhggAxmoIVRG3Ao5yoEOL0amIapYAhP88gOIdImNYzqjVTpyEH/sQQjO0CEV4XCNakQABHZUH1L81Kk1OqaPfhxIojbwAzRIowoeQIeNDqK+hyjSKi+KnUIm4UCH5aIFs9ABCP5gAQtEQAQEaIQ6DCmQrzFyKFsKSaJYgIMbPiAVZ2IlZF6ZlY90YAPjiIk/xuEDIVyODGUYwhiaoAMr3EIHf6gGCX7JBj6MqphAwMqRQPKRhrQhBhXwQSqjif+haVJzkbM6pj90cQ8HOqMOLRhEIHpJgib0AAQg0ME1LHANHUCCDfHAozwTEzBzRMIeONjBDoyAg5QxgJjSdMk/rxJCjSyFHBWgARkeWIV9jGEMVojARC2wzh6IIKckqIZDL5rCUMWFHO7ogjfukQdVLKAKD1AFSvup0pUOhSLNo4k/FOCBSGLBGT6YxjWo8Y4dyAAEeGDoOkFwCxAEIqh46IEMbpDRRcUEhT9RRx40AI0H7CJluzAqK8Nk1bZIKQ1V0AAMVuGME4yBBDJgSAfYQA2J9tIC5IRoD9JpgT9g8o6NChheTcIOf1zAm3SAgf9SoY5h8rOwz3uHF5yhBTr/rGIICvUlARyyDE7cYg4kYKhDzamDJljAkphsRCthghV1gIFyU5RALnKhjKnCdngCoAEWBAGDhCJDBxGwJBseYg4nnJWXDP1DD25hBYmq85fBNEqSevIif6yBAg6YohwEQYsKbMK61zWNRvxhjHt4Yb8PQIUIrjEGXkZgvIaMhgx6YFyeXiMC6wVBBIJaUWDyYbn9Ock4sCmQHUDAYfGTgxy4sc1k5THAM5yKRtLhDw+oAAJkyMUVMOGPBVshnQ9eFGV1AAzhRoC9m60GRS1KgHbIlyRiYogJKuCMb5JBGoiABzxcDGPFgNAdI0aHMULwAfy2oAo8JoePHcwGRrWk/w8TvgYJ5tzZcooAnccd6g1ovKjIiKmVSqiCIRzgAA2Q4Q3qYMcmnPzaLm9FKewAgimGuQl5fMENzKEAE9awkHSA4Bo/Fm+UWwKPKYxBznQmQSAeGtHgWiCuc3UtnyAghIc5AALudMmLHR0UjWyCHWIwxTeWYIYqHOML4giHBGAhkYVs4tM/9mWbj+iSEQB3ztimaASs8NMNK9mzcwVxVxQAAYM1TAhtoAuv39KRTcCDFM3wQAtGkQJhFMMWXwBHThLFhx6AGsjTRiRE3jEAns6ZnBWesy6t4Nag+vKzsgbPFjxht9yt4gCHWjet0qSMB4SAF84IQQWmcYI9cEMBdv9pSL/xcAte6iDgul4BMP6wYQvcgg230Oll/6CDW5yTl+8F5jL4Q2vKPZACGLirxhmzEfP5IxW00NskroCbQuzBBxBix6ca0YO4GvflzXZJJB6rgzkHYrx8kIEIFsrQVRPXuNXoMAGiIG5/TIAbFKCBM+gASSYu/TQukhIDGLGPB06CDvJgAgSeYKgBN6QROrAGhS0A9uUeQhIRqPktwvIPNUy4whT9gznbW0meMvm/LwGDHMrghqTRoQpO2PXfs+Iif7jAA9PYgyDkQANXVQECNXhdRaTUEDXowOsW6AGEXfIOAJCg7A1dPkzYAIniMrSio/e2UHtwUeI/RA2KSBgIDORAhxqYIOP/s1eMRdo4DRzQQBCCWIUi7M2AClQXCC4rqj+MjwcQGLcHN1AUFyAJNBdcIGAOokIOpkAAIhABl4VZOvBTm3VcmCVXAXgUIEACY+AGgpALgkAHm5J+PzFaB6F15DANC4AKq/AFcnACLGACylBa/8AT2CQqahABgeB/FgACudYSkZAClDdneDBt2qIGBLBLDNVZPUBc6NVZnxUVasBLfzANcVQGLeAC6OcWLnVBLnUY8QQEQDBACDFi5dAMhcAC+yAIX+AMpgBEqdEQN4CD/lcNIIB6UOIPM/AIBbiDxmFIntd1l6VqbHVOE6Vkl0QA1CBncyANNnAPgqANWZgSYDiJ/zsxQJykFJ5UL3/zJ5Q4Yl+TcmykCplwB0vgDCz4AeqQOAnxEHHYBDooAik0X3bxDoqwTk3QULtFEC6RDtRnfcGFfT9lWa/2ViQAABSwC0/wAlsgeyFBif8QhjNYTFv4IiToKMYSO/OFDnUxYDjgCgxhDLTwCoewX1iARWGIV8nCBk3gik1QDSKQKAoxA5+whwdYF24WEeTAgA54fT3XVoGAB3jQUNNgA1XwBPMSFB3hERkRFUU1T8XEPfdIDunwDy4zYvfoCk8gDtxgDMXgAdLgAu/3BTRwCds0FSHhfQwhA03gWcb1jiFGJOZgA750i01AANtxj0DkeUjIU3Xmc/9zNgZVUAFZAEPlEE8/8Sn/UAIKoADKoAxL6RHn4IYi8yka8gNx4kLSoDImxQQVkArboAzGUAUdGQQe4AE8IABxJAcgoxFAAA8gAYb65w8ycA2eFVwiIJVspA+z0AQ1BwIOCRKj5g83EGeXdQ3XBgAnwABZsA3lsxJU2UwLAC8eoCAPUJkhEBjFoA2pgAakgJeRARwgdBgzCBM78APGwACZQAjgkw9lUAb5cAwwUAaWcRn5UAuZ4AM2cAqykAqFMA2vgGNfsApYJBBGCZgp5xAyQAIsaQGQsBDYQg7vwATAEAE0mYsnkSiTVVkTNWdTSCXyUJLNCJfmoxFRMQ5msA3/kfkARyA5tZAP8kAIR8ANQVADhKAFT1ADbuAGRyAPHLAAMVBdGCErIxY7W+g3nJhNW/QNL8ANmRCbrdkJksMxQRAEEiABtZAFElAH+RAEWZAP4uABFRAEITANxXAJ78d7UiFEJPEQkPBwwdWc6OcPerlOBoiAKsFvBNADPDUHmpYFCwCeIJEmX0h8I7ULD3Ad9OkBdcCfWSAPV5AFD1AH4VADWkAIkykPGOoBFuoBTGAE80IO+CdLHlGcinFNCkkOCvAGVZAFljGhdSABhBAEDxAEtXAMQUAxbqAFSZAPSaAFWhAEWgAD2uAB4MAIu8ADFyBJh/Afa1GNF+EQkIBc/y96IroIAdZAnSRwDTaJJP7gDjpajCdgA3WwA0o3hrGzfuPgAmCgpUfwABIgD676BG96BYB6p24QBOBAp0mQBUGwnm5DCNxwBOCQBNywAOcnoErRGEbpDyawAHMKAx1zBB5QC1iaBRA6MVqQD3Swp8fQmmVAB9/qDbXAA5chD4swDB8Af1jAaf+hoiMBhiwqqcxJqWwkAHBAo3zIjAhBDmwQkHgwDUzwANKQoic5L+PAAhVwBW5QA1dACDUgAUkgAdnKMexZCxLqBklwq7UADRZaoRJQA5bCNkkQAsaAhdv0iUflD05gDLsBAw/LsNRTC+2pMRk7MTY7MRLgBjmbsf8w4AO7IA7iMwy6oAJCIAfOkAkM8DoS4ajPGE/xqkuT2oeoQIDVqa+sRA08BZS7kAWbIoYJEZXfYANPcB1P8KR7mp/5wDEQe7MTQ7M2O6xtmwS4WgPycARVcAQwQLImsrRwcRhaVQI84ANloAU1EKUPQAhz6poT4wbgqjGtqTGWUQad0LZucA9g8ABfAAMVoA5b4AATsAer0K0PsACiE40FqkwRIQLVALXzylz+IACjgK/16JjkoAM8BQcUQAGZMCkbAQ/J6lKkUIMK8AIecAVXULYaWgYRS6F1ULNlUAfgI7mdkA/50Al+SgesGbFuu7hHYLd1AAOZACT+UAKk4K7/WBG8UuIKFAA+tUAIV5ChcyqxjJsPsRkEOsKITGAMxlABTLALDEABPkALX1AGC1AKQSAOrSAGTEAGDHAC+QAN0JsPHpAKUUETabKiqbu6Gdi6EeIPH6CHf5Cpm8oSOcBLTTANJxMCOGACUYkRFAEwh6EdTvAD0hACWeAB8eGaWiABR5AF4GMZEvAE8iANxWAMcaINVPACEwAIg8QND/CwrIexixsET+ADRwCfteABb4ARZsq0IlYC/3EHDzuhx/u+OZufspkPIcAAL/AGW7AEsMADL6C/+2sMLxAMsMAB4lMMtfAAnfAKG1AB3UDEmQChHPOnxiA6GhEkqAsR5wAC/9XwUHMGozrhD7EQu31poyMRMOTQoiQwB0xgAxJwAp4QAhTQAEqgDP9lCu2gVTtwB0caArLKmn/qM4EKDjVQBcYQDMGQxHfABKFsA0S8C/m7ANqQB3kwAX6hrcrrpj7TsEkAA0dgDNX1N1nhD6rAALVwBCHwK0aDn80LrSD6Bsy0ABwQAldAn/LgAcSwGR7QDbagCKXwDLAgD7kAA4yQAyaAe6+gC7QguX+Kq1rgASxwsvS0XB0AyT3wqTBqJx/8ByGsqduBLezgDpFRBNAHB/ugzQywBg2QBnbALh+QBhDARP4QAz5wBR5ACIQArhHrM/T7BAywAKnAA3fQOhUACP+iYAwgRQR3kAynUAEMYAxM0BdMgMd5wABXQAccWge3mgXc7AFBUAYeYCiZeJT+gAYLAr/t8aZZkK2EYANvgAYmEwI6wgCy4AeqsAUIUAQ3cH584AuV0ADSIAyiAB3G4wqU0A2i4Ao2cCBJAA5aAA61oKEqHI2iNBEgxnWRrKNNQMn+gAHTILuabBChGRlsIGd40AX00Cp9zJj6rAQHYAd0swI/ULyZQKut6Qa82poPAAipAAZMUAyF0Nc7EDjjiwslEGz+MA8I4E5iYAKuoA0U4AG74CDawA3Q+6ZuU5mEIAHgoMJAOoLG4g88cAWEe6TwmQW/UgaEUAEsgAYVIMv/3GADGMcQTkAKBVAApgAWQWJ3nVCWMBAKC0AMw3AHIdALyVAZuQqox3DIF5puGRHD/mEUatADkawDQrVbDHEIn7CSIrwd57NG/oC1nzwEv2AJe3ACmZAETEAIJ+UPfJAKpHwPSxqnZXChEhA+IbAARgAI0nCoOZANBoAR5oCAy4AAlyAGrVUAAWATKVcA2fAG5lwFd7ANq2qhzJ0F9LniWWAELjyDXnwQ750HmcOwv7LNqikBNqAKqmADhCAPxjAM/pAABgDk/6AM6o0Nw0QRw9QCDEAJhAAD68wBr+ABxfAKQm0M4ZDiEtAJ1quzOrsAiHFNYsDJXXEDtgte1fAH/wy+PgwwczWqr0hluyQwAJagCQ6QATOwBFUADkeQBPJwfgrAAxPgCfcg2IXtw2VwBBVgldKwAK8gOv7ABawQJAqZ48sQBT0eANqxEeSACzXeK6lwSi+ABi8gD/mQoT6DuEcwn20ApmEoSxUyDoDQvTgcAhX6BIRA1TjgAqKsxVJCDu3ADD++JWoOBdhQDjqxAerQByHwA6nwBV/ACOBQAclQB6lQAbehDTSsBWVgoRkrsxrKBJMimo1kFGwQXus1ncs3A7OgnBFuEv5AAP7KDUwwBA4wBGegDw1QBeHgBhd6BwvwIQxAtLnQCXVQBuIwrgtQDLuwAlHJFOjg4yVADv80QQ45HgnqQA7q4OO/ThEIEAbloB3/cQoewA0voArGIAF0gKESkAkM6wNB8KNMgSTksADU46SiTp8ZawxmoA1WSgWVoBYAgwEBAAVGogCkAAUGUJSHcdIaoAouQAi7sAvTEAMduQ2vUgzgwAHbcAciMqG3SqEibwPXhI442RALb3NWYEkM/g42QJf/V9nKZA6e/AlVwABMcAijQAFDsAZ7QAPt0Z7w+cAcAAE0AANfoGMSfAfD0A7ZgAsuNQ5QEADzgPN2sfNTUQ4+ThO+69tsPoM2oQ4uYA8+IA1mwCYw8DNBgLgdSsDbRO328gJu4wPxoZ9zfgUXYAYcQAgvkBb/p6AKstIBThAABiArCiAGbh8FYagm2GADrvAPDHAKOLALixAO2tAM3VD2AIHjQTgqPzzAkFDHTZ1aErJoWeDv3z9yEy1a7NDhnz+OHT0S+GMBRIRqfwhw5DWGxB8S105ehAmTXAkdJEjAOcHBwylLv4Qc+rCHRpVwboIkyeXN2zEK+zR88SZtm78O5zAE0FORXJ8RWcdRXIYg0j8g5QoE6ECO3boCUoqU6zCuwyYnuPQo2CXP1TgGZSQcSZjJhwQYPCTGRBzzq78lR/JdkSfB4RFv3MyoqsHNhL+vJlIpGBf6XzZc5b5e2gDFADogcs0a8KeLm7Yf0L58kbaLA7lx/5x3HTGGQ1qZWlmCSFaYxbDcca2/xvQYnSOBJiJ1lGTjL5IKaywt9HBXEaboi+QI2MQjj0kIy0K6SPOECuiQEx6K5xIH4wsxDp5aSIOAhgM4G4eZAEr4Z5wNpEigHIvCmsdBswLYgLdyDGAFCHhaO2eDBBLozR8e5DEMDOKOCOIIH2rwJogYOPtHo8TGS9AfFkKQoAZCUMwiC28YKOKNJGxIp6K4yIkBlgTHKScMVooA4h/UVBOvA38MMEAdHDIJZZEQaMlllweWK0cPA2SJagkmtNAiC8mCqKWOTNDwZ4MNgIgyMemio84CEa6LIDt+4FipJQLEu4g8i8i5xQISPv+pgoknjPFnjQyG6MKSD2ZwwIF9GFAoids46CYJTzyhARAhVuCND1YSIAsI0igCC4G3KDpLxg4SKA0eeP6JggtcnABig438OKICf/IIIsU6spBHnlxC2Cw0Y2e0qDl/FKiiDEI8AKyOOmDYxR8wkjCmCASgaG2DjH5QhRyN+giggHLIcSI1AxD1x65y/HFhEQgs0cSSO+RRhpxysEEgjA3QyCyGCvJxA0XkJPDgmzrvfC4mcsTb07zqbgGUDQwGkaSJ6nowB9Fsy+tDB0dxkuYIVTbwpx5LcvkFlQ/2wQKLIZiQpxZwoILGAx8sWQOHXSxpgKNo6iWLiye1CutWdXL/raiERLDxh50O1MGGlUjwzGgcUhqowgZ/fmjoiFoeCEGLXKRJMG1sLbKTgVpquOKKILKgjAl/jMnixQ0MQADB0NhRBhZlYuyAFQNOSy2BikIjhxU9gIhCmQU80eQXCDhgQKICWMFGAXL8UYYbeWIwppYUm23IjdT/sXPvxUKW4ZprSK4mghsGLdSlwyaSSyYZgCEBDw9skIcbBaxURghLOLBkiDVCWAULB1TgoA4JaslDDSFCMGYCOzyJt4NysmEFwaugwNpWB7dGi7ciWOkDb/zRB1bYC08KIkUBDNAHBnDgHHlwQ48qFq183IEqMdrbRPwRjGaFAEdHIAQMUmcM/wmwwB8lOAcfcIGLcfCmN6rAgUbIwQUptHBKmkvQBs6BAHv5IwZ28IIDhtAGYrxoHggwgBiogrMOeEAeS6hAitwkGYdQwR/FylNiQrMnjpBDBi0hXgR8MQhrNIEE30lLtmQ0EXKYo1EkmEWkJEAF0PRGAKT7RXxUAI1VOEBo0siEBCpwBx9o4gstsMQWrigGIDghAA3qQL3UQo6smYYcZ/kKOaBwtRRarhzrAEJGSKEHXBThY9JI3QLKABho1cEb4HhRxxRjEYCFoBaZyAQhdAkODiwrCyaMi1wUgMRQyggHdPrHWUyZLyjgsFhFwMU8KLICexwCC/W4gwc2UAIkMv+RHTHyhxM8UAU0MEALhDCOG7Tghhpo7Fp742IXIWGB4QGqH3OwiaEQ1ZryICIQNsEJB2qwhRI0zx8qcAAFumCINZzgGN5wBihAUR+/MMAGiJxAGr7iLnWEIQBQKAcmLqeRsEQCLskMAOcMgIt0+OMcuEjABuDBDjyRwgAJKAFcZsIBC+4iH0cwnzweAAMPpBExcumAsfxhg058qwZHeMLc+BADCZziihoJTTnCsq+4dEABP1CGP4oQAGyQQwFigAIuzGEOOzWzCGLYACAmMAle6AMMVkRATKmSEcr5oxJ1KAYluJEPQkggCHUgRBCYsAFZzuh18fyHCCzQhDAC4BH/NvlOyyaSRQ2iwCaSmN4DOKCAd/qDATQoHQ0ygApuBKEZKpAoDUgVBG6oIh2bsEMaNnEO0KGDfiVgRiK+AoQ+IGAeFZnQcBORJXRwwVb/cEdz+HDTDUQhT/4IwxV4QA4PaAEwT3gCOGAQkcZuNm3+2EYW6lCDTNThCYZlwQaewADnRoixrYlHAdZ1joz4Qwk/cFcisqEOJ6BVreYgRTxISVMMqIAe9PBCPWLgAl7hbBwF7WoHnKCMFVzhBbCoQS2AGgSj1CEVMNrbYyF7i2pQNgIWmAOhbHINGYhHlh8DgaMgZYMnvMAJwXxbLdwgBFQM4Rcq+MAC7nCHS3xAohSQ/0cZGKCAOuW2HWTZBL0M4KS0ENe45ChLrsrBDiSqw0BQQEdoivWhEqCNNysFQwh2oAr1GqcOD3hCFnaA4ot01azdlYcHevSEMgDCH1WoAuwwYVwHLckUjCsC71oYgxdhqAOkEEMBWMhWday0HFFogApUIAQhzEAXKywBZ7A63A3Y1AB5CAcOXhBBix1BCxzQbAbj2ZFNgKAk1HjxI/55xh6k8cbRiABATyCNOrjABAkixwYG8wRnlM4W8XHBLjZjikN4ARSyrcUT3kCV3JKDvx21XAAi9I/iHvcfZmEFkyIhhXlgAyvy4oOdEmAAIIA5LSVIQAD2DIhEv6CpzcJzLv+UVV4gv0ELcrpCFp6gBW744wWZoPK2MFHAckQpLmLgVQeAYI4Lw8IE8/gopvUrmislQB1RmIAXvJCBehwiDrbaa962uKtS+kMahVCANJrqpqNI4AfLw9auO9IBX/+BGmNwVD4tUGOPycBR0rOBaE3gut6kQgIeTAKRPTGEWHzgEHXqTQwy8ORw5IMBymhHbtOMJykEABN6KMcGimvSd6/uHFujdwD2JRcxlAAX/A5mjBIAwHudgwOG5kabjhPCLIT1qNHmRi2qEIIs7EgCqjBBHaZyJAVsvABVUtDh5dWbb/zACZ5TOQLUTA4s+cMEGtCEJ7yACggooQTqSBtW/6H/DmgmoCztcAIx2uCCTEjcfHXIBwUooqjEPJYiXGxED0qCjxREndjhgYk5rOCoODIAHFQwAWMV5IEkPCAL+QjBEAwxhCJzgQ9z2QQ6whAHb9NgsA/AAX+wsnejF8HLu+J6izBjhb/DECnIhnQYB3bYgLrQg9CwwF1hhWVQB7HxB1WQB1VQhcOqgyDIhCMQhxeQCFmSC/SqGA94gPUiF3/gAGmQiK7yB1I4AM8BPrloJATQg77agm1IAClQgChYnVbZhAQoAHVYAjyyhAz4gShIGwv8pq1BoulrITC4AieoADp4qjc5ghdJqvJCjI+Jp+zbPgDwPhpzGXJQA5a4Bjig/4AqIAQXoLKNMII6uAIfOIKF0IQPsARDQAI7QIXDSIswYAZeAIUhoIC2MwY+sIMV4K9/8KiY8rJL2B+/I4eAqx/eIAUKdBDRwEAnWL2k8ocKoEEG6IQsWIgjgIEroLK4eBm+wJgrOIIjUC8T6IUs2IyMKCZyEAMnMQCySBAxwAAe0qkSgIUcvAQjZAXeUQDDmwcgqAIh8IIhUAE/cAV0YKwYeQ5yYBh7CY1z0DQDIAZAqIQ8K6zjcDuqaB5sUbFdUwNAwQc1xCzw4JcpuAYSCAQKSAE4GAVOiIEdeIcS8IHHuIKEcAMJ8AQHsAQV8J5YcIK8OQcu4AIBWDsa8IB88P8AFkiDM9iEdqicJ9G752ohvxsHBAgADECgZfCXjKgQw0MAPnBHIFOCJ4gBNBic4wAMGDgx5mAeGyGcKog4QnMbD9gFDFCFf0mqEkiLKIgGy2mhjMg0RvsKZTAC1rHCpFKA/3EHJfCC0rEEVJgAE+CvYhq+c+CVAHq3IuCVZUCvBzABJkgCdEqIIJBLF4InpeuIG6BHfMonGTgMcnCHHCOBMZiAQKAnSZiDMRiAAXAEaJCAMqADNyCqNEAFL6AHVGAGL4iFvcoIZuCCf1BE2RIXbbCDqPkHe9MDMUBASzoLTQqAMAAzUugDXBBH3vkHmdyAHZQLeWEBVWAAGuQAaKj/gyRAERjoJXmRkd64A4R8glsMAheIAVjUA7vbgX6bCz7YBHXYgVfRFSBYqX8jByU4Ay7wB/1ySjFQF3IYmEvxhEPQhnCKi1BSB8PDhZzqOD1AgGxwAn/YBH/gBkBwgTwDjPNJgvlsjr3kS464AZKIAGowI2IrAa24gWEDAAoYg0AwIwvw0MX8hE9wBEc4hkKogLEbggzIFFSIhE2YC7kQTXXASFCoggfQgiooy3AKAATog0oavtXpF3VrNQzABZDyxnIwvERIC1kkh00wASPwAydYho7chiTIgoYghHxoNgJhIwXwADfwgRA4ghrQAhrkhoUrAgMIAGbog3LYBOZQ/wdlYIX8NI0N4IMPYQ5/SAXD0C8oAYJ5SIAGE8sMmABX4Ax2QBB1OKLLURi3RABsUAcADVAjkIcSYIAgKKxnCYIqED54bNCOIACS0IFbmNCp0wqrI4FHmIbNu4IuGAUAGIM5GLZ8ip5HaEwASIEuwAkvUIKWWbpsYAZ1IIfS9IHjYAInOAdMeCQn0J+0OIuAk4ISyLQihYu4KIe6wAXtTItw8gMjqIR2OIdTLBd5SAKGQJEysKKLYAyFqIEHIIQnSIIlUAK5PIcWIgdADQAugMs3zT9lkIJSkpcJ9BeKUIY8UIAj6gOcKQA9AAMhuBRLqAdAcB2YtEI9WIeZ4s+YUv+H0MgI3vCAN9gGqHq+9VKFC0qxT52OQKiGUd1HC9CB8CCHHiA/H5AHcJCHp1rIEKgCRUgBWJ0DPGjZqLOGxrSCFEACWVgCAbiEikiAMNiIWFg7CiCGMuAAFsgGlWScaXw3KAiAEXgkI4wm04iRclCXbE2zFvoHFzCCLaBJDUIDbtiABcgHVpQMql2S6zMG+LvZGvi6U6TBuODXe8UFVuCCEkCHc1OAq50HdEiqI7IXK4GFBUireVCAMtGDDxBLL7ADKxqH3eq0dbmXecCFdYkHiVC/cUAHv22iOjjQOtCC+cyg6otHPsGDlb2FfSQBwcwBOIQDH7iCiqNOHriDGsj/BTpIghrwAA4ohFcdg1id0DOyAGuQhEcYA6O9g1OIgzB4h9eZgW/jBmh4AnswAC4IAFZQgl5QAHW4zgOQAgPQtHmIAqTSKgTAhcNFkH9QBhzYBsvDqiLhgB8wAfU6jhrQ0s1QqktgP8h4gisAB2WRhzzwh83h2HPQJCmwnFTbgGtlHHbZBCP8MiDYgQrYggSYB1KIAgOIAxVABYJBBSZAgyZVB7UcFuBjHAOwknpNPOIrgAbIhBAOgjzLghrQnSuK3eqLp+BxWZaoBhAghymwBguQBHmogiHZgJLliCrIhTLIBfz4AjpgRQ2AjFFIgRSYBVkNWg+1hkf4BMc8WleY/4G12we+hQA/KF9jWIBvmAdWYIUd4BWcOqnmUJcEQIfd5A0W+AEXOIclWTV/uINy8YE4geROMAIY8YdvUC+hqgEhjoFvqIMX8QdhrddzeNPWKBvWSSpuxJDTazVSqtASeIEVKFJS6DSd0YQUrYcFWM/iyynRjaYIvrDhQ4cS0LQAiANfeIAfiAFCoIVlfgh5IEXOKmLmCZE9QeLomQUAsIFimAIAGIBtWIBaIAQcyDgzCIIySIJO6AQtroA8sIE74IAHkAwN0IAHkAfmdV7M8lBgmN7q7YIWOAEfKANigGUO4IYdwIXyVaH8dBc1OyLj41cTwIEtIAXm/Ici+eSyUP8FXAME74ogwlAWDfoBN7gCgaqBLHiAcbgDbmgHjojULorgc1jpcSibRx2HlysbPbBTMbgpc2CHbTgAdTOBDsCFzByCONCHCdiFAtMvPYgHdqjhcBXlfzCHItCDgIuDBvCDSjAtGygBefA81s0EE4LmaFaQ2fUIGQCAV90FY5AGJoAFJpCGVFAFHoAAO4iFS/AHI8hiOoABdC6DPKCCXuCIfyAFNFgABvCBwkqCHKln5p2Dn4VeR7kGW50GN7GDXSgGLsAEP0AiVhC5vCmHhu63c+iDINyMCL4XdRCDHQgDA2CGjYMAVViC4ygOWoCBiosLf/ApQgiBK6iBIKDBKlD/lnkogiJIi5aWjg5wEh7qztX5QSAwPNhIhQZAAHtggJ8eAnp4wnqogEXgA/5cwrTq5U/ezQJIhK71A2cjhXZY6VSoVAaAKioihBOL5qPaCC66ABWYABtgApoNAbppARe0gRmYAQiQhma4gD2ouRP47xAIBmP4hkhwh5X2CGVAgzdYgHc2Hwm4hxDwgFf1WaBtiWlg8DqwAWOwAQoAhAYYAdgAMyZZVCZygW1wgUEugXkoAC4gDVyQAgbRA+K2AW3Ygd82rCv4G61+nb7gBg94ghpI0A0IgW1ophWCKSzRgwKAAuM+h9StE48q0igorsv5xCJNBjAwABvgABS+lJr7/4Aq+AFeuQTx9MFIJQeqDrgRYIYcUAM+mAhzaA2AeYIdeAFCqAFxkQAtoBSXqe9F2ZMdoAJt4ADfDhwfeIAW8G0wblcjuINvsIFu4AAbsCg7FgZhuIB6mIBUSIUf6IXgTD8uJ4epEgVpeICEjKAr8IBpmAYAAABpQCVUMoYTGAI0t4FU2GSF2SQuiIfyNIIGYIYPyYZ/tXIoSAuFKYd/Oeyutp3BaRMT+jMtoOcml4AYUAVYjOAOKIEiIG4o0AMzwZJ9M4B1hwIuOIMAkIIDoGMD4ANlEBZVaIMEmIBiaAAvMAQHkI8JeIFXYQfRxSmqgAILloI1iAbSOowIZIeZuv+wKMeBJyjBzpMABqCVRYeO6CCFH5AGebiHFqjRFXiB332AML2CEKCDH9iGN8iEL4CBXICBIICBCkgFKpgzkP2BZmgGHpiAD0iDNDCGgmgDHnABAQgGXXgDKmCAyMgHOgDjQKsCXmeAD/CCFQCDGFiAF+CBYDiAg8aEutu4wysA4i6oaj8qf8ABbogEadACOBlBLRi3Sn6vwHkCXWo9eUijjxF8B4mS1+EvdC+AhV0pViDmEWAFKWCGeZeCJcgGTDAGCBi7DDgEVJAGKWhNxgmDeEhTBGCFMIiGfmsjeDBDj3gsDjCGebVFw5KAKiBFkPcYj7iEC5CGl59DeQgBQLD/gV1wImn4gSoAnNdnAQaw+U5YSHT9gROLAnWodn8whSjAgFiIhcsYBlXQhxnQB33gAV3Qhl1AZuC3gRAwHzepAgiwgUmgASaogAXoBRxgARZPTQPAhAMgxeZg0ncEiH/jxv0r+M8fCx9mKiQJUuuIhDLN/PlT9YRQlStPjoTocIeDP3IGBXYoSFBgyH8iy5UTWKJPtgAIEASQMmIErhXyfFTpYsnOjDTFhhXANQITpjMr/BzIMUzJsKhSv0nNoUrVKz7SpP3zkOlIkCxH5CnzN/Is2rQGy1H0V4lBjRbSuMkLUUPaFljSUhnrlczYFUIvlOW58iVfnSxuYrywceaM/5HHDRpgOnCAC7YCBaBo1swZWwM/w1zwQNOm8QkVqCYM8UJjgbAKCxb8iNPgzS5AJlKKJOe7bciQ6AyS82fCBxpttSTUqhNxAcVtda7UrZHFgz8G0sZt4C1SpcmB4scPJBcv2hmZCVStYNLpiyZUnroIycBEFqYAAeJg0sNC1TBXvTLggCwUSKArrrziijLFVOFPFZk8EcQRT8izg1lqaZgWEFHE4wQgD7RAQRUPhECiBwxw4EEwMSyQTAE+aFAFAxT84A0MWWTxBAsvbDFPZ0EK2VlmBWATRhjY/GAMDjHIlscC0jDggQdVgDLEC8VIk0wqL/xgBA8x8LUbcGWaCdbcOAz08oMbEmhxBCEw7EIRDlp4wMEV1oHEARP+dOePOuoAylJIvpGDDqDnDEcQEAT5Q4of9oxggD3iwJCLDxl4gcoQE+wSACsjZNMHEOUIaipLgbK0qqqB+lNOcdpgJ00NVwRRB4WqZLghrwZ1WIkPNYQQAiEhmOjDiMVMuQ0fojzgAxP3aCBNHxSIc0QWD5ixgK6BevstuOrAKi4QGwBh3A8xbKHND6lQQEEFK+4DSgWhiCIKLKnkocqfaLzQh0jjNHoScQGPI5I/HTAAyxZZMCdBEGUU/0PRD0E84UGeEjDgDzfa+FMEyCGLLHIJJZcwcshA+gFGHDZoIY43VQwByiB22LALBKcoQw6r4q76M9A9s8WDPP4U88QDdWB7BAu79rrhOOWIsQB1PNhgDBgktrC1DxQwQYENHtTCTQkYl8GNNDAcMZYy3AIaLtzeskSOt35ukwoPp9kgjQ1V3EPDlRM0U0EqP+DAh8/+4MCDSkGv6tuq/0ShzjnS8LBEFnVAUwchZTBQHBUwIF1DDUFM7IE28xiwOuutu766Hqsn8LoUmOTBQyYwdIPxEINAUMw0opyBjR7Fx2488skrj/wZ8oxTzBEPOBwEIbo+/TQ5lXBwjzSV4P+whWw2tFDFsOPfc4UHYHBAyh3n5yKOFjUc4YEyYKxRwPL5669HAY+9YUwFrlaBFqzCGTQYwhs40Ao0nCEMUHjgA1fABc5AsIIWtCADgtGAOnSjFmHxhjTO4Q8ewOABHqhVHU7nMZZEIVU8MxW4ooAOuqkjHt4ihQlecYc7xOAUjIABN4iRizJ4YCvS0EZotsCFJG1mSE504jyad45iEOIBEGsIGpx2vbSMAyHBogDfeECFClCgBRow0RXGt7UTPGAYb6jBA2DgjU4Q4joKAEN/XqfHPbIOEyNgxRlS0YYFvKACwTiCN6Ahsyy1AgeYwAUkI2mTSFKykpZMgA1a0QD/QnSQOTCQRnF4AA5oPCATmdCYP1D3qlUBwVC+UUlvemMQc3SRHNH4wY92MI8QFUIe8ugGNGqhCz6goQEG0MM8xvGtKHgoVd+CoaHm5o88YMcGV7CVBCTwBBdocYtoIQcafGAiCLxAGhzggN9CII8HkG9rFECfNszQgge4oQzxq4M8LuE23zwTht6CHEsKQhFS+GIECYjBDypAhatRIRgegMExaECDOxCOBTFgwSsJcg4e7AAIAkELEEIa0oKQwwk2MsIROpgYGGzMHz+AQR1O+BVpcAw6BkgATnOKi0QkYqeJkAJQgypUP94EAawI1QjskIVjEIMWtbDBFtBggg5g/4MVCEgALgwAhUh0QFACc6UrgdMOioChEP6QxjUdQsdvdNObvvJHKthpAzcsoBEVIN8VfGAMKoTgmvLQBQ+2coaMlMEbWiAERy7xAlf4Y6yNbUtxzGQoESogBnEIADNe0QoqgAEMbWACE+rFDQ/QQAXGKEYDDlAJP7BAAYCiCBpYcJLvwDJQ3wmpP5TBjRjkQWlaCEIQvDEnf8TgGEGQR56y8KCtFOGYyMMGdKOLjR1QdwfRiMYOlKEMVSxCUjfJhi8acIYfFKITm9uFLPzgi23sIB5QQMBm9JAABGRVD0WImqteCct/nKNc/jAGSEpUuiC4gRC7catazpWHGngAA/8ykkYVWnCFKlCYAS1wwwTAIA9cnrAFIdCCPdf2hB3kIQZmGQgsXXkWchwst2eIQwJ24IIt+CIpPOBBBe4QJXncqRjFCEV+anKGBWzDFBRRxg82ENkzmYkPTFDCAiRwhOa4AQbGoIgrQFzFi2CHCR7gWbjMFA8gxMNU6CgBFKQAKlyEYR5O2EABWBGAAkAZEL5IwAoWcIAYmEAZYnhvAcoxjiLMQ75YTUAB5tEBkXjUJB3wLwM2Jk6wuCEJIXAtgjnkjy3IowZKMMI96tACT2jgaxLwsAa2kQcm7EUJaA2BG+ighSwgthJGOIU/xMPFgXSg1+gAgir+eExIzvcML8j/Aw7AIMi7zkUYd4AFLJgRAEwkIFTZKEARlLENgaGj1+M4B7jFc45/zHDTVbhEBSjkBuDCwGMVqUUZrvCAJzzhCgqgggc0Cu5xr1gd5OhAEbCB1RGcATN8gGU6EhCAFSAlBtpoRh+mrQtMGKAPfS5HNAIQhg10QMkimQc2DEBsrXZAmer4h3+rsICyXYHSRHRCWxF8LiX4gBA/oHkz/HaPCVBAHhC4JhPyYIIKyMMEL9BADToBgyRkKwho2AIVYk6cV/F3GcwYgX5G0IAJZuMAqtiFDd75y26EwxjcuAMVXIGGb8RkByY4ACbiwIpsSKEIjwaPQXQ9DnYcxAgccIc0/zKnhVqA+AcUUQAxxJGFTNSA3i7YRg2cwGJdq2QdLSlCAQwghayG4QdvUIa/zcGOchQBASNQwhZwcYZ9vYAFCMCEKvwQBwP44xwl+Ec0WMEFDDiBDwroDksGXQCcQpJ/RRCDPxTwgBig4QFJC4IE8sEV2mbaIBv4hxOYUAcbaIUBIfDBCSAQAiZA4B4hqAAalkCFBRA9BB5IghvaRM88fOMF5yBYLOlGjhJoxgBynrYfxIAqKEAJIBrlyINhkd0DEEMmyEMq9EIbtFYrGQAC9IEquMIPgIGkyIQBJJoysYRIwQM7lJw/AAITlM0T1EE+wJsWmFhxeIA41IGEXEEWGP+BMtRAFo3Do/nGOKDZTV0VMrWDCSQDv5xFnGHCDiiAH0iBPewAF2BCKkwbC2yAEYyAHgDBJkRNH0jBUXHBMpiCAigDHwABH2xAPOwf/mAVLujBFhCCMqQCHGVTEpTBC0idW5ULOeBACDwBGsgDLchDBaQBBTzAErwTTzCBOCFiEkjDAuQD/LkBrFVACRhDH7SFwGyAE/RBNGQDJLFC3BlUH5BCf6lDESQAFPzDMjQAIFRAM0QBIqgCJbTCXFBCKrgAbc1XSZDDtuTBFojXZUkBonVAOhjKQGwCOTAAFZhAKUWfFqiNEuSa0SjeDEpABfiDPEAHEKgD/4kcMBrAMmz/Qjz4gxMg1G7o4O11gAGMwAE4QTtUQkGFgT8AoyoEwBlwkzI0wJztX0ksg+lJAQIYwDx4lAIkYRg6QRT4AxCUAJC8QNEYQ61kUz3lgR16U0iRgwIUQxa43xZ43wS0gDGggR3M0/vFlDTYBZQsXRIkwQMQAgX4gzZsgQKoAgtYhh+xQgJghhO4wB8VQEmcgxOowzwkwDyUwzkYQx6IQSu0Qgz0AiVQgguwgDBQwjZYoUAQBC76gxGgwQ6wVkxugxE0ANYhAP+UwKIoADewAA7QmxaAAzh4AzeURBcFAwxAAy0w3hFwgz/swoOIHC5kg1aVQKA0SjsMQyq8gpJ1QAkA/wE6FIFRKAEQnEM7sIA9IEA6dADFkQMu2IEq+IYJNAACQEE5lFw5OAEucAFMXNU8FMc4KMDvOYEJJOG5SMOc4EkNrFstPEElsFj1nYVIkQMseMA9yEMlqAL5VQFj+EAW2IB2oAEG2ABGXMISdAL8JUGtXMEl8AADNEAcYN0aQkER0I0CLIFB2V2vOYF7JcB3Yl8dqEm+PAA4tAIlRAl8UoEviKWgsRhWsYARdIA4bkMMwBwfKMMOKEF4/ZEUGEAHvEEVlEAFwAk4aEEzAkKuHcQ3MAI0mBLpEMIOLAEh+AJmdAA62FBBdIA5bEAM6AKGcMc4WB4UhMoOqMP1OcEd2P9DAvxDCYwANvhDAkyAiS3aN3jmd5Yc9uFCjTqhTUJBqQQMO4yD7ynDFWyDCawTWAQBDMjDR+3mSITUwThBG4RAPlyBEUzACdiAKtjAAjCBG9hAblUBJGaRky6dG2SkG+DA0B1TkMLSBijBH+lBB5wDH5TABqCDfJVAS5DDOWTCMaBdG8AgBzAADIjDHeDNKczDZxZKCexHJZSLSrjAGyhBcZzDJvxaTDIDUJ1ABZiDB9SRFiQBOCTBNuzKBnjAMXRDDdDCFbhBHqRDDUTdv4nHkpKDCehCDJTcBujgP7CDHkybay2aE+CAMfQHEBRBPuKZx+ggObBAHOBCCfwbyin/ACSdQxQoAzOwAi4UQNRUZRfhgDykAxyGAFhExMZgKUiRlAJUQBbkwhXYQRXkzQX4wxLcwwqsgLt6gFbCwzhwAAy0SR1ITzUuAFsRRHmQwhqMZ2giZjbe1DlGqwHYQC6EQwhUaSUAAiNwgiwEAQ4YwS64AhcgAKCqAg/gACQ1Sq9ZZJMoGUH8KjkAwQ54AA64wBOUzqp6wwM4wUcVRwXAVK1mQhDQVKT5A6B2gDvwXQe8AhEMQ66NoMAUoDrarDimCw6wQgFoYwDMQxQkACbswjMOxAZMZQI4Qclxh7fiQhGoQ7iu7Boumg4azcbsgrxJgBuAmBEkDMHI60iQww4Y/wM0nMAEnCUEVAAgtIAE3KobVAALkALCLMBvZVOeyEMJfIk/bMI5GGo0YF0BbADHnYQ63NSigWjpSYE8iEMxuIINZJETsBULVMEWdAMMgIMHMQBgsUA5lACRxoPAwAM5bIAroKhZPBqg+sM2VAE5RFkNQGg+eEOfoNhBbIMWSEA41KWEaNvQjgMplMcO6IIfNML9dcCvUurpocM5MGsqqEIqGAEuzANQBkAklIMBZEMqpIIC5OwGQIpBlUDJ9RopzFd6ioECcMHm6UEJJF8I4IAy+BIhABc4EMLDEi4XlRQgTEAVGEMDnMAcMR07bcMrnFgXsUAd0EGbFEsWLMEOLP/At2FfQcktt5Yc5eCUSSzmVfmDD4iDLlTCAewAQQRMNPiCDYiTL9lDGLxS8F4VOmwAO5SLEOqCKxzmBjwwAxgDOdRcFrQqDGjBq3IHSZHCA3hDHXSvrdRhCNQhf/KBH/zAMNxfVV5fAUwbhvSaT/4AC+wAFTBDAgBmGATAd97UhuJAsSqZAhhBABjAP2Rhxx0wAswDf4HrAvtjAbRB0fCVPDjHHIKSwAyuBgtEK7kABPhAKkyAD5wfA6QCGrhWrhXrlr4fREgAsWzMAmyBP+hkAPDpJvTazHZAVjWKYlJqNghKFeRCKCiDL2DUsQ7EDhgVF3CTP1CqHrTE9VGqAQj/2gbwQZ+OI50mDDmogjw8ngRkQhJ0ghYIrQKQREGcSwWgMS1UyBOEgEs+QHcogSwkA8yFMsqh41G0M4opAB9vwBuYAE7xDBewAqHeVB+gwTa4Qq8arhGwgh70YAnooBhQIJKWxwaYQDQYQBVowwZwQKf5LR3kg+GJ8igbxEswgQ3kgQ2kAi3uFSygwQDyZ8C4ZBJkkzbZxQU+K04EZMedrjZmlUmUwzzoHqKcAy3QQjKowxZ46j8UsBPcZABwQc4CQQHAl6AJDAb8YzxsQlVu6k13xy7QVBX4lhuAAwxUo0m8sz+8AjgcwxE8tRXxgD88QTLmgdWSAztEbdQsg1Go/8LA8KcT8PGmxYA64BSskGoHlIMeSEEJLIES/IAJBAw5/CjYFmsHbAIQbDR8qYMOOoo2XAE5xJU8ZAFwxQ/AXGlLv3OxKoMNUAEELAC4bYAysMAMHMIdiFEwuEIllMU3HIEjMt1qV6M0rAAUlETHddxBMOY1V7VSIwAXoANZO0EnMMArIIIfVEKuDcxVF4GalUAUiAFXw9e/wQM8hLUBkDavsUNJbYMLNJ8qbIEElE4SgJgWNA32VjWLcUOOPMHiXYdLBgEL8EGuqShBtOgImEBL6LETZGXy+a8CJMA1+0M2JEJBFIAUOIEqoIGtga6juIBnpqaQloAYVFUBiB47rP+DE9iCKPiDSYdAHbQ1DNxBrglpbIcHONnACpyArnhcSIieMryC5wWDHVyAKjBAOESMN2TTEezAFsiw7T0abr2XHsB3ObQoF4TmAytBJ5xCYfrBgTXaVXfAMkwKUXZAFHQ1FJzcP3Q5K7z3uLEDngNBYMsD00pZEtRCEuQCSFBfVfOnLhjX2hCCraSCP9TAlb1tSWxAsmLC/zJKDxqBLjsvGqhDH9TvnAMjS8SZEyhD4G6Df1f1P/Si3IZmob+5RQMBfxpDJmClCT1Bm2wvN5VEjxfuOEyANjDBBPjDrxUuz0TWJcSCALgADjBBGwQDB5zACWhANfYFQsI63XR1oPn/mpeXg+k6rzxoQRXMgCv4wc4ITEGk+QbgIxSQwybwgRjAecDQeRioA2LiOX++wRWYgCpoE3OwKgy8KloQxAZsggd4Q4VkgXX4gEtpga4MxGgmwAj4gih23Jb+gCu0AzkgmUG2aKTXOUu06DKMAw7swAb8wA4IRCLjwACj6zi4Ou1VQh28ATmQDz25iXBlCI/3eHFsQdAJecIc61m8rUpEgZE5AQcEgQdwwwR8QBoMRjAUgzKQAikACrwPBDp4uTrAekXUAPzUwT6YgR/8L8qdeyD/Qw0T8CaoeFenJsqVwx1jw8ntXcY/QB1yQGKsahKIgzwsGlo49wjBAIUQQr3V/wF0cEAINEp1j8AUogPEkgMpvAEaADPkJ5/AHcwlNLK4zEMALMOmZZEqvIGQLpoC4EAAJIBzAzMQ9MFn8rk/LICJHEGc5kMQcFNVU15s+8kEGMMEQAfK4flZ8BqjFaviJMHulgE4NCADqEIwaMMaCEAJpCNMkoIYmEKcNXGf8mcqdIJyMQfDiP3YX/UDz2QjT54TvPskt8Sc6wErRAPxmsMx4mUbUEgt1IIbVG8bxJwex6o4BIH8/CxA1GBRok4xf3oCNDDRbtO4TR3IbfixhRxEFz/IjVOQwMA/cn0C6ClXbl4AJ/5MbOvwz8gWf/+AQFT2JoCBcv/GjcMZxZ+NTP8btoSQlylIEjowbPjLiXPDP6dPoUaVOvWpPzQU8pxw4W8DOnbuouYc10HshnPnqiQ5UsdNrSAwePgDlEZAIgQ47qT6cUEfqzBinJBT6q9NrifC3IgLpcTJv5VknSQo4Y8FC2wBoJzr0MGJmAIIIqnLaQ5hNHX+FlxRxiJLliBagtARxw0iVadA/P2oJaHGkyMPCHEjt60MmARLFEQE0tTxm21ix/0wQe6fKQQF1P3bEaCAx3mslvlz8ib5hlTKqI8d9w0HK5E5yfq7A43FJQ4hQkgoCqPGt5dPdbJNQKmWw8mfDmxgooIJ1AECCPWoCtCpcSgjJIjWJCDErUqU4Qb/E1zmUWcDBczQpyZlqIBlhhnQMEGaMup4oo4QYNAClgPZYWecyCZTYpsNMEGgBIfOUYCUz4ooJyYgEArjjSOMIMeDII4IIgg3YACnlwMFJEcwaWCIMZMnHghiF9S8cUWpfzZwsBxynFOqA6u2UWpEXKBQh5zL5vGyCFbm8YecGFwQTIlUOkjHMQpdaOC6cjY4yRVG4mJCKAuT6ASGF6gb0FOqHFzJnzzuMcaHOsVy7FOP/NmljCOyqCMLGkPwR5UJolFqHCAKYAUbddBRQBlV1rhAl0XkqQUcRjgoRB4WlGJnyGUk+8cJHErYzgB0HiJnmSMRcELJnPRg5YgF/GGA/44nJGBLiy8qkNNTf1zoRossnsgkkwfqoMIfaSTYgSuyVsIBh3HO0cmJH5RxihRsJCOnnDBYKcGjP6EQ1IUYKvJnG45XaoocV85AAArclJDgzBce8EBGCejwhoMSKlrV5gn/8UcpG+TxgJsX0Fl0JZv9USYEN2LNooYQcmHAHx5sCIydXsMoZ6wNBOMjGWX8UaINbWBRYAMWNhhLxw6otXicU04KA7NFz+lDgQJwKcIxfyqRJylA8rEwCAkkyOWB5GobEDdtYKiljjGv8M0lD47guoOG3sAh4Q028CcGP+yMwgBcnJqYlZXIKUKKAgRV4A0ndDLPjIzIcuwHRztwof8ODvx5owZ5amg3iTKCcKmEoW/+lJxv2gDDBm58kIdfBnbwsmybKTQiHwnWkuAKpo3xRxsblvkTG6c2MxAHFt48wAR/1FHHiW0UYJOdf0pIW6c3KjkHSCFxikluuvvgj288QBq5CQIh6qAFwJVBC3XaQPkGNI4o/ANMtaBFJmpwBUI8AQ3+8EAdoNUBHJzigRrhww5+oIDNjIMUBkhAOdgxMQRMyHTY+M82lJARlBiBFPRTjwJwYAApPIEb/sCBUPiln3yUwV/jKJuEitelHaTmGHWwYhYkcIwKjCMjUDQchSpABwnEKgjOK8Mi/PECG2yhO2NZ4T9isA2nlGAJJoD/yQb6YAQnbOIf86tftcixBTS0gxw7GEFHYPKgHcxND2i4QgFxkAVYwSYL+fDGHfzBDswRzzYdwI0C5CGOIISjN1dQmir+wQEYkGcL0BlHO96gioh0YAPKSIAe1qETLkjhKSWQQhgGowqK6MQqOKgIwSgkCjN5LIP8eg04vJGUmi0lip4ihzJ2oYUy1OIB0DxCG1JFPS52QJUYyoI8rlCc3MjjDQcay2QqkYrGWGt1OPnIKXq4FCdspARAIIcSliAoIBwAM2J4YEyccA4wqCw3R3CoG/RTCxjsgot99GInM8eCbniDEeF4wgUlkAmXVEAcZzqmRX7QlJWUYxmAWoc5/4CAiQRkxDHZAKZHlLGEhuSEFKnYymYEQ9LuGeEKV3jAESRQizLM5iTVvFl83sABDzyAFg+wgTFzwpxV6WROSggBjLCYhQfUQAsv0Jw08uClDpzDCTyoxEvIYYI3rMSffcABKTr1j2Xw058mwEE6rMaHIKk0HS9hQD7aMKox1qAOQWgsU/+TV089cE44OIY3YvSEfNXhCKl4Whk4cJKxnOMUW3kKKTBQMXjQDxMGoGk6EpEAXf0DBw2DCb144IQ5mYAbx/iBP6jQmwdkoS1agAEh3urUm8FHJwr4Bgu+kTP1eNJmDspJhegQqzE+4Ar5YALepFGBSwgKB6jyiCpQBf+EKCgDB00JUB/6IJk3KSAVhPtHNA5JHcpwowYx8IcxkkAIQmCxsWUIgX+0erOz+SMU4oARIY5AiBq4xhjHy0QtPOuPYRiBmhqBGDvgYY4SjAAbnRoHLnDhj5j8YwnQEsugBCaKY2SiEh2owBG2dwUrJkEcdfAvEJRrM8p6RDCCWpRjOOmpUEE1gUhrTQjKVIi3GoMbekTDBoaUsxh00JPlUAYsVqKTa8a3BDfpgBGiR5ZyELQEG7hDHaQhLA6sC6ljlIA3uuHii3oqZFhThzHE4Y0DbrA3WqjC+lwljxgsYxnkmB9TOIITEXPHalxMQIpz8k8jJLLIPKAFDIRBmSr/HCEERV3LW8BxI8ztOchUIYtO4EOwCSXYcGKISQcmwwMtXK81WbiCPGKUB3+4ggMPwIHOJoS/jPgzGhxeSiFt2U9/4iCHHRBDD7lgB+7+VndJeAJxkRYEbzzBv05M8qdiohMH+aMC3kicJDdICDc8Qdiq4EYZ5FEnQVXECQgQyR0xsw4gbKIdl44WPBTAA67p7AcPkJkSgHtU7q7lCInJwrEdBORWf0pC4cSJqlg9FSAz57o8eAIMklAH/ezuCWWggDLGkQcOMOBg4mlAH8pha3II4ALwcBA8rhntmLQjBhQhhzqiwAlb0OIO49iBNJIQBHYlAXBBEAcH3UnN4pmY/5jBKIM32gVhCR+hFlVwCQs4oIVMvEBg7ktAdzpQju1AISIlgIfB3QGPEO/ghAvoBmjfGgMf4As4WJQAlmrQQZxtnPFRpE6nSqi5TJQBcFgk9QO0UIcKJJQHHFAEEVzxCnLA4yvkYEE7N7NWZUR7A+6Iaw7awYYppGAUdzAHHypQh1og1Q1WUnkuPOAfjzReLE+rhTgy79AjPKEGf5MGtFzAgNd44A5oKLLO3FaEdnTA9QZIhM50NsUHHEMLDNiKKxjA2Stk4tRXEkfwBbWUkDee/hH0JL08kAukUdyoNSgDIQDhJJJBEUphGlCADRDhNHbAP8zBS5RiGQygA07DFP/YAAlobxqIgBRI4Q5arrjcAKIkIAlygQPQQ+MYL9bm5BWeQBzAwbGUJhOuoAZ2Qxpcoqeq4DUICAxwAA0OIBu0j32iIBp84QY4IRSQwBaggRtaATf8gAMa6wk0qA6SwA2SAAZggAHwan4CZP7qrwulwtwoxEXKQC1ULgsIwajq4FUqAOKUgQiQQBEU4Q6moBlaYRhMwA5ZwAgAwQ6K4Q4G4AJFwQXeQQkg4B5goDWokOo4yworQAHcqQvlzx92gAPEAfnMEMJqgP2SIAk8AAz84xxigMp0DKK6IRPkYRoAAA5UEQ6IoRSEIRnEoGi0YUrmrQYq7gOTIB9yIQk4hRz/HOTjvDAYOY4sVIor7qAKAceK1G+4YMANfEAbzOAdFOAViOAO3hAOp2EUiMGhHkAeGGARcOAb3EEAZvF3Uu7wptA1vq4G4mI5tK7+dKIcBOUFauELMOsSa6A3qiQf6qAKtIEF5sQfFOD02kAU7sAY7uAF8mAJzIAP3OESWOAFOICsDsg3rKS4vOH9XII6BG5CuFAYg1EsdGQTBAMHPMAbwK7OJID5Juzr8kFvUkEVdiASxgHhdsAFTIAPDqQETIAFoCYENCUfaqEWtGAKQfDOvEEaBKZNxoKPQFK/VIESvQEcls+hBGyDpq4O5CG8tCEVcGALVMEFlEAVlsAI2mAB/2ygCobrA83w1KKuFqpQHI7gDkjhP0DyLp1qLARyAVqO8lQSX2oAgb7OGyjvAbiBARDTBhRTGnwgBI7g62BAjFSOChMxNmDAGzwAFjpFskBSPShEc+TBHomSszjLDJ8AwkJwCscIKzWrNdai9y4RwsCNMmEgF2BAGrhmLPByN6uJLARDGYzBDQgTomLlihwKEcugNnNhOStRHHLB3fKBOGWlDBsrF3NBHK6gDZrqHfEy3UTlH4IhE77gC/IBNpJRVljzNDWLTGLQqIqqN07zOK/EDbTAG2zT7HCClj6SN+/SlbTuulxgF7LANqkOcJKx8notQVUOcEBwQXuNCpdKHP9q4AUcUWj4k0246tUEYwPaQB684QsczCgR9DTNED6t8jQbR/nMMAR1kQVpMGc+bnouVBhdaTkw54HAL0eR7dXCbwEe4Dkj80r04wMPz0AN1Er0w0BBkA4s6QtgQB5y6yVWSDf5k5PciFXGIQakIQjGE0QZSD+E1CpbIz5hBVaIKwgGEwauwBi+wUuK7Pp01C5ntNVc6UYxB6/iVGcyQjMS5hzEAxY4IAtgwDnLExcTkTIpcxONQpsy0sFqgAlUYTKQzErndCrYociUIRikIRy61B7drQzywSgyZC2IEk2T00nzIQQq4EfAD07zFNkqFR6h41JftVZ1RhlSgQG6aTm7n/PrQBXlLrMMntM+UbIOuMEYtiAg981NYSd2YnUquEhnNsAVQoEDiAEcOrVLcwFExzMjJcAbYzJzbLVWn3U3xzVHHVBnzkEJ8mB50sk5QVQcPDUIWkYajAEH1qdVXzVS+ODcZvRcBfIVYKEZ7qBgjQEhjWEB7mABQuEHXkEZcANgybVcvRBCJHZclSEGYEEXeCAVUoEHYCEG8vVikc3jYpVkSdZLPOIciMxN95Ni6dSVqgJlabZmNy4gAAA7QOn1TwAAAABJRU5ErkJggg==) diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Output/.gitkeep b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Program.cs b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Program.cs index 53f780554..564e53ef7 100644 --- a/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Program.cs +++ b/Markdown-to-Word-conversion/Customize-image/.NET/Customize-image/Program.cs @@ -16,10 +16,10 @@ static void Main(string[] args) //Hook the event to customize the image while importing Markdown. document.MdImportSettings.ImageNodeVisited += MdImportSettings_ImageNodeVisited; //Open the Markdown file. - document.Open(new FileStream("../../../Input.md", FileMode.Open, FileAccess.Read), FormatType.Markdown); + document.Open(new FileStream(Path.GetFullPath("Data/Input.md"), FileMode.Open, FileAccess.Read), FormatType.Markdown); //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 a Markdown file to the file stream. document.Save(outputFileStream, FormatType.Docx); @@ -30,9 +30,9 @@ private static void MdImportSettings_ImageNodeVisited(object sender, Syncfusion. { //Set the image stream based on the image name from the input Markdown. if (args.Uri == "Image_1.png") - args.ImageStream = new FileStream("../../../Image_1.png", FileMode.Open); + args.ImageStream = new FileStream(Path.GetFullPath("Data/Image_1.png"), FileMode.Open); else if (args.Uri == "Image_2.png") - args.ImageStream = new FileStream("../../../Image_2.png", FileMode.Open); + args.ImageStream = new FileStream(Path.GetFullPath("Data/Image_2.png"), FileMode.Open); //Retrive the image from the website and use it. else if (args.Uri.StartsWith("https://")) { diff --git a/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Add-an-accent-mark-to-the-equation.csproj b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Add-an-accent-mark-to-the-equation.csproj index b25dc3fb9..fbc3d3600 100644 --- a/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Add-an-accent-mark-to-the-equation.csproj +++ b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Add-an-accent-mark-to-the-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Output/.gitkeep b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Program.cs b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Program.cs index e107bba6f..2bbb2ae1f 100644 --- a/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Program.cs +++ b/Mathematical-Equation/Add-an-accent-mark-to-the-equation/.NET/Add-an-accent-mark-to-the-equation/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) textRange.CharacterFormat.Bold = true; textRange.CharacterFormat.Italic = true; //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/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Add-bar-to-the-equation.csproj b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Add-bar-to-the-equation.csproj index 48d1c2d4f..1e57e8897 100644 --- a/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Add-bar-to-the-equation.csproj +++ b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Add-bar-to-the-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Output/.gitkeep b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Program.cs b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Program.cs index 0c0b66c59..02c2739d2 100644 --- a/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Program.cs +++ b/Mathematical-Equation/Add-bar-to-the-equation/.NET/Add-bar-to-the-equation/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) //Sets text for bar equation. (officeMathRunElement.Item as WTextRange).Text = "a"; //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/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Add-border-box-to-the-equation.csproj b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Add-border-box-to-the-equation.csproj index 751eb9c07..d82be9977 100644 --- a/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Add-border-box-to-the-equation.csproj +++ b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Add-border-box-to-the-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Output/.gitkeep b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Program.cs b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Program.cs index b37d68292..7d19dc3b0 100644 --- a/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Program.cs +++ b/Mathematical-Equation/Add-border-box-to-the-equation/.NET/Add-border-box-to-the-equation/Program.cs @@ -43,7 +43,7 @@ static void Main(string[] args) //Sets text for border box equation. (officeMathRunElement.Item as WTextRange).Text = "a+b-c"; //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/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Add-box-to-the-equation.csproj b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Add-box-to-the-equation.csproj index 31b291e3a..105616104 100644 --- a/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Add-box-to-the-equation.csproj +++ b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Add-box-to-the-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Output/.gitkeep b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Program.cs b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Program.cs index 192797f93..c41315e47 100644 --- a/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Program.cs +++ b/Mathematical-Equation/Add-box-to-the-equation/.NET/Add-box-to-the-equation/Program.cs @@ -45,7 +45,7 @@ static void Main(string[] args) //Sets text for box equation. (officeMathRunElement.Item as WTextRange).Text = "adx"; //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/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Add-delimiter-to-the-equation.csproj b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Add-delimiter-to-the-equation.csproj index e14223742..d45d6a136 100644 --- a/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Add-delimiter-to-the-equation.csproj +++ b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Add-delimiter-to-the-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Output/.gitkeep b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Program.cs b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Program.cs index 6cb32f753..6b1fa7456 100644 --- a/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Program.cs +++ b/Mathematical-Equation/Add-delimiter-to-the-equation/.NET/Add-delimiter-to-the-equation/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Sets text for delimiter equation. (officeMathRunElement.Item as WTextRange).Text = "a+b"; //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/Mathematical-Equation/Apply-math-justification/Apply-math-justification.sln b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification.sln similarity index 100% rename from Mathematical-Equation/Apply-math-justification/Apply-math-justification.sln rename to Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification.sln diff --git a/Mathematical-Equation/Apply-math-justification/Apply-math-justification/Apply-math-justification.csproj b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Apply-math-justification.csproj similarity index 74% rename from Mathematical-Equation/Apply-math-justification/Apply-math-justification/Apply-math-justification.csproj rename to Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Apply-math-justification.csproj index fe5037d32..a7dc2f819 100644 --- a/Mathematical-Equation/Apply-math-justification/Apply-math-justification/Apply-math-justification.csproj +++ b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Apply-math-justification.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Output/.gitkeep b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Apply-math-justification/Apply-math-justification/Program.cs b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Program.cs similarity index 81% rename from Mathematical-Equation/Apply-math-justification/Apply-math-justification/Program.cs rename to Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Program.cs index 8c656cc65..1fc98d709 100644 --- a/Mathematical-Equation/Apply-math-justification/Apply-math-justification/Program.cs +++ b/Mathematical-Equation/Apply-math-justification/.NET/Apply-math-justification/Program.cs @@ -11,7 +11,7 @@ WMath math = document.LastParagraph.AppendMath(@"\boxed{{x}^{2}+{y}^{2}={z}^{2}}"); //Apply math justification. math.MathParagraph.Justification = MathJustification.Left; - using (FileStream outputFileStream = new FileStream("Output.docx", FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save Word document. document.Save(outputFileStream, FormatType.Docx); diff --git a/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Create-an-array-of-equations.csproj b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Create-an-array-of-equations.csproj index d888575d5..6f8ea0083 100644 --- a/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Create-an-array-of-equations.csproj +++ b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Create-an-array-of-equations.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Output/.gitkeep b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Program.cs b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Program.cs index dc5fdfaac..c1fd754ad 100644 --- a/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Program.cs +++ b/Mathematical-Equation/Create-an-array-of-equations/.NET/Create-an-array-of-equations/Program.cs @@ -42,7 +42,7 @@ static void Main(string[] args) //Sets text for equation array. (officeMathRunElement.Item as WTextRange).Text = "x+y-z=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/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Create-fraction-equation.csproj b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Create-fraction-equation.csproj index da15f6469..06ebcd923 100644 --- a/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Create-fraction-equation.csproj +++ b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Create-fraction-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Output/.gitkeep b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Program.cs b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Program.cs index 5aabc9262..4901f94ce 100644 --- a/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Program.cs +++ b/Mathematical-Equation/Create-fraction-equation/.NET/Create-fraction-equation/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) //Sets the fraction type. mathFraction.FractionType = MathFractionType.NormalFractionBar; //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/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Create-limit-equation.csproj b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Create-limit-equation.csproj index 268f3f949..496cdc34b 100644 --- a/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Create-limit-equation.csproj +++ b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Create-limit-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Output/.gitkeep b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Program.cs b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Program.cs index 23e598a81..3b9c87eed 100644 --- a/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Program.cs +++ b/Mathematical-Equation/Create-limit-equation/.NET/Create-limit-equation/Program.cs @@ -42,7 +42,7 @@ static void Main(string[] args) //Sets text for base of the specified equation. (officeMathRunElement.Item as WTextRange).Text = "x"; //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/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Create-matrix-equation.csproj b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Create-matrix-equation.csproj index e8ce2f3ff..c2d6e8bd8 100644 --- a/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Create-matrix-equation.csproj +++ b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Create-matrix-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Output/.gitkeep b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Program.cs b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Program.cs index 3b1013455..c5a2fd70a 100644 --- a/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Program.cs +++ b/Mathematical-Equation/Create-matrix-equation/.NET/Create-matrix-equation/Program.cs @@ -73,7 +73,7 @@ static void Main(string[] args) officeMathRunElement.Item = new WTextRange(document); (officeMathRunElement.Item as WTextRange).Text = "4"; //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/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Create-n-array-equation.csproj b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Create-n-array-equation.csproj index e86044772..674367ff8 100644 --- a/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Create-n-array-equation.csproj +++ b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Create-n-array-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Output/.gitkeep b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Program.cs b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Program.cs index 047173847..132d65f48 100644 --- a/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Program.cs +++ b/Mathematical-Equation/Create-n-array-equation/.NET/Create-n-array-equation/Program.cs @@ -44,7 +44,7 @@ static void Main(string[] args) //Sets text for NArray equation. (officeMathRunElement.Item as WTextRange).Text = "x"; //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/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Create-phantom-equation.csproj b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Create-phantom-equation.csproj index a66aea5b9..03cd04a15 100644 --- a/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Create-phantom-equation.csproj +++ b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Create-phantom-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Output/.gitkeep b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Program.cs b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Program.cs index 702ec429b..3958c4b14 100644 --- a/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Program.cs +++ b/Mathematical-Equation/Create-phantom-equation/.NET/Create-phantom-equation/Program.cs @@ -42,7 +42,7 @@ static void Main(string[] args) //Sets text for phantom equation. (officeMathRunElement.Item as WTextRange).Text = "a-b"; //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/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Create-radical-equation.csproj b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Create-radical-equation.csproj index 05387534b..7299f2049 100644 --- a/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Create-radical-equation.csproj +++ b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Create-radical-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Output/.gitkeep b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Program.cs b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Program.cs index 15b9b3751..78bd8e5bb 100644 --- a/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Program.cs +++ b/Mathematical-Equation/Create-radical-equation/.NET/Create-radical-equation/Program.cs @@ -33,7 +33,7 @@ static void Main(string[] args) //Sets the text for radical equation. (officeMathRunElement.Item as WTextRange).Text = "x"; //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/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Create-superscript-equation.csproj b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Create-superscript-equation.csproj index 6086abd42..7084b6509 100644 --- a/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Create-superscript-equation.csproj +++ b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Create-superscript-equation.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Output/.gitkeep b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Program.cs b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Program.cs index 7fa3c5116..a4bedea66 100644 --- a/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Program.cs +++ b/Mathematical-Equation/Create-superscript-equation/.NET/Create-superscript-equation/Program.cs @@ -35,7 +35,7 @@ static void Main(string[] args) //Sets text. (officeMathRunElement.Item as WTextRange).Text = "x"; //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/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Create-trigonometric-function.csproj b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Create-trigonometric-function.csproj index 57abbfdff..cf17ad84f 100644 --- a/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Create-trigonometric-function.csproj +++ b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Create-trigonometric-function.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Output/.gitkeep b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Program.cs b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Program.cs index 29548de27..2c92ec029 100644 --- a/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Program.cs +++ b/Mathematical-Equation/Create-trigonometric-function/.NET/Create-trigonometric-function/Program.cs @@ -33,7 +33,7 @@ static void Main(string[] args) //Sets text for function. (officeMathRunElement.Item as WTextRange).Text = "90"; //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/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Equation-with-grouping-character.csproj b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Equation-with-grouping-character.csproj index 345ab2694..894760808 100644 --- a/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Equation-with-grouping-character.csproj +++ b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Equation-with-grouping-character.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Output/.gitkeep b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Program.cs b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Program.cs index c73d3f041..edab173c1 100644 --- a/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Program.cs +++ b/Mathematical-Equation/Equation-with-grouping-character/.NET/Equation-with-grouping-character/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) //Sets text for group character equation. (officeMathRunElement.Item as WTextRange).Text = "a-b"; //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/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Accent.csproj b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Accent.csproj index 2d300b71b..55012fe64 100644 --- a/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Accent.csproj +++ b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Accent.csproj @@ -11,4 +11,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Program.cs b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Program.cs index 8d8278502..8e395fb9f 100644 --- a/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Accent/.NET/Accent/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\dot{a}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Bar.csproj b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Bar.csproj index a4a26a5a4..b747a93f1 100644 --- a/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Bar.csproj +++ b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Bar.csproj @@ -10,4 +10,10 @@ + + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Program.cs b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Program.cs index c6b0a21e1..4b757e9d4 100644 --- a/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Bar/.NET/Bar/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\overline{a}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Border-Box.csproj b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Border-Box.csproj index 93777fb82..c5e709aea 100644 --- a/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Border-Box.csproj +++ b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Border-Box.csproj @@ -10,4 +10,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Program.cs b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Program.cs index b43b32a6c..1fdfcec43 100644 --- a/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Border-Box/.NET/Border-Box/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\boxed{x^2 + y^2 = z^2}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Box.csproj b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Box.csproj index 218c08393..737a501a8 100644 --- a/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Box.csproj +++ b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Box.csproj @@ -9,5 +9,10 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Program.cs b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Program.cs index 39650f69f..dea81ade5 100644 --- a/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Box/.NET/Box/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\box{a}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Create-equation-using-LaTeX.csproj b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Create-equation-using-LaTeX.csproj index 8fde18de6..f6b539523 100644 --- a/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Create-equation-using-LaTeX.csproj +++ b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Create-equation-using-LaTeX.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Program.cs b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Program.cs index 78b1fae83..d06a698e7 100644 --- a/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Create-equation-using-LaTeX/.NET/Create-equation-using-LaTeX/Program.cs @@ -12,7 +12,7 @@ document.LastParagraph.AppendMath(@"f\left(x\right)={a}_{0}+\sum_{n=1}^{\infty}{\left({a}_{n}\cos{\frac{n\pi{x}}{L}}+{b}_{n}\sin{\frac{n\pi{x}}{L}}\right)}"); //Save the Word document. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Delimiter.csproj b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Delimiter.csproj index a4a26a5a4..b747a93f1 100644 --- a/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Delimiter.csproj +++ b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Delimiter.csproj @@ -10,4 +10,10 @@ + + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Program.cs b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Program.cs index a7396ecda..9612aa9ad 100644 --- a/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Delimiter/.NET/Delimiter/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\left(a\right)"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Equation-array.csproj b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Equation-array.csproj index ad9e48d72..655d13d55 100644 --- a/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Equation-array.csproj +++ b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Equation-array.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Program.cs b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Program.cs index 0518da559..64f30a315 100644 --- a/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Equation-array/.NET/Equation-array/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\eqarray{a@&b}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Apply-scripts-to-the-equation.csproj b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Apply-scripts-to-the-equation.csproj index 5e4396816..fbc64c424 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Apply-scripts-to-the-equation.csproj +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Apply-scripts-to-the-equation.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Program.cs b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Program.cs index bee4ceccb..99475d4fd 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply scripts to the equation/.NET/Apply-scripts-to-the-equation/Program.cs @@ -20,7 +20,7 @@ document.LastSection.AddParagraph().AppendMath(@"\dot{\mathscr{a}}"); //Save a Word document - 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/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Apply-style-to-characters.csproj b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Apply-style-to-characters.csproj index 5e4396816..fbc64c424 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Apply-style-to-characters.csproj +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Apply-style-to-characters.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Program.cs b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Program.cs index 07bf19210..92b6cddef 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Apply style to characters/.NET/Apply-style-to-characters/Program.cs @@ -14,7 +14,7 @@ document.LastSection.AddParagraph().AppendMath(@"\dot{\mathbit{a}}"); //Save a Word document. - 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/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Preserve-as-normal-text.csproj b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Preserve-as-normal-text.csproj index 5e4396816..fbc64c424 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Preserve-as-normal-text.csproj +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Preserve-as-normal-text.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Program.cs b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Program.cs index 300c59bc8..1f7b0c181 100644 --- a/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Format Equation/Preserve as normal text/.NET/Preserve-as-normal-text/Program.cs @@ -12,7 +12,7 @@ document.LastParagraph.AppendMath(@"\dot{\mathrm{a}}"); //Save a Word document to the MemoryStream. - 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/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Fraction.csproj b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Fraction.csproj index 218c08393..737a501a8 100644 --- a/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Fraction.csproj +++ b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Fraction.csproj @@ -9,5 +9,10 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Program.cs b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Program.cs index 5333b6741..4989e9098 100644 --- a/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Fraction/.NET/Fraction/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"{\frac{dy}{dx}}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Function.csproj b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Function.csproj index 218c08393..737a501a8 100644 --- a/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Function.csproj +++ b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Function.csproj @@ -9,5 +9,10 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Program.cs b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Program.cs index 559ed5cad..b9e023188 100644 --- a/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Function/.NET/Function/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\sin{\theta}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Input.docx b/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Data/Input.docx similarity index 100% rename from Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Input.docx rename to Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Data/Input.docx diff --git a/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Get-LaTeX-code-for-equation.csproj b/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Get-LaTeX-code-for-equation.csproj index d713f5b6c..4bf2e9911 100644 --- a/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Get-LaTeX-code-for-equation.csproj +++ b/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Get-LaTeX-code-for-equation.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Program.cs b/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Program.cs index 559911465..fc3e5cf5c 100644 --- a/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Get-LaTeX-code-for-equation/.NET/Get-LaTeX-code-for-equation/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO.DLS; //Open a Word document using File stream. -using (FileStream inputStream = new FileStream("../../../Input.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream("Data/Input.docx", FileMode.Open, FileAccess.Read)) { // OPen the existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) diff --git a/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Group-character.csproj b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Group-character.csproj index 25c1252d8..a501275da 100644 --- a/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Group-character.csproj +++ b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Group-character.csproj @@ -10,4 +10,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Program.cs b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Program.cs index 6f719fdf3..9b236bb3f 100644 --- a/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Group-character/.NET/Group-character/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\overbrace{a-b}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Input.docx b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Data/Input.docx similarity index 100% rename from Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Input.docx rename to Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Data/Input.docx diff --git a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Insert-equation-using-LaTeX.csproj b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Insert-equation-using-LaTeX.csproj index 657593f6e..eeb5ca69c 100644 --- a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Insert-equation-using-LaTeX.csproj +++ b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Insert-equation-using-LaTeX.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Program.cs b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Program.cs index ccdf0b286..a03e11b2b 100644 --- a/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Insert-equation-using-LaTeX/.NET/Insert-equation-using-LaTeX/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO.DLS; //Open a Word document using File stream. -using (FileStream inputStream = new FileStream("../../../Input.docx", FileMode.Open, FileAccess.Read)) { +using (FileStream inputStream = new FileStream("Data/Input.docx", FileMode.Open, FileAccess.Read)) { // OPen the existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) { @@ -14,7 +14,7 @@ document.LastSection.Paragraphs[2].ChildEntities.Insert(0, math); //Save the Word document. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/LaTeX-equation-into-Image.csproj b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/LaTeX-equation-into-Image.csproj index ab9f3e6b7..91fdf59ba 100644 --- a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/LaTeX-equation-into-Image.csproj +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/LaTeX-equation-into-Image.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Program.cs b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Program.cs index 966658a68..3513f98d7 100644 --- a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-Image/.NET/LaTeX-equation-into-Image/Program.cs @@ -19,7 +19,7 @@ //Reset the stream position. imageStream.Position = 0; //Save the stream as file. - using (FileStream fileStreamOutput = File.Create("../../../Result.jpeg")) + using (FileStream fileStreamOutput = File.Create("Output/Result.jpeg")) { imageStream.CopyTo(fileStreamOutput); } diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/LaTeX-equation-into-PDF.csproj b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/LaTeX-equation-into-PDF.csproj index ab9f3e6b7..91fdf59ba 100644 --- a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/LaTeX-equation-into-PDF.csproj +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/LaTeX-equation-into-PDF.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Program.cs b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Program.cs index 078bb6cd4..52ccd4597 100644 --- a/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/LaTeX-equation-into-PDF/.NET/LaTeX-equation-into-PDF/Program.cs @@ -19,7 +19,7 @@ render.Dispose(); document.Dispose(); //Save the Word document. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Left-SubSuperScript.csproj b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Left-SubSuperScript.csproj index d4cc0d37a..32ed0eec3 100644 --- a/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Left-SubSuperScript.csproj +++ b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Left-SubSuperScript.csproj @@ -10,4 +10,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Program.cs b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Program.cs index 55b63201c..57a4738b8 100644 --- a/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET/Left-SubSuperScript/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"{_40^{20}}100"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Limit.csproj b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Limit.csproj index fd022faa1..4a822c086 100644 --- a/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Limit.csproj +++ b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Limit.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Program.cs b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Program.cs index c5f37937b..2a9edd2d7 100644 --- a/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Limit/.NET/Limit/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\lim\below{b}{a}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Matrix.csproj b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Matrix.csproj index fd022faa1..4a822c086 100644 --- a/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Matrix.csproj +++ b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Matrix.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Program.cs b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Program.cs index 82b2b1e97..368c8762b 100644 --- a/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Matrix/.NET/Matrix/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\begin{matrix}a&b\\\end{matrix}"); //Save the Word document -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Input.docx b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Data/Input.docx similarity index 100% rename from Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Input.docx rename to Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Data/Input.docx diff --git a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Modify-equation-using-LaTeX.csproj b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Modify-equation-using-LaTeX.csproj index ae8176e54..59e9460cb 100644 --- a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Modify-equation-using-LaTeX.csproj +++ b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Modify-equation-using-LaTeX.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Program.cs b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Program.cs index a6714cbb9..71f6807f1 100644 --- a/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Modify-equation-using-LaTeX/.NET/Modify-equation-using-LaTeX/Program.cs @@ -2,7 +2,7 @@ using Syncfusion.DocIO.DLS; //Open a Word document using File stream. -using (FileStream inputStream = new FileStream("../../../Input.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream(Path.GetFullPath("Data/Input.docx"), FileMode.Open, FileAccess.Read)) { // OPen the existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -21,7 +21,7 @@ //Modify the LaTeX string math.MathParagraph.LaTeX = laTeX; } - using (FileStream outputStream = new FileStream(@"../../../Result.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.Write)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/N-array.csproj b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/N-array.csproj index 2bbdb3d53..eee517a4a 100644 --- a/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/N-array.csproj +++ b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/N-array.csproj @@ -10,4 +10,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Program.cs b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Program.cs index 462e72c87..140748876 100644 --- a/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/N-array/.NET/N-array/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\sum a"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Program.cs b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Program.cs index 9cdcf3880..9eccc0c62 100644 --- a/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"\sqrt a"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Radical.csproj b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Radical.csproj index fd022faa1..4a822c086 100644 --- a/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Radical.csproj +++ b/Mathematical-Equation/LaTeX-equations/Radical/.NET/Radical/Radical.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Program.cs b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Program.cs index 5744e5c53..d5e78a422 100644 --- a/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"{100}_{40}^{20}"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Right-SubSuperScript.csproj b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Right-SubSuperScript.csproj index 95f2a01fb..be25cd7ea 100644 --- a/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Right-SubSuperScript.csproj +++ b/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET/Right-SubSuperScript/Right-SubSuperScript.csproj @@ -10,4 +10,9 @@ + + + Always + + diff --git a/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Output/.gitkeep b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Program.cs b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Program.cs index 21114773d..fb4efc087 100644 --- a/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Program.cs +++ b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/Program.cs @@ -12,5 +12,5 @@ document.LastParagraph.AppendMath(@"a^b"); //Save the Word document. -using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) +using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/SubSuperScript.csproj b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/SubSuperScript.csproj index fd022faa1..4a822c086 100644 --- a/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/SubSuperScript.csproj +++ b/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET/SubSuperScript/SubSuperScript.csproj @@ -9,4 +9,9 @@ + + + Always + + diff --git a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Template.docx b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Data/Template.docx similarity index 100% rename from Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Template.docx rename to Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Data/Template.docx diff --git a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Modify-an-existing-equation.csproj b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Modify-an-existing-equation.csproj index 7a882f72e..30d82e7d3 100644 --- a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Modify-an-existing-equation.csproj +++ b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Modify-an-existing-equation.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Output/.gitkeep b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Program.cs b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Program.cs index da0c7c9e8..809d6cdfa 100644 --- a/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Program.cs +++ b/Mathematical-Equation/Modify-an-existing-equation/.NET/Modify-an-existing-equation/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -41,7 +41,7 @@ static void Main(string[] args) //Applies math format to the text. MathParagraphItem.MathFormat.Style = MathStyleType.Italic; //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/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Output/.gitkeep b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Program.cs b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Program.cs index 73f6920b6..ca092839b 100644 --- a/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Program.cs +++ b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) //Sets text for equation. (officeMathRunElement.Item as WTextRange).Text = "Y"; //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/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Superscript-and-subscript-on-left.csproj b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Superscript-and-subscript-on-left.csproj index 18a986fe0..1b54640f1 100644 --- a/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Superscript-and-subscript-on-left.csproj +++ b/Mathematical-Equation/Superscript-and-subscript-on-left/.NET/Superscript-and-subscript-on-left/Superscript-and-subscript-on-left.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Output/.gitkeep b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Program.cs b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Program.cs index c76203e93..3dae49e5a 100644 --- a/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Program.cs +++ b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Sets text for equation. (officeMathRunElement.Item as WTextRange).Text = "Y"; //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/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Superscript-and-subscript-on-right.csproj b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Superscript-and-subscript-on-right.csproj index 61504d81d..ac037434f 100644 --- a/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Superscript-and-subscript-on-right.csproj +++ b/Mathematical-Equation/Superscript-and-subscript-on-right/.NET/Superscript-and-subscript-on-right/Superscript-and-subscript-on-right.csproj @@ -10,4 +10,10 @@ + + + Always + + + 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 1682aafae..8f1c418c2 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 000000000..5f282702b --- /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 dd83afe3e..050f9d802 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 a5f1abfbc..c01fedc10 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 000000000..5f282702b --- /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 4d4a33e33..4f4c1bba7 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 3bf49a1de..453f48be6 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 000000000..5f282702b --- /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 49ed4470a..35d2dfd04 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 72254f6a0..fea6ba89e 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 000000000..5f282702b --- /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 78da44386..2ba1c427c 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 b7663ef59..25afea8a8 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 000000000..5f282702b --- /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 8b4f4998c..85c9be670 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 8b93e19a1..82a7d5fb6 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 000000000..5f282702b --- /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 f043672c4..3d1674a9a 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/Paragraphs/Add-ole-object/.NET/Add-ole-object/Add-ole-object.csproj b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Add-ole-object.csproj index 0b810cb95..2687dcd4f 100644 --- a/Paragraphs/Add-ole-object/.NET/Add-ole-object/Add-ole-object.csproj +++ b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Add-ole-object.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Paragraphs/Add-ole-object/.NET/Add-ole-object/Output/.gitkeep b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-ole-object/.NET/Add-ole-object/Program.cs b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Program.cs index 0b507c928..fa6cbdd6c 100644 --- a/Paragraphs/Add-ole-object/.NET/Add-ole-object/Program.cs +++ b/Paragraphs/Add-ole-object/.NET/Add-ole-object/Program.cs @@ -16,11 +16,11 @@ static void Main(string[] args) //Adds new paragraph to the section. IWParagraph paragraph = section.AddParagraph(); //Opens the file to be embedded. - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Book.xlsx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Book.xlsx"), FileMode.Open, FileAccess.ReadWrite)) { //Loads the picture instance with the image need to be displayed. WPicture picture = new WPicture(document); - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); picture.LoadImage(imageStream); //Sets height and width for the image. picture.Height = 80; @@ -28,7 +28,7 @@ static void Main(string[] args) //Appends the OLE object to the paragraph. WOleObject oleObject = paragraph.AppendOleObject(fileStream, picture, OleObjectType.ExcelWorksheet); //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-paragraph/.NET/Add-paragraph/Add-paragraph.csproj b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Add-paragraph.csproj index ec964d34c..484431ad5 100644 --- a/Paragraphs/Add-paragraph/.NET/Add-paragraph/Add-paragraph.csproj +++ b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Add-paragraph.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-paragraph/.NET/Add-paragraph/Output/.gitkeep b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-paragraph/.NET/Add-paragraph/Program.cs b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Program.cs index a479d38d6..a77b85eaa 100644 --- a/Paragraphs/Add-paragraph/.NET/Add-paragraph/Program.cs +++ b/Paragraphs/Add-paragraph/.NET/Add-paragraph/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) //Adds new text to the paragraph. paragraph.AppendText("Adding new paragraph to the document"); //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-svg-image/.NET/Add-svg-image/Add-svg-image.csproj b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Add-svg-image.csproj index ff678241a..80502f4f0 100644 --- a/Paragraphs/Add-svg-image/.NET/Add-svg-image/Add-svg-image.csproj +++ b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Add-svg-image.csproj @@ -12,4 +12,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Paragraphs/Add-svg-image/.NET/Add-svg-image/Output/.gitkeep b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-svg-image/.NET/Add-svg-image/Program.cs b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Program.cs index d33e2d93e..0234f3810 100644 --- a/Paragraphs/Add-svg-image/.NET/Add-svg-image/Program.cs +++ b/Paragraphs/Add-svg-image/.NET/Add-svg-image/Program.cs @@ -16,9 +16,9 @@ static void Main(string[] args) //Add new paragraph to the section. IWParagraph firstParagraph = section.AddParagraph(); //Get the image as byte array. - byte[] imageBytes = File.ReadAllBytes(Path.GetFullPath(@"../../../Data/Buyers.png")); + byte[] imageBytes = File.ReadAllBytes(Path.GetFullPath(@"Data/Buyers.png")); //Get the SVG image as byte array. - byte[] svgData = File.ReadAllBytes(Path.GetFullPath(@"../../../Data/Buyers.svg")); + byte[] svgData = File.ReadAllBytes(Path.GetFullPath(@"Data/Buyers.svg")); //Add SVG image to the paragraph. IWPicture picture = firstParagraph.AppendPicture(svgData, imageBytes); //Set height and width for the image. @@ -26,7 +26,7 @@ static void Main(string[] args) picture.Width = 100; //Create a 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)) { //Save the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Add-symbols/.NET/Add-symbols/Add-symbols.csproj b/Paragraphs/Add-symbols/.NET/Add-symbols/Add-symbols.csproj index 20d69b969..c0ef85dc1 100644 --- a/Paragraphs/Add-symbols/.NET/Add-symbols/Add-symbols.csproj +++ b/Paragraphs/Add-symbols/.NET/Add-symbols/Add-symbols.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-symbols/.NET/Add-symbols/Output/.gitkeep b/Paragraphs/Add-symbols/.NET/Add-symbols/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-symbols/.NET/Add-symbols/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-symbols/.NET/Add-symbols/Program.cs b/Paragraphs/Add-symbols/.NET/Add-symbols/Program.cs index 387e228a7..a2b903be5 100644 --- a/Paragraphs/Add-symbols/.NET/Add-symbols/Program.cs +++ b/Paragraphs/Add-symbols/.NET/Add-symbols/Program.cs @@ -19,7 +19,7 @@ static void Main(string[] args) //Inserts symbol with character code 100. paragraph.AppendSymbol(100); //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-tab-stop/.NET/Add-tab-stop/Add-tab-stop.csproj b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Add-tab-stop.csproj index 60662824b..0880a6663 100644 --- a/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Add-tab-stop.csproj +++ b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Add-tab-stop.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Output/.gitkeep b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Program.cs b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Program.cs index e11b13d1d..b4e789720 100644 --- a/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Program.cs +++ b/Paragraphs/Add-tab-stop/.NET/Add-tab-stop/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) //Removes tab stop from the collection. paragraph.ParagraphFormat.Tabs.RemoveByTabPosition(11); //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-text-box/.NET/Add-text-box/Add-text-box.csproj b/Paragraphs/Add-text-box/.NET/Add-text-box/Add-text-box.csproj index f5e150985..0cdedb9be 100644 --- a/Paragraphs/Add-text-box/.NET/Add-text-box/Add-text-box.csproj +++ b/Paragraphs/Add-text-box/.NET/Add-text-box/Add-text-box.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Add-text-box/.NET/Add-text-box/Data/Mountain-200.jpg b/Paragraphs/Add-text-box/.NET/Add-text-box/Data/Mountain-200.jpg new file mode 100644 index 000000000..21ee3adf8 Binary files /dev/null and b/Paragraphs/Add-text-box/.NET/Add-text-box/Data/Mountain-200.jpg differ diff --git a/Paragraphs/Add-text-box/.NET/Add-text-box/Output/.gitkeep b/Paragraphs/Add-text-box/.NET/Add-text-box/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-text-box/.NET/Add-text-box/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-text-box/.NET/Add-text-box/Program.cs b/Paragraphs/Add-text-box/.NET/Add-text-box/Program.cs index 9b9f31a9a..3222b387f 100644 --- a/Paragraphs/Add-text-box/.NET/Add-text-box/Program.cs +++ b/Paragraphs/Add-text-box/.NET/Add-text-box/Program.cs @@ -22,12 +22,12 @@ static void Main(string[] args) textboxParagraph.AppendText("Text inside text box"); textboxParagraph = textbox.TextBoxBody.AddParagraph(); //Adds new picture to textbox body. - 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); IWPicture picture = textboxParagraph.AppendPicture(imagestream); picture.Height = 90; picture.Width = 110; //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-web-link/.NET/Add-web-link/Add-web-link.csproj b/Paragraphs/Add-web-link/.NET/Add-web-link/Add-web-link.csproj index f61b4d400..8643380bf 100644 --- a/Paragraphs/Add-web-link/.NET/Add-web-link/Add-web-link.csproj +++ b/Paragraphs/Add-web-link/.NET/Add-web-link/Add-web-link.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Add-web-link/.NET/Add-web-link/Output/.gitkeep b/Paragraphs/Add-web-link/.NET/Add-web-link/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Add-web-link/.NET/Add-web-link/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Add-web-link/.NET/Add-web-link/Program.cs b/Paragraphs/Add-web-link/.NET/Add-web-link/Program.cs index 93cf4a4f5..8415f8869 100644 --- a/Paragraphs/Add-web-link/.NET/Add-web-link/Program.cs +++ b/Paragraphs/Add-web-link/.NET/Add-web-link/Program.cs @@ -20,7 +20,7 @@ static void Main(string[] args) //Appends web hyperlink to the paragraph. IWField field = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", 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/Append-breaks/.NET/Append-breaks/Append-breaks.csproj b/Paragraphs/Append-breaks/.NET/Append-breaks/Append-breaks.csproj index 86b004a62..ea3822a53 100644 --- a/Paragraphs/Append-breaks/.NET/Append-breaks/Append-breaks.csproj +++ b/Paragraphs/Append-breaks/.NET/Append-breaks/Append-breaks.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Append-breaks/.NET/Append-breaks/Output/.gitkeep b/Paragraphs/Append-breaks/.NET/Append-breaks/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Append-breaks/.NET/Append-breaks/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Append-breaks/.NET/Append-breaks/Program.cs b/Paragraphs/Append-breaks/.NET/Append-breaks/Program.cs index 6eaaed88d..b1bd683b1 100644 --- a/Paragraphs/Append-breaks/.NET/Append-breaks/Program.cs +++ b/Paragraphs/Append-breaks/.NET/Append-breaks/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) columnBreakPara.AppendBreak(BreakType.ColumnBreak); columnBreakPara.AppendText("After column break"); //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/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Append-text-to-paragraph.csproj b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Append-text-to-paragraph.csproj index 0289618e9..5912765f0 100644 --- a/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Append-text-to-paragraph.csproj +++ b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Append-text-to-paragraph.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Output/.gitkeep b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Program.cs b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Program.cs index a7b0c6e70..16e52e31a 100644 --- a/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Program.cs +++ b/Paragraphs/Append-text-to-paragraph/.NET/Append-text-to-paragraph/Program.cs @@ -22,7 +22,7 @@ static void Main(string[] args) firstText.CharacterFormat.Bold = true; firstText.CharacterFormat.TextColor = Color.Green; //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/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Apply-formatting-to-text.csproj b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Apply-formatting-to-text.csproj index 98982d264..29524323c 100644 --- a/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Apply-formatting-to-text.csproj +++ b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Apply-formatting-to-text.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Output/.gitkeep b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Program.cs b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Program.cs index f84e4ff52..94d4be867 100644 --- a/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Program.cs +++ b/Paragraphs/Apply-formatting-to-text/.NET/Apply-formatting-to-text/Program.cs @@ -52,7 +52,7 @@ static void Main(string[] args) //Apply sub script formatting for seventh text range. seventhText.CharacterFormat.SubSuperScript = SubSuperScript.SubScript; //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/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content.sln b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content.sln new file mode 100644 index 000000000..56f4ee8e5 --- /dev/null +++ b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34322.80 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apply-indentation-for-import-content", "Apply-indentation-for-import-content\Apply-indentation-for-import-content.csproj", "{53DCEB0F-A67D-46ED-BCBB-31F7C434A4F3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {53DCEB0F-A67D-46ED-BCBB-31F7C434A4F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {53DCEB0F-A67D-46ED-BCBB-31F7C434A4F3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {53DCEB0F-A67D-46ED-BCBB-31F7C434A4F3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {53DCEB0F-A67D-46ED-BCBB-31F7C434A4F3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D0E03655-7880-457C-B4E4-35D46A0B5B00} + EndGlobalSection +EndGlobal diff --git a/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Apply-indentation-for-import-content.csproj b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Apply-indentation-for-import-content.csproj new file mode 100644 index 000000000..c745af25e --- /dev/null +++ b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Apply-indentation-for-import-content.csproj @@ -0,0 +1,27 @@ + + + + Exe + net8.0 + Apply_indentation_for_import_content + enable + enable + + + + + + + + + Always + + + Always + + + Always + + + + diff --git a/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/DestinationDocument.docx b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/DestinationDocument.docx new file mode 100644 index 000000000..66599c9d4 Binary files /dev/null and b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/DestinationDocument.docx differ diff --git a/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/SourceDocument.docx b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/SourceDocument.docx new file mode 100644 index 000000000..b5c99962f Binary files /dev/null and b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Data/SourceDocument.docx differ diff --git a/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Output/.gitkeep b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Program.cs b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Program.cs new file mode 100644 index 000000000..3b682ed62 --- /dev/null +++ b/Paragraphs/Apply-indentation-for-import-content/.NET/Apply-indentation-for-import-content/Program.cs @@ -0,0 +1,73 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +// Open the existing main document from a file stream. +using (FileStream destinationStream = new FileStream(Path.GetFullPath(@"Data/DestinationDocument.docx"), FileMode.Open)) +{ + // Load the main Word document. + using (WordDocument destinationDocument = new WordDocument(destinationStream, FormatType.Docx)) + { + // Open the existing source document from a file stream. + using (FileStream sourceStream = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open)) + { + // Load the source Word document. + using (WordDocument sourceDocument = new WordDocument(sourceStream, FormatType.Docx)) + { + // Set the first section break in the source document to "NoBreak" for seamless merging. + sourceDocument.Sections[0].BreakCode = SectionBreakCode.NoBreak; + + // Get the index of the last section in the destination document. + int secIndex = destinationDocument.ChildEntities.IndexOf(destinationDocument.LastSection); + + // Get the index of the last paragraph in the last section of the destination document. + int paraIndex = destinationDocument.LastSection.Body.ChildEntities.IndexOf(destinationDocument.LastParagraph); + + // Get the style and formatting of the last paragraph for reference. + WParagraph lastPara = destinationDocument.LastParagraph; + + // Import content from the source document into the destination document, using destination styles. + destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); + + // Modify the paragraph style for the newly added contents by applying left indentation. + AddLeftIndentation(destinationDocument, secIndex, paraIndex + 1, lastPara.ParagraphFormat.LeftIndent); + + // Save the updated destination document to a new file. + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) + { + destinationDocument.Save(outputStream, FormatType.Docx); + } + } + } + } +} + +/// +/// Applies left indentation to paragraphs and tables in a specified section and paragraph range of a Word document. +/// +void AddLeftIndentation(WordDocument document, int secIndex, int paraIndex, float leftIndent) +{ + // Iterate through the sections added from the source document, starting from secIndex. + for (int i = secIndex; i < document.ChildEntities.IndexOf(document.LastSection) + 1; i++) + { + // Iterate through the child entities (paragraphs/tables) added from the source document. + for (int j = paraIndex; j < document.Sections[i].Body.ChildEntities.Count; j++) + { + // If the child entity is a paragraph, apply the left indent from the last paragraph. + if (document.Sections[i].Body.ChildEntities[j] is WParagraph) + { + WParagraph para = document.Sections[i].Body.ChildEntities[j] as WParagraph; + // Set the left indentation for the paragraph + para.ParagraphFormat.LeftIndent = leftIndent; + } + // If the child entity is a table, apply the same left indent to the table. + else if (document.Sections[i].Body.ChildEntities[j] is WTable) + { + WTable table = document.Sections[i].Body.ChildEntities[j] as WTable; + // Set the left indentation for the table. + table.TableFormat.LeftIndent = leftIndent; + } + } + // Reset the paragraph index for the next section to start from the beginning. + paraIndex = 0; + } +} \ No newline at end of file diff --git a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Apply-paragraph-formatting.csproj b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Apply-paragraph-formatting.csproj index 7327606b8..957c1b959 100644 --- a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Apply-paragraph-formatting.csproj +++ b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Apply-paragraph-formatting.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Input.docx b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Data/Input.docx similarity index 100% rename from Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Input.docx rename to Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Data/Input.docx diff --git a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Output/.gitkeep b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Program.cs b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Program.cs index a5fc1f96f..f9ec407bf 100644 --- a/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Program.cs +++ b/Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Program.cs @@ -10,7 +10,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)) @@ -35,7 +35,7 @@ static void Main(string[] args) //Apply keep with next property to the paragraph. paragraph.ParagraphFormat.KeepFollow = true; //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/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Apply-paragraph-style.csproj b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Apply-paragraph-style.csproj index a38a32058..b64badc8f 100644 --- a/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Apply-paragraph-style.csproj +++ b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Apply-paragraph-style.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Output/.gitkeep b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Program.cs b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Program.cs index 66f4045a7..e83e60e2d 100644 --- a/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Program.cs +++ b/Paragraphs/Apply-paragraph-style/.NET/Apply-paragraph-style/Program.cs @@ -21,7 +21,7 @@ static void Main(string[] args) //Applies built-in style for the paragraph. firstParagraph.ApplyStyle(BuiltinStyle.Heading1); //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/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Change-bullet-symbol-in-list.csproj b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Change-bullet-symbol-in-list.csproj index 48ac7cec0..20defcea8 100644 --- a/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Change-bullet-symbol-in-list.csproj +++ b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Change-bullet-symbol-in-list.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Data/Input.docx b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Data/Input.docx new file mode 100644 index 000000000..ca4347acc Binary files /dev/null and b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Data/Input.docx differ diff --git a/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Output/.gitkeep b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Program.cs b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Program.cs index 11524dfbc..aa35dae7c 100644 --- a/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/Program.cs +++ b/Paragraphs/Change-bullet-symbol-in-list/.NET/Change-bullet-symbol-in-list/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)) @@ -22,7 +22,7 @@ static void Main(string[] args) levelOne.BulletCharacter = "\u0076"; levelOne.CharacterFormat.FontName = "Wingdings"; //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/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text.sln b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text.sln new file mode 100644 index 000000000..f14bc3922 --- /dev/null +++ b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Change-font-for-all-text", "Change-font-for-all-text\Change-font-for-all-text.csproj", "{17B1609A-9006-4997-82C7-3A2FEEA82657}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {17B1609A-9006-4997-82C7-3A2FEEA82657}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {17B1609A-9006-4997-82C7-3A2FEEA82657}.Debug|Any CPU.Build.0 = Debug|Any CPU + {17B1609A-9006-4997-82C7-3A2FEEA82657}.Release|Any CPU.ActiveCfg = Release|Any CPU + {17B1609A-9006-4997-82C7-3A2FEEA82657}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {28C9FA54-8845-4B02-86AD-5B7AA7EEC783} + EndGlobalSection +EndGlobal diff --git a/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Change-font-for-all-text.csproj b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Change-font-for-all-text.csproj new file mode 100644 index 000000000..788153d3f --- /dev/null +++ b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Change-font-for-all-text.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Change_font_for_all_text + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Data/Input.docx b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Data/Input.docx new file mode 100644 index 000000000..fc415d963 Binary files /dev/null and b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Data/Input.docx differ diff --git a/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Output/.gitkeep b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Program.cs b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Program.cs new file mode 100644 index 000000000..8cb25528b --- /dev/null +++ b/Paragraphs/Change-font-for-all-text/.NET/Change-font-for-all-text/Program.cs @@ -0,0 +1,54 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +class Program +{ + static void Main(string[] args) + { + // Create an input file stream to open the document + using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read)) + { + // Create a new Word document instance from the input stream + using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) + { + // Change the font of the document text to "Times New Roman" + ChangeFontName(document, "Times New Roman"); + + // Create an output file stream to save the modified document + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.OpenOrCreate, FileAccess.ReadWrite)) + { + // Save the modified document to the output stream in DOCX format + document.Save(outputStream, FormatType.Docx); + } + } + } + } + + /// + /// Changes the font name of all text and paragraph marks in the Word document. + /// + /// The WordDocument object to modify. + /// The new font name to apply. + private static void ChangeFontName(WordDocument document, string fontName) + { + // Find all paragraphs by EntityType in the Word document. + List paragraphs = document.FindAllItemsByProperty(EntityType.Paragraph, null, null); + + // Change the font name for all paragraph marks (non-printing characters). + for (int i = 0; i < paragraphs.Count; i++) + { + WParagraph paragraph = paragraphs[i] as WParagraph; + paragraph.BreakCharacterFormat.FontName = fontName; + } + + // Find all text ranges by EntityType in the Word document. + List textRanges = document.FindAllItemsByProperty(EntityType.TextRange, null, null); + + // Change the font name for all text content in the document. + for (int i = 0; i < textRanges.Count; i++) + { + WTextRange textRange = textRanges[i] as WTextRange; + textRange.CharacterFormat.FontName = fontName; + } + } +} diff --git a/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Create-custom-paragraph-style.csproj b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Create-custom-paragraph-style.csproj index af0d7ec10..4b55cee2c 100644 --- a/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Create-custom-paragraph-style.csproj +++ b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Create-custom-paragraph-style.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Output/.gitkeep b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Program.cs b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Program.cs index 4dbe8d949..66d8f0e3f 100644 --- a/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Program.cs +++ b/Paragraphs/Create-custom-paragraph-style/.NET/Create-custom-paragraph-style/Program.cs @@ -30,7 +30,7 @@ static void Main(string[] args) //Applies the new style to paragraph. paragraph.ApplyStyle("User_defined_style"); //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/Extract-ole-object/.NET/Extract-ole-object/Template.docx b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Data/Template.docx similarity index 100% rename from Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Template.docx rename to Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Data/Template.docx diff --git a/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Extract-ole-object.csproj b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Extract-ole-object.csproj index 3492fe433..c44f3501f 100644 --- a/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Extract-ole-object.csproj +++ b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Extract-ole-object.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Output/.gitkeep b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Program.cs b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Program.cs index 3bc25a9d1..2ae415583 100644 --- a/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/Program.cs +++ b/Paragraphs/Extract-ole-object/.NET/Extract-ole-object/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)) @@ -47,7 +47,7 @@ private static void ExtractOLEObject(WordDocument document) { if ((oleTypeStr.Contains("Excel Worksheet") || oleTypeStr.StartsWith("Excel.Sheet.12"))) { - FileStream fstream = new FileStream(Path.GetFullPath(@"../../../Workbook" + oleObject.OleStorageName + ".xlsx"), FileMode.Create); + FileStream fstream = new FileStream(Path.GetFullPath(@"Output/Workbook" + oleObject.OleStorageName + ".xlsx"), FileMode.Create); fstream.Write(oleObject.NativeData, 0, oleObject.NativeData.Length); fstream.Flush(); fstream.Close(); @@ -55,7 +55,7 @@ private static void ExtractOLEObject(WordDocument document) } else { - FileStream fstream = new FileStream(Path.GetFullPath(@"../../../Workbook" + oleObject.OleStorageName + ".xls"), FileMode.Create); + FileStream fstream = new FileStream(Path.GetFullPath(@"Output/Workbook" + oleObject.OleStorageName + ".xls"), FileMode.Create); fstream.Write(oleObject.NativeData, 0, oleObject.NativeData.Length); fstream.Flush(); fstream.Close(); @@ -67,7 +67,7 @@ private static void ExtractOLEObject(WordDocument document) { if (oleTypeStr.Contains("Word.Document.12")) { - FileStream fstream = new FileStream(Path.GetFullPath(@"../../../Sample" + oleObject.OleStorageName + ".docx"), FileMode.Create); + FileStream fstream = new FileStream(Path.GetFullPath(@"Output/Sample" + oleObject.OleStorageName + ".docx"), FileMode.Create); fstream.Write(oleObject.NativeData, 0, oleObject.NativeData.Length); fstream.Flush(); fstream.Close(); @@ -75,7 +75,7 @@ private static void ExtractOLEObject(WordDocument document) } else if (oleTypeStr.Contains("Word.Document.8")) { - FileStream fstream = new FileStream(Path.GetFullPath(@"../../../Sample" + oleObject.OleStorageName + ".doc"), FileMode.Create); + FileStream fstream = new FileStream(Path.GetFullPath(@"Output/Sample" + oleObject.OleStorageName + ".doc"), FileMode.Create); fstream.Write(oleObject.NativeData, 0, oleObject.NativeData.Length); fstream.Flush(); fstream.Close(); @@ -85,7 +85,7 @@ private static void ExtractOLEObject(WordDocument document) //Checks for PDF embedded object and save them. if (oleTypeStr.Contains("Acrobat Document") || oleTypeStr.StartsWith("AcroExch.Document.7") || (oleTypeStr.Contains("AcroExch.Document.11") || oleTypeStr.StartsWith("AcroExch.Document.DC"))) { - FileStream fstream = new FileStream(Path.GetFullPath(@"../../../Sample" + oleObject.OleStorageName + ".pdf"), FileMode.Create); + FileStream fstream = new FileStream(Path.GetFullPath(@"Output/Sample" + oleObject.OleStorageName + ".pdf"), FileMode.Create); fstream.Write(oleObject.NativeData, 0, oleObject.NativeData.Length); fstream.Flush(); fstream.Close(); diff --git a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Template.docx b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Data/Template.docx similarity index 100% rename from Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Template.docx rename to Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Data/Template.docx diff --git a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Find-an-image-by-title.csproj b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Find-an-image-by-title.csproj index 739e8ee39..8d6c2204d 100644 --- a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Find-an-image-by-title.csproj +++ b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Find-an-image-by-title.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Output/.gitkeep b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Program.cs b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Program.cs index 176147b41..709be9ef7 100644 --- a/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/Program.cs +++ b/Paragraphs/Find-an-image-by-title/.NET/Find-an-image-by-title/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Retrieves and modify the image based on its title by iterating from the document elements. IterateTextBody(textBody, "Product"); //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/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Input.docx b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Data/Input.docx similarity index 100% rename from Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Input.docx rename to Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Data/Input.docx diff --git a/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Find-and-modify-hyperlink-address.csproj b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Find-and-modify-hyperlink-address.csproj index b01bf5e46..674469533 100644 --- a/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Find-and-modify-hyperlink-address.csproj +++ b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Find-and-modify-hyperlink-address.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Output/.gitkeep b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Program.cs b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Program.cs index 2f97ee0ac..76fc83d37 100644 --- a/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/Program.cs +++ b/Paragraphs/Find-and-modify-hyperlink-address/.NET/Find-and-modify-hyperlink-address/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)) @@ -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. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Data/Image.png b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Data/Image.png new file mode 100644 index 000000000..21ee3adf8 Binary files /dev/null and b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Data/Image.png differ diff --git a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Format-and-rotate-image.csproj b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Format-and-rotate-image.csproj index 8e97389d0..f476c006d 100644 --- a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Format-and-rotate-image.csproj +++ b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Format-and-rotate-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Output/.gitkeep b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Program.cs b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Program.cs index 948fe62e7..10cc8a636 100644 --- a/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Program.cs +++ b/Paragraphs/Format-and-rotate-image/.NET/Format-and-rotate-image/Program.cs @@ -17,7 +17,7 @@ static void Main(string[] args) //Adds new paragraph to the section. IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("This paragraph has picture. "); - 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); //Appends new picture to the paragraph. WPicture picture = paragraph.AppendPicture(imageStream) as WPicture; //Sets text wrapping style – When the wrapping style is inline, the images are not absolutely positioned. It is added next to the text range. @@ -42,7 +42,7 @@ static void Main(string[] args) //Sets horizontal flip. picture.FlipHorizontal = true; //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/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Format-and-rotate-text-box.csproj b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Format-and-rotate-text-box.csproj index 705cb8864..3dc266be0 100644 --- a/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Format-and-rotate-text-box.csproj +++ b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Format-and-rotate-text-box.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Output/.gitkeep b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Program.cs b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Program.cs index 7c2f302b1..a5eeea342 100644 --- a/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Program.cs +++ b/Paragraphs/Format-and-rotate-text-box/.NET/Format-and-rotate-text-box/Program.cs @@ -42,7 +42,7 @@ static void Main(string[] args) //Sets horizontal flip. textbox.TextBoxFormat.FlipHorizontal = true; //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/Get-heading-list-value/.NET/Get-heading-list-value.sln b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value.sln new file mode 100644 index 000000000..c9446ee1d --- /dev/null +++ b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Get-heading-list-value", "Get-heading-list-value\Get-heading-list-value.csproj", "{C17B90BC-F559-456B-B189-90B53FF6CDD4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EF357FC6-E9E5-4E3C-B932-43F727BE1DE4} + EndGlobalSection +EndGlobal diff --git a/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Data/Template.docx b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Data/Template.docx new file mode 100644 index 000000000..1bbaaea2b Binary files /dev/null and b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Data/Template.docx differ diff --git a/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Get-heading-list-value.csproj b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Get-heading-list-value.csproj new file mode 100644 index 000000000..1c96bd0fc --- /dev/null +++ b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Get-heading-list-value.csproj @@ -0,0 +1,22 @@ + + + + Exe + net8.0 + Get_heading_list_value + + + + + + + + + Always + + + Always + + + + diff --git a/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Output/.gitkeep b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Program.cs b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Program.cs new file mode 100644 index 000000000..32c8a3496 --- /dev/null +++ b/Paragraphs/Get-heading-list-value/.NET/Get-heading-list-value/Program.cs @@ -0,0 +1,41 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using System.Collections.Generic; +using System; +using System.IO; + +namespace Get_heading_list_value +{ + class Program + { + static void Main(string[] args) + { + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + //Open an existing Word document from the file stream. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) + { + //Get the document text. + document.GetText(); + //Find all paragraphs with the style 'Heading 3' in the Word document. + List headingParagraphs = document.FindAllItemsByProperty(EntityType.Paragraph, "StyleName", "Heading 3"); + if (headingParagraphs.Count == 0) + Console.WriteLine("No paragraphs with the style 'Heading 3' found."); + else + { + foreach (Entity paragraph in headingParagraphs) + { + //Get the string that represents the appearance of list value of the paragraph. + if (paragraph is WParagraph) + Console.WriteLine((paragraph as WParagraph).ListString); + else + Console.WriteLine("The entity is not a WParagraph."); + } + } + //Pauses the console to display the output. + Console.ReadLine(); + } + } + } + } +} diff --git a/Paragraphs/Get-list-value/.NET/Get-list-value/Template.docx b/Paragraphs/Get-list-value/.NET/Get-list-value/Data/Template.docx similarity index 100% rename from Paragraphs/Get-list-value/.NET/Get-list-value/Template.docx rename to Paragraphs/Get-list-value/.NET/Get-list-value/Data/Template.docx diff --git a/Paragraphs/Get-list-value/.NET/Get-list-value/Get-list-value.csproj b/Paragraphs/Get-list-value/.NET/Get-list-value/Get-list-value.csproj index ab6a98064..87a8f90b6 100644 --- a/Paragraphs/Get-list-value/.NET/Get-list-value/Get-list-value.csproj +++ b/Paragraphs/Get-list-value/.NET/Get-list-value/Get-list-value.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Get-list-value/.NET/Get-list-value/Output/.gitkeep b/Paragraphs/Get-list-value/.NET/Get-list-value/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Get-list-value/.NET/Get-list-value/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Get-list-value/.NET/Get-list-value/Program.cs b/Paragraphs/Get-list-value/.NET/Get-list-value/Program.cs index 8fd0127a9..178170ccf 100644 --- a/Paragraphs/Get-list-value/.NET/Get-list-value/Program.cs +++ b/Paragraphs/Get-list-value/.NET/Get-list-value/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,9 +19,8 @@ static void Main(string[] args) //Gets the string that represents the appearance of list value of the paragraph. string listString = document.LastParagraph.ListString; Console.WriteLine("List value of last paragraph : " + listString); - Console.ReadKey(); //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/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Increase-or-decrease-list-indent.csproj b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Increase-or-decrease-list-indent.csproj index 6f34853a4..9cde545dc 100644 --- a/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Increase-or-decrease-list-indent.csproj +++ b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Increase-or-decrease-list-indent.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Output/.gitkeep b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Program.cs b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Program.cs index 687f3c65a..5e42ff1f4 100644 --- a/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Program.cs +++ b/Paragraphs/Increase-or-decrease-list-indent/.NET/Increase-or-decrease-list-indent/Program.cs @@ -43,7 +43,7 @@ static void Main(string[] args) //Increases the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/List-with-prefix-from-previous-level.csproj b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/List-with-prefix-from-previous-level.csproj index 6fda9273b..ccf623fe9 100644 --- a/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/List-with-prefix-from-previous-level.csproj +++ b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/List-with-prefix-from-previous-level.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Output/.gitkeep b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Program.cs b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Program.cs index d6588418f..2a8e74640 100644 --- a/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Program.cs +++ b/Paragraphs/List-with-prefix-from-previous-level/.NET/List-with-prefix-from-previous-level/Program.cs @@ -53,7 +53,7 @@ static void Main(string[] args) //Increases the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Template.docx b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Data/Template.docx similarity index 100% rename from Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Template.docx rename to Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Data/Template.docx diff --git a/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Modify-an-existing-paragraph.csproj b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Modify-an-existing-paragraph.csproj index c370287a6..c4620a12c 100644 --- a/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Modify-an-existing-paragraph.csproj +++ b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Modify-an-existing-paragraph.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Output/.gitkeep b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Program.cs b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Program.cs index 141228bda..a311c3bab 100644 --- a/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/Program.cs +++ b/Paragraphs/Modify-an-existing-paragraph/.NET/Modify-an-existing-paragraph/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)) @@ -29,7 +29,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/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Template.docx b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Data/Template.docx similarity index 100% rename from Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Template.docx rename to Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Data/Template.docx diff --git a/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Modify-an-existing-symbol.csproj b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Modify-an-existing-symbol.csproj index 9879e2c7b..124ce8994 100644 --- a/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Modify-an-existing-symbol.csproj +++ b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Modify-an-existing-symbol.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Output/.gitkeep b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Program.cs b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Program.cs index 1460bc02a..611db0443 100644 --- a/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/Program.cs +++ b/Paragraphs/Modify-an-existing-symbol/.NET/Modify-an-existing-symbol/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -34,7 +34,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/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Template.docx b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Data/Template.docx similarity index 100% rename from Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Template.docx rename to Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Data/Template.docx diff --git a/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Modify-url-of-hyperlink.csproj b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Modify-url-of-hyperlink.csproj index a542ba160..99f05ac36 100644 --- a/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Modify-url-of-hyperlink.csproj +++ b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Modify-url-of-hyperlink.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Output/.gitkeep b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Program.cs b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Program.cs index 095f6704c..cd057ab73 100644 --- a/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/Program.cs +++ b/Paragraphs/Modify-url-of-hyperlink/.NET/Modify-url-of-hyperlink/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -34,7 +34,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/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Multilevel-bulleted-list.csproj b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Multilevel-bulleted-list.csproj index 92db467a3..a45a657ad 100644 --- a/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Multilevel-bulleted-list.csproj +++ b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Multilevel-bulleted-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Output/.gitkeep b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Program.cs b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Program.cs index f109fe551..d60b4ba04 100644 --- a/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Program.cs +++ b/Paragraphs/Multilevel-bulleted-list/.NET/Multilevel-bulleted-list/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Increases the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Multilevel-numbered-list.csproj b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Multilevel-numbered-list.csproj index 665fffb63..466596a65 100644 --- a/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Multilevel-numbered-list.csproj +++ b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Multilevel-numbered-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Output/.gitkeep b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Program.cs b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Program.cs index 6f192be53..cc67da1fa 100644 --- a/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Program.cs +++ b/Paragraphs/Multilevel-numbered-list/.NET/Multilevel-numbered-list/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Increases the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/RTL-paragraph/.NET/RTL-paragraph/Template.docx b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Data/Template.docx similarity index 100% rename from Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Template.docx rename to Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Data/Template.docx diff --git a/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Output/.gitkeep b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Program.cs b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Program.cs index 466ee3541..218407da7 100644 --- a/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/Program.cs +++ b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) if (!isRTL) paragraph.ParagraphFormat.Bidi = true; //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/RTL-paragraph/.NET/RTL-paragraph/RTL-paragraph.csproj b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/RTL-paragraph.csproj index 1f8cebca6..fa1d53975 100644 --- a/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/RTL-paragraph.csproj +++ b/Paragraphs/RTL-paragraph/.NET/RTL-paragraph/RTL-paragraph.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Remove-image/.NET/Remove-image/Template.docx b/Paragraphs/Remove-image/.NET/Remove-image/Data/Template.docx similarity index 100% rename from Paragraphs/Remove-image/.NET/Remove-image/Template.docx rename to Paragraphs/Remove-image/.NET/Remove-image/Data/Template.docx diff --git a/Paragraphs/Remove-image/.NET/Remove-image/Output/.gitkeep b/Paragraphs/Remove-image/.NET/Remove-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Remove-image/.NET/Remove-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Remove-image/.NET/Remove-image/Program.cs b/Paragraphs/Remove-image/.NET/Remove-image/Program.cs index 6d846c699..b13070020 100644 --- a/Paragraphs/Remove-image/.NET/Remove-image/Program.cs +++ b/Paragraphs/Remove-image/.NET/Remove-image/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -29,7 +29,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/Paragraphs/Remove-image/.NET/Remove-image/Remove-image.csproj b/Paragraphs/Remove-image/.NET/Remove-image/Remove-image.csproj index 92516b06e..2f456543a 100644 --- a/Paragraphs/Remove-image/.NET/Remove-image/Remove-image.csproj +++ b/Paragraphs/Remove-image/.NET/Remove-image/Remove-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Template.docx b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Data/Template.docx similarity index 100% rename from Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Template.docx rename to Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Data/Template.docx diff --git a/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Output/.gitkeep b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Program.cs b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Program.cs index 0dfb25203..a74f0b5e8 100644 --- a/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Program.cs +++ b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/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) //Remove OLE object from the document. RemoveOLEObject(document); //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/Remove-ole-object/.NET/Remove-ole-object/Remove-ole-object.csproj b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Remove-ole-object.csproj index 09b2ab675..826780609 100644 --- a/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Remove-ole-object.csproj +++ b/Paragraphs/Remove-ole-object/.NET/Remove-ole-object/Remove-ole-object.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Output/.gitkeep b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Program.cs b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Program.cs index b3f9dd1ce..94cd5af16 100644 --- a/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Program.cs +++ b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Program.cs @@ -1,7 +1,7 @@ using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; -using (FileStream inputStream = new FileStream(@"../../../Data/Template.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read)) { //Open the existing Word document. using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -14,7 +14,7 @@ (entity as Break).OwnerParagraph.ChildEntities.Remove(entity); //Save the Word document - using (FileStream outputStream = new FileStream(@"../../../Output.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) { document.Save(outputStream, FormatType.Docx); } diff --git a/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Remove_all_page_breaks.csproj b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Remove_all_page_breaks.csproj index 8850c522b..07b5f8eee 100644 --- a/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Remove_all_page_breaks.csproj +++ b/Paragraphs/Remove_all_page_breaks/.NET/Remove_all_page_breaks/Remove_all_page_breaks.csproj @@ -11,4 +11,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Replace-image/.NET/Replace-image/Output/.gitkeep b/Paragraphs/Replace-image/.NET/Replace-image/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Replace-image/.NET/Replace-image/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Replace-image/.NET/Replace-image/Program.cs b/Paragraphs/Replace-image/.NET/Replace-image/Program.cs index 464a53191..28b28a26b 100644 --- a/Paragraphs/Replace-image/.NET/Replace-image/Program.cs +++ b/Paragraphs/Replace-image/.NET/Replace-image/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - 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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -26,14 +26,14 @@ static void Main(string[] args) //Replaces the image. if (picture.Title == "Bookmark") { - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite); picture.LoadImage(imageStream); } } } } //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/Replace-image/.NET/Replace-image/Replace-image.csproj b/Paragraphs/Replace-image/.NET/Replace-image/Replace-image.csproj index f1e7f22f2..3fc6c41af 100644 --- a/Paragraphs/Replace-image/.NET/Replace-image/Replace-image.csproj +++ b/Paragraphs/Replace-image/.NET/Replace-image/Replace-image.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Template.docx b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Data/Template.docx similarity index 100% rename from Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Template.docx rename to Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Data/Template.docx diff --git a/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Output/.gitkeep b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Program.cs b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Program.cs index b2160e14e..ac37d3076 100644 --- a/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Program.cs +++ b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, 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/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Replace-text-of-a-text-range.csproj b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Replace-text-of-a-text-range.csproj index c7e11e780..3d156ed10 100644 --- a/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Replace-text-of-a-text-range.csproj +++ b/Paragraphs/Replace-text-of-a-text-range/.NET/Replace-text-of-a-text-range/Replace-text-of-a-text-range.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Template.docx b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Data/Template.docx similarity index 100% rename from Paragraphs/Resize-list-character/.NET/Resize-list-character/Template.docx rename to Paragraphs/Resize-list-character/.NET/Resize-list-character/Data/Template.docx diff --git a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Output/.gitkeep b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Program.cs b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Program.cs index a77cce591..a787a4e2b 100644 --- a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Program.cs +++ b/Paragraphs/Resize-list-character/.NET/Resize-list-character/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)) { //Open the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) } //Create 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)) { //Save the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Resize-list-character.csproj b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Resize-list-character.csproj index 4a7587fdb..1d0006c58 100644 --- a/Paragraphs/Resize-list-character/.NET/Resize-list-character/Resize-list-character.csproj +++ b/Paragraphs/Resize-list-character/.NET/Resize-list-character/Resize-list-character.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Output/.gitkeep b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Program.cs b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Program.cs index 25c41a517..c835a1c11 100644 --- a/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Program.cs +++ b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Program.cs @@ -22,7 +22,7 @@ static void Main(string[] args) text.CharacterFormat.UseContextualAlternates = true; paragraph = section.AddParagraph(); //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/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Set-contextual-alternates-for-text.csproj b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Set-contextual-alternates-for-text.csproj index 2ffdaf93e..670c30d16 100644 --- a/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Set-contextual-alternates-for-text.csproj +++ b/Paragraphs/Set-contextual-alternates-for-text/.NET/Set-contextual-alternates-for-text/Set-contextual-alternates-for-text.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Output/.gitkeep b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Program.cs b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Program.cs index 3ec263d5b..220d6282d 100644 --- a/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Program.cs +++ b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Program.cs @@ -29,7 +29,7 @@ static void Main(string[] args) text.CharacterFormat.Ligatures = LigatureType.Historical; text.CharacterFormat.FontName = "Arial"; //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/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Set-ligature-types-tor-text.csproj b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Set-ligature-types-tor-text.csproj index 0774b1e55..ed5e540b9 100644 --- a/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Set-ligature-types-tor-text.csproj +++ b/Paragraphs/Set-ligature-types-tor-text/.NET/Set-ligature-types-tor-text/Set-ligature-types-tor-text.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Set-number-forms/.NET/Set-number-forms/Output/.gitkeep b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Set-number-forms/.NET/Set-number-forms/Program.cs b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Program.cs index a570a8b6e..f571cf583 100644 --- a/Paragraphs/Set-number-forms/.NET/Set-number-forms/Program.cs +++ b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Sets number style. text.CharacterFormat.NumberForm = NumberFormType.Lining; //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/Set-number-forms/.NET/Set-number-forms/Set-number-forms.csproj b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Set-number-forms.csproj index cc2f9743d..36aa3e856 100644 --- a/Paragraphs/Set-number-forms/.NET/Set-number-forms/Set-number-forms.csproj +++ b/Paragraphs/Set-number-forms/.NET/Set-number-forms/Set-number-forms.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Output/.gitkeep b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Program.cs b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Program.cs index 5e37581c2..2c6a30798 100644 --- a/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Program.cs +++ b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Sets number spacing. text.CharacterFormat.NumberSpacing = NumberSpacingType.Proportional; //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/Set-number-spacing/.NET/Set-number-spacing/Set-number-spacing.csproj b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Set-number-spacing.csproj index 6878960f7..fe6484b0c 100644 --- a/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Set-number-spacing.csproj +++ b/Paragraphs/Set-number-spacing/.NET/Set-number-spacing/Set-number-spacing.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Output/.gitkeep b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Program.cs b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Program.cs index 93b2440d7..b9a885f94 100644 --- a/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Program.cs +++ b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) //Continues last defined list. paragraph.ListFormat.ContinueListNumbering(); //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/Simple-bulleted-list/.NET/Simple-bulleted-list/Simple-bulleted-list.csproj b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Simple-bulleted-list.csproj index b7ec3be1d..bb0ea4ecf 100644 --- a/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Simple-bulleted-list.csproj +++ b/Paragraphs/Simple-bulleted-list/.NET/Simple-bulleted-list/Simple-bulleted-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Output/.gitkeep b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Program.cs b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Program.cs index 288b7180d..fc436fc27 100644 --- a/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Program.cs +++ b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Program.cs @@ -32,7 +32,7 @@ static void Main(string[] args) //Continues last defined list. paragraph.ListFormat.ContinueListNumbering(); //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/Simple-numbered-list/.NET/Simple-numbered-list/Simple-numbered-list.csproj b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Simple-numbered-list.csproj index dccd2943d..5b657ac94 100644 --- a/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Simple-numbered-list.csproj +++ b/Paragraphs/Simple-numbered-list/.NET/Simple-numbered-list/Simple-numbered-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Output/.gitkeep b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Program.cs b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Program.cs index 6bc65c015..889e3899a 100644 --- a/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Program.cs +++ b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) //Sets stylistic set. text.CharacterFormat.StylisticSet = StylisticSetType.StylisticSet15; //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/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Stylistic-set-for-text.csproj b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Stylistic-set-for-text.csproj index f50f76c21..a6e9fd093 100644 --- a/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Stylistic-set-for-text.csproj +++ b/Paragraphs/Stylistic-set-for-text/.NET/Stylistic-set-for-text/Stylistic-set-for-text.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Template.docx b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Data/Template.docx similarity index 100% rename from Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Template.docx rename to Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Data/Template.docx diff --git a/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Output/.gitkeep b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Program.cs b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Program.cs index ca0ac96da..e3a60ace6 100644 --- a/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Program.cs +++ b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -20,7 +20,7 @@ static void Main(string[] args) //Insert text wrapping break in specific index. paragraph.ChildEntities.Insert(1, textWrappingBreak); //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/Text-wrapping-break/.NET/Text-wrapping-break/Text-wrapping-break.csproj b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Text-wrapping-break.csproj index 642768025..49b2cccf9 100644 --- a/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Text-wrapping-break.csproj +++ b/Paragraphs/Text-wrapping-break/.NET/Text-wrapping-break/Text-wrapping-break.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Output/.gitkeep b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Program.cs b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Program.cs index 2fea18dcf..e6370346f 100644 --- a/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Program.cs +++ b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/Program.cs @@ -53,7 +53,7 @@ static void Main(string[] args) //Increase the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/User-defined-bulleted-list/.NET/User-defined-bulleted-list/User-defined-bulleted-list.csproj b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/User-defined-bulleted-list.csproj index 44bfca426..6cd62ed99 100644 --- a/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/User-defined-bulleted-list.csproj +++ b/Paragraphs/User-defined-bulleted-list/.NET/User-defined-bulleted-list/User-defined-bulleted-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Output/.gitkeep b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Program.cs b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Program.cs index 7c8f97989..64dcea716 100644 --- a/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Program.cs +++ b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/Program.cs @@ -44,7 +44,7 @@ static void Main(string[] args) //Increases the level indent. paragraph.ListFormat.IncreaseIndentLevel(); //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/User-defined-numbered-list/.NET/User-defined-numbered-list/User-defined-numbered-list.csproj b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/User-defined-numbered-list.csproj index ff9e59077..7785fafa4 100644 --- a/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/User-defined-numbered-list.csproj +++ b/Paragraphs/User-defined-numbered-list/.NET/User-defined-numbered-list/User-defined-numbered-list.csproj @@ -10,4 +10,10 @@ + + + Always + + + 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 40c7283a1..423cedc1a 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 000000000..5f282702b --- /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 998ba49cd..3b021afd3 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 8330c3d00..a6db29623 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 000000000..5f282702b --- /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 61efb9009..8b149cd4e 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 13b2b90da..cbde1d700 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 000000000..5f282702b --- /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 93f09e986..733606f98 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 dd5083ad7..90739b67d 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 000000000..5f282702b --- /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 15bd967f1..245b0a7ee 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 591bcb34c..ca7f1e7eb 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 94ad0e30e..634213b58 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/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/Open-and-save-Word-document.csproj b/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/Open-and-save-Word-document.csproj index 115bc4700..c7fcd2d19 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/Open-and-save-Word-document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/Open-and-save-Word-document.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/packages.config b/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/packages.config index ff796ce92..6be96b6c5 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/packages.config +++ b/Read-and-Save-document/Open-and-save-Word-document/.NET-Framework/Open-and-save-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Open-and-save-Word-document.csproj b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Open-and-save-Word-document.csproj index 8dd36e11c..caec02111 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Open-and-save-Word-document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Open-and-save-Word-document.csproj @@ -46,17 +46,17 @@ - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.OfficeChart.Base.dll diff --git a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Web.config b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Web.config index ba42ae46c..bfca76b12 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Web.config +++ b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/Web.config @@ -17,7 +17,7 @@ - + @@ -70,7 +70,7 @@ - + \ No newline at end of file diff --git a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/packages.config b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/packages.config index 4d009cea0..bc4599fd0 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/packages.config +++ b/Read-and-Save-document/Open-and-save-Word-document/ASP.NET-MVC/Open-and-save-Word-document/packages.config @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj index a05c79f0c..4c8d6c693 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Open_and_Save_Word_Document diff --git a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/aws-beanstalk-tools-defaults.json b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/aws-beanstalk-tools-defaults.json index 4674fef80..bf5e4a45f 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/aws-beanstalk-tools-defaults.json +++ b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Elastic_Beanstalk/Open-and-Save-Word-Document/aws-beanstalk-tools-defaults.json @@ -2,7 +2,7 @@ { "region" : "us-east-1", "configuration" : "Debug", - "framework" : "net6.0", + "framework" : "net8.0", "self-contained" : false, "application" : "ConvertWordDocumenttoPDF2", "environment" : "ConvertWordDocumenttoPDF2-test", diff --git a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj index b64187777..77aab51c5 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Properties/launchSettings.json b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Properties/launchSettings.json index e6144efbb..28a3bca9a 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Properties/launchSettings.json +++ b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/Properties/launchSettings.json @@ -3,8 +3,8 @@ "Mock Lambda Test Tool": { "commandName": "Executable", "commandLineArgs": "--port 5050", - "workingDirectory": ".\\bin\\$(Configuration)\\net6.0", - "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe" + "workingDirectory": ".\\bin\\$(Configuration)\\net8.0", + "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-8.0.exe" } } } \ No newline at end of file diff --git a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/aws-lambda-tools-defaults.json b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/aws-lambda-tools-defaults.json index ecffe86cc..a5478afbd 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/aws-lambda-tools-defaults.json +++ b/Read-and-Save-document/Open-and-save-Word-document/AWS/AWS_Lambda/Open-and-Save-Word-Document/aws-lambda-tools-defaults.json @@ -9,7 +9,7 @@ "region": "us-east-1", "configuration": "Release", "function-architecture": "x86_64", - "function-runtime": "dotnet6", + "function-runtime": "dotnet8", "function-memory-size": 256, "function-timeout": 30, "function-handler": "Open-and-Save-Word-Document::Open_and_Save_Word_Document.Function::FunctionHandler" diff --git a/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_App_Service/Open_and_save_Word_document/Open_and_save_Word_document.csproj b/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_App_Service/Open_and_save_Word_document/Open_and_save_Word_document.csproj index 21822845c..a59c4fb37 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_App_Service/Open_and_save_Word_document/Open_and_save_Word_document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_App_Service/Open_and_save_Word_document/Open_and_save_Word_document.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable diff --git a/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_Functions/Azure_Functions_v4/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj b/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_Functions/Azure_Functions_v4/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj index 18738dd37..6cb3d5e5c 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_Functions/Azure_Functions_v4/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/Azure/Azure_Functions/Azure_Functions_v4/Open-and-Save-Word-Document/Open-and-Save-Word-Document.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 v4 Open_and_Save_Word_Document diff --git a/Read-and-Save-document/Open-and-save-Word-document/GCP/Google_App_Engine/Open-and-save-Word-document/Open-and-save-Word-document.csproj b/Read-and-Save-document/Open-and-save-Word-document/GCP/Google_App_Engine/Open-and-save-Word-document/Open-and-save-Word-document.csproj index 2bdd99331..d36f778c5 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/GCP/Google_App_Engine/Open-and-save-Word-document/Open-and-save-Word-document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/GCP/Google_App_Engine/Open-and-save-Word-document/Open-and-save-Word-document.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable enable Open_and_save_Word_document diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document.sln b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document.sln new file mode 100644 index 000000000..63b314c6d --- /dev/null +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Open-Word-document", "Open-Word-document\Open-Word-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Merge\342\200\223multiple-Word-files-in-same-page.csproj" b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Open-Word-document.csproj similarity index 65% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Merge\342\200\223multiple-Word-files-in-same-page.csproj" rename to Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Open-Word-document.csproj index 96cb3b214..6f5e6524f 100644 --- "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Merge\342\200\223multiple-Word-files-in-same-page.csproj" +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Open-Word-document.csproj @@ -3,13 +3,12 @@ Exe net8.0 - Merge_multiple_Word_files_in_same_page + Open_Word_document enable enable - + - diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Program.cs b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Program.cs new file mode 100644 index 000000000..130dc2fb9 --- /dev/null +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Open-Word-document/Open-Word-document/Program.cs @@ -0,0 +1,51 @@ +using Google.Apis.Auth.OAuth2; +using Google.Apis.Drive.v3; +using Google.Apis.Services; +using Google.Apis.Util.Store; + +namespace Open_Word_document +{ + internal class Program + { + static void Main(string[] args) + { + UserCredential credential; + string[] Scopes = { DriveService.Scope.DriveReadonly }; + string ApplicationName = "YourAppName"; + // Step 1: Open Google Drive with credentials. + using (var stream1 = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) + { + string credPath = "token.json"; + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(stream1).Secrets, + Scopes, + "users", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + + // Step 2: Create Drive API service. + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + // Step 3: Specify the file ID of the Word document you want to open. + string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID. + + // Step 4: Download the Word document from Google Drive. + var request = service.Files.Get(fileId); + var stream = new MemoryStream(); + request.Download(stream); + + // Step 5: Save the Word document locally + using (FileStream fileStream = new FileStream("Output.docx", FileMode.Create, FileAccess.Write)) + { + stream.WriteTo(fileStream); + } + //Dispose the stream. + stream.Dispose(); + } + } +} diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document.sln b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document.sln new file mode 100644 index 000000000..a5453234d --- /dev/null +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Save-Word-document", "Save-Word-document\Save-Word-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Image.png b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/AdventureCycle.jpg similarity index 100% rename from Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Image.png rename to Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/AdventureCycle.jpg diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-200.jpg b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-200.jpg new file mode 100644 index 000000000..21ee3adf8 Binary files /dev/null and b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-200.jpg differ diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-300.jpg b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-300.jpg new file mode 100644 index 000000000..867b882db Binary files /dev/null and b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Mountain-300.jpg differ diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Road-550-W.jpg b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Road-550-W.jpg new file mode 100644 index 000000000..291232706 Binary files /dev/null and b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Data/Road-550-W.jpg differ diff --git a/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Program.cs b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Program.cs new file mode 100644 index 000000000..bc1cc1353 --- /dev/null +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Program.cs @@ -0,0 +1,286 @@ +using Google.Apis.Auth.OAuth2; +using Google.Apis.Drive.v3; +using Google.Apis.Services; +using Google.Apis.Util.Store; +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; +using File = Google.Apis.Drive.v3.Data.File; + +namespace Save_Word_document +{ + internal class Program + { + static void Main(string[] args) + { + //Creating a new document. + WordDocument document = new WordDocument(); + //Adding a new section to the document. + WSection section = document.AddSection() as WSection; + //Set Margin of the section. + section.PageSetup.Margins.All = 72; + //Set page size of the section. + section.PageSetup.PageSize = new Syncfusion.Drawing.SizeF(612, 792); + + //Create Paragraph styles. + WParagraphStyle style = document.AddParagraphStyle("Normal") as WParagraphStyle; + style.CharacterFormat.FontName = "Calibri"; + style.CharacterFormat.FontSize = 11f; + style.ParagraphFormat.BeforeSpacing = 0; + style.ParagraphFormat.AfterSpacing = 8; + style.ParagraphFormat.LineSpacing = 13.8f; + + style = document.AddParagraphStyle("Heading 1") as WParagraphStyle; + style.ApplyBaseStyle("Normal"); + style.CharacterFormat.FontName = "Calibri Light"; + style.CharacterFormat.FontSize = 16f; + style.CharacterFormat.TextColor = Syncfusion.Drawing.Color.FromArgb(46, 116, 181); + style.ParagraphFormat.BeforeSpacing = 12; + style.ParagraphFormat.AfterSpacing = 0; + style.ParagraphFormat.Keep = true; + style.ParagraphFormat.KeepFollow = true; + style.ParagraphFormat.OutlineLevel = OutlineLevel.Level1; + + IWParagraph paragraph = section.HeadersFooters.Header.AddParagraph(); + + //Gets the image stream. + FileStream imageStream = new FileStream(Path.GetFullPath("../../../Data/AdventureCycle.jpg"), FileMode.Open, FileAccess.Read); + IWPicture picture = paragraph.AppendPicture(imageStream); + picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText; + picture.VerticalOrigin = VerticalOrigin.Margin; + picture.VerticalPosition = -45; + picture.HorizontalOrigin = HorizontalOrigin.Column; + picture.HorizontalPosition = 263.5f; + picture.WidthScale = 20; + picture.HeightScale = 15; + + paragraph.ApplyStyle("Normal"); + paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Left; + WTextRange textRange = paragraph.AppendText("Adventure Works Cycles") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Calibri"; + textRange.CharacterFormat.TextColor = Syncfusion.Drawing.Color.Red; + + //Appends paragraph. + paragraph = section.AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; + textRange = paragraph.AppendText("Adventure Works Cycles") as WTextRange; + textRange.CharacterFormat.FontSize = 18f; + textRange.CharacterFormat.FontName = "Calibri"; + + //Appends paragraph. + paragraph = section.AddParagraph(); + paragraph.ParagraphFormat.FirstLineIndent = 36; + paragraph.BreakCharacterFormat.FontSize = 12f; + textRange = paragraph.AppendText("Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is in Bothell, Washington with 290 employees, several regional sales teams are located throughout their market base.") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + + //Appends paragraph. + paragraph = section.AddParagraph(); + paragraph.ParagraphFormat.FirstLineIndent = 36; + paragraph.BreakCharacterFormat.FontSize = 12f; + textRange = paragraph.AppendText("In 2000, AdventureWorks Cycles bought a small manufacturing plant, Importadores Neptuno, located in Mexico. Importadores Neptuno manufactures several critical subcomponents for the AdventureWorks Cycles product line. These subcomponents are shipped to the Bothell location for final product assembly. In 2001, Importadores Neptuno, became the sole manufacturer and distributor of the touring bicycle product group.") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + + paragraph = section.AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Left; + textRange = paragraph.AppendText("Product Overview") as WTextRange; + textRange.CharacterFormat.FontSize = 16f; + textRange.CharacterFormat.FontName = "Calibri"; + + //Appends table. + IWTable table = section.AddTable(); + table.ResetCells(3, 2); + table.TableFormat.Borders.BorderType = BorderStyle.None; + table.TableFormat.IsAutoResized = true; + + //Appends paragraph. + paragraph = table[0, 0].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.BreakCharacterFormat.FontSize = 12f; + + //Appends picture to the paragraph. + FileStream image1 = new FileStream(Path.GetFullPath("../../../Data/Mountain-200.jpg"), FileMode.Open, FileAccess.Read); + picture = paragraph.AppendPicture(image1); + picture.TextWrappingStyle = TextWrappingStyle.TopAndBottom; + picture.VerticalOrigin = VerticalOrigin.Paragraph; + picture.VerticalPosition = 4.5f; + picture.HorizontalOrigin = HorizontalOrigin.Column; + picture.HorizontalPosition = -2.15f; + picture.WidthScale = 79; + picture.HeightScale = 79; + + //Appends paragraph. + paragraph = table[0, 1].AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.AppendText("Mountain-200"); + + //Appends paragraph. + paragraph = table[0, 1].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.BreakCharacterFormat.FontSize = 12f; + paragraph.BreakCharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Product No: BK-M68B-38\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Size: 38\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Weight: 25\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Price: $2,294.99\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + + //Appends paragraph. + paragraph = table[0, 1].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.BreakCharacterFormat.FontSize = 12f; + + //Appends paragraph. + paragraph = table[1, 0].AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.AppendText("Mountain-300 "); + + //Appends paragraph. + paragraph = table[1, 0].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.BreakCharacterFormat.FontSize = 12f; + paragraph.BreakCharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Product No: BK-M47B-38\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Size: 35\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Weight: 22\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Price: $1,079.99\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + + //Appends paragraph. + paragraph = table[1, 0].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.BreakCharacterFormat.FontSize = 12f; + + //Appends paragraph. + paragraph = table[1, 1].AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.LineSpacing = 12f; + + //Appends picture to the paragraph. + FileStream image2 = new FileStream(Path.GetFullPath("../../../Data/Mountain-300.jpg"), FileMode.Open, FileAccess.Read); + picture = paragraph.AppendPicture(image2); + picture.TextWrappingStyle = TextWrappingStyle.TopAndBottom; + picture.VerticalOrigin = VerticalOrigin.Paragraph; + picture.VerticalPosition = 8.2f; + picture.HorizontalOrigin = HorizontalOrigin.Column; + picture.HorizontalPosition = -14.95f; + picture.WidthScale = 75; + picture.HeightScale = 75; + + //Appends paragraph. + paragraph = table[2, 0].AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.LineSpacing = 12f; + + //Appends picture to the paragraph. + FileStream image3 = new FileStream(Path.GetFullPath("../../../Data/Road-550-W.jpg"), FileMode.Open, FileAccess.Read); + picture = paragraph.AppendPicture(image3); + picture.TextWrappingStyle = TextWrappingStyle.TopAndBottom; + picture.VerticalOrigin = VerticalOrigin.Paragraph; + picture.VerticalPosition = 3.75f; + picture.HorizontalOrigin = HorizontalOrigin.Column; + picture.HorizontalPosition = -5f; + picture.WidthScale = 92; + picture.HeightScale = 92; + + //Appends paragraph. + paragraph = table[2, 1].AddParagraph(); + paragraph.ApplyStyle("Heading 1"); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.AppendText("Road-150 "); + + //Appends paragraph. + paragraph = table[2, 1].AddParagraph(); + paragraph.ParagraphFormat.AfterSpacing = 0; + paragraph.ParagraphFormat.LineSpacing = 12f; + paragraph.BreakCharacterFormat.FontSize = 12f; + paragraph.BreakCharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Product No: BK-R93R-44\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Size: 44\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Weight: 14\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + textRange = paragraph.AppendText("Price: $3,578.27\r") as WTextRange; + textRange.CharacterFormat.FontSize = 12f; + textRange.CharacterFormat.FontName = "Times New Roman"; + + //Appends paragraph. + section.AddParagraph(); + + //Saves the Word document to MemoryStream. + MemoryStream stream = new MemoryStream(); + document.Save(stream, FormatType.Docx); + + // Load Google Drive API credentials from a file. + UserCredential credential; + string[] Scopes = { DriveService.Scope.Drive }; + string ApplicationName = "YourAppName"; + + using (var stream1 = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) + { + string credPath = "token.json"; + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(stream1).Secrets, + Scopes, + "user", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + + // Create a new instance of Google Drive service. + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + // Create metadata for the file to be uploaded. + var fileMetadata = new File() + { + Name = "Output.docx", // Name of the file in Google Drive. + MimeType = "application/msword", + }; + FilesResource.CreateMediaUpload request; + // Create a memory stream from the Word document. + using (var fs = new MemoryStream(stream.ToArray())) + { + // Create an upload request for Google Drive. + request = service.Files.Create(fileMetadata, fs, "application/msword"); + // Upload the file. + request.Upload(); + } + //Dispose the stream. + stream.Dispose(); + document.Close(); + } + } +} \ No newline at end of file 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/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Save-Word-document.csproj similarity index 64% rename from Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj rename to Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Save-Word-document.csproj index 7d09a483c..cd49dc7ef 100644 --- a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Set-image-in-first-page-only.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/Google-Drive/Save-Word-document/Save-Word-document/Save-Word-document.csproj @@ -1,15 +1,15 @@ - + Exe net8.0 - Set_image_in_first_page_only + Save_Word_document enable enable + - diff --git a/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/Open-and-save-Word-document.csproj b/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/Open-and-save-Word-document.csproj index 19bf14daf..fd45376cb 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/Open-and-save-Word-document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/Open-and-save-Word-document.csproj @@ -36,17 +36,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.Wpf.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.Wpf.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/packages.config b/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/packages.config index f0ac24332..7da726d83 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/packages.config +++ b/Read-and-Save-document/Open-and-save-Word-document/WPF/Open-and-save-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/Open-and-save-Word-document.csproj b/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/Open-and-save-Word-document.csproj index b9aef73ef..342462d7e 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/Open-and-save-Word-document.csproj +++ b/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/Open-and-save-Word-document.csproj @@ -33,17 +33,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net40\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net40\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net40\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net40\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net45\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net45\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net40\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net40\Syncfusion.OfficeChart.Base.dll diff --git a/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/packages.config b/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/packages.config index 1484062d7..dbc087608 100644 --- a/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/packages.config +++ b/Read-and-Save-document/Open-and-save-Word-document/Windows-Forms/Open-and-save-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/Open-read-only-Word-document.csproj b/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/Open-read-only-Word-document.csproj index a06a73d06..fa49d3177 100644 --- a/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/Open-read-only-Word-document.csproj +++ b/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/Open-read-only-Word-document.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/packages.config b/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/packages.config index ff796ce92..6be96b6c5 100644 --- a/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/packages.config +++ b/Read-and-Save-document/Open-read-only-Word-document/.NET-Framework/Open-read-only-Word-document/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file 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 2c7667c06..6788a7697 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 000000000..5f282702b --- /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 64ec0266c..cd0554642 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 0d210bec1..1cb359424 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 000000000..5f282702b --- /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 ed0265cb3..be4469a61 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-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/Add-default-header-and-footer.csproj b/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/Add-default-header-and-footer.csproj index cda866e2a..43e74b938 100644 --- a/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/Add-default-header-and-footer.csproj +++ b/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/Add-default-header-and-footer.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/packages.config b/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/packages.config index 6cddcdae1..34e5a94b9 100644 --- a/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/packages.config +++ b/Sections/Add-default-header-and-footer/.NET-Framework/Add-default-header-and-footer/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file 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 545584984..c3dd8b8b2 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 000000000..5f282702b --- /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 85befa637..3c28fa1fe 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 e6e078b34..f6a0d9ba9 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 000000000..5f282702b --- /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 104a584b3..1ae1cd4ff 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 e2205fddb..71bad889b 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 000000000..5f282702b --- /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 ea2b96288..bbcce07c4 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 081dbec9d..2f83ab807 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 000000000..5f282702b --- /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 251b99780..aa6b5eb0a 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 f09a2d371..bec1ed6cc 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 000000000..5f282702b --- /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 c71cd9b79..c6a575c29 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/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections.sln b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections.sln new file mode 100644 index 000000000..f922fd1b2 --- /dev/null +++ b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Copy-header-footer-to-other-sections", "Copy-header-footer-to-other-sections\Copy-header-footer-to-other-sections.csproj", "{DF9791C7-C8AB-42DA-B567-8855A266E519}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DF9791C7-C8AB-42DA-B567-8855A266E519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF9791C7-C8AB-42DA-B567-8855A266E519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF9791C7-C8AB-42DA-B567-8855A266E519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF9791C7-C8AB-42DA-B567-8855A266E519}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6A3BB269-566F-4D3D-AE4B-CD050619D178} + EndGlobalSection +EndGlobal diff --git a/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Copy-header-footer-to-other-sections.csproj b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Copy-header-footer-to-other-sections.csproj new file mode 100644 index 000000000..9499aa793 --- /dev/null +++ b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Copy-header-footer-to-other-sections.csproj @@ -0,0 +1,25 @@ + + + + Exe + net8.0 + Copy_header_footer_to_other_sections + enable + enable + + + + + + + + + Always + + + Always + + + + + diff --git a/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Output/.gitkeep b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Program.cs b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Program.cs new file mode 100644 index 000000000..748696a80 --- /dev/null +++ b/Sections/Copy-header-footer-to-other-sections/.NET/Copy-header-footer-to-other-sections/Program.cs @@ -0,0 +1,65 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; + +//Open an existing Word document from the specified file path. +using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read)) +{ + //Create a new instance of the WordDocument class and load the document from the FileStream. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) + { + //Retrieve the first section of the Word document. + WSection firstSection = document.Sections[0]; + //Iterate through each section in the Word document starting from the second section. + for (int index = 1; index < document.Sections.Count; index++) + { + //Copy the headers and footers from the first section to the current section. + UpdateHeaderFooter(firstSection, document.Sections[index]); + } + //Remove the first section from the document. + document.Sections.RemoveAt(0); + //Create a FileStream to save the modified document to a new file at the specified path. + using (FileStream stream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) + { + //Save the Word document to the stream in DOCX format. + document.Save(stream, FormatType.Docx); + } + } +} + +/// +/// Copy the source section header and footer to destination section +/// +void UpdateHeaderFooter(WSection sourceSection, WSection destinationSection) +{ + //Clear the destination section header and footer + ClearHeaderFooter(destinationSection); + //Add Headers + for (int j = 0; j < sourceSection.HeadersFooters.Header.ChildEntities.Count; j++) + { + destinationSection.HeadersFooters.Header.ChildEntities.Add(sourceSection.HeadersFooters.Header.ChildEntities[j].Clone()); + } + //Add Footers + for (int j = 0; j < sourceSection.HeadersFooters.Footer.ChildEntities.Count; j++) + { + destinationSection.HeadersFooters.Footer.ChildEntities.Add(sourceSection.HeadersFooters.Footer.ChildEntities[j].Clone()); + } +} + +/// +/// Clear all header and footer for the section +/// +void ClearHeaderFooter(WSection section) +{ + //Remove the first page header. + section.HeadersFooters.FirstPageHeader.ChildEntities.Clear(); + //Remove the first page footer. + section.HeadersFooters.FirstPageFooter.ChildEntities.Clear(); + //Remove the odd footer. + section.HeadersFooters.OddFooter.ChildEntities.Clear(); + //Remove the odd header. + section.HeadersFooters.OddHeader.ChildEntities.Clear(); + //Remove the even header. + section.HeadersFooters.EvenHeader.ChildEntities.Clear(); + //Remove the even footer. + section.HeadersFooters.EvenFooter.ChildEntities.Clear(); +} \ No newline at end of file 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 ad49a7a45..dad72b160 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 000000000..5f282702b --- /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 46cbafb0b..b9e94f18c 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 2237809d3..ad860e83f 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 000000000..5f282702b --- /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 dfb7593c0..3e6da0a56 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 c4cf42bf0..172d80c28 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 000000000..5f282702b --- /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 6845ec97a..13816f310 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 626046846..bbc237b52 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 000000000..5f282702b --- /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 c61f3c0c0..8da93ffc5 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 6a2061557..c9792dbff 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 000000000..5f282702b --- /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 4d5835ed1..2ad6dd4a5 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 75ba26419..63c5ab126 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 000000000..5f282702b --- /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 7f24892b1..d3e672b4e 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 198401a69..e6becaad6 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 000000000..5f282702b --- /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 b087636b7..2d56b2368 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 b4e771c61..17d54fdcc 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 000000000..5f282702b --- /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 9e95e743b..2316a1736 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 000000000..5f282702b --- /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 28c62c2c0..e98db6a85 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 53a0d4d11..207fef215 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 000000000..5f282702b --- /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 f99a6ac9d..bf6668220 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 1b51b763c..ff3762627 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 000000000..5f282702b --- /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 7ed2a49ef..80f9fec0f 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 0261021ae..d89c458d8 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 000000000..5f282702b --- /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 f377cc38d..896753a8c 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 e21b11975..bfe933360 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 000000000..5f282702b --- /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 19c24190c..f1b88299c 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 f55c17c36..048663dc9 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 000000000..5f282702b --- /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 2c082741f..9e69e18bb 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 847c8f903..537dc5430 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 000000000..5f282702b --- /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 7213d5c7e..ceb6a593a 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 db0de9005..5df7e0acd 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.sln b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header.sln similarity index 58% rename from Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only.sln rename to Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header.sln index d04d68fbe..6f4fcc43e 100644 --- a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only.sln +++ b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.8.34330.188 +VisualStudioVersion = 17.12.35309.182 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set-image-in-first-page-only", "Set-image-in-first-page-only\Set-image-in-first-page-only.csproj", "{C21E7334-CAEC-43C6-B376-115BAD76140D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set-image-in-first-page-header", "Set-image-in-first-page-header\Set-image-in-first-page-header.csproj", "{49731287-5026-4C28-B705-6EFD40F92543}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,15 +11,15 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C21E7334-CAEC-43C6-B376-115BAD76140D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C21E7334-CAEC-43C6-B376-115BAD76140D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C21E7334-CAEC-43C6-B376-115BAD76140D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C21E7334-CAEC-43C6-B376-115BAD76140D}.Release|Any CPU.Build.0 = Release|Any CPU + {49731287-5026-4C28-B705-6EFD40F92543}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49731287-5026-4C28-B705-6EFD40F92543}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49731287-5026-4C28-B705-6EFD40F92543}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49731287-5026-4C28-B705-6EFD40F92543}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {C7D26629-EA38-4499-A828-BFAD5D210225} + SolutionGuid = {C8022E12-CA10-42D8-912E-C5116435FDD6} EndGlobalSection EndGlobal diff --git a/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Data/Image.png b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Data/Image.png new file mode 100644 index 000000000..86f87c5cb Binary files /dev/null and b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Data/Image.png differ diff --git a/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Output/.gitkeep b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Program.cs b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Program.cs new file mode 100644 index 000000000..f9173dab9 --- /dev/null +++ b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Program.cs @@ -0,0 +1,34 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; + +//Creates a new Word document. +using (WordDocument document = new WordDocument()) +{ + //Adds new section to the document. + IWSection section = document.AddSection(); + //Sets DifferentFirstPage as true for inserting header and footer text. + section.PageSetup.DifferentFirstPage = true; + //Adds a paragraph to the section. + IWParagraph paragraph = section.AddParagraph(); + string paraText = "AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."; + //Appends some text to the first page in document. + paragraph.AppendText("\r\r[ First Page ] \r\r" + paraText); + paragraph.ParagraphFormat.PageBreakAfter = true; + //Appends some text to the second page in document. + paragraph = section.AddParagraph(); + //Appends some text to the second page in document. + paragraph.AppendText("\r\r[ Second Page ] \r\r" + paraText); + //Inserts the first page header. + paragraph = section.HeadersFooters.FirstPageHeader.AddParagraph(); + //Adds image to the paragraph. + 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(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Saves the Word document to file stream. + document.Save(outputFileStream, FormatType.Docx); + } +} \ No newline at end of file diff --git a/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Set-image-in-first-page-header.csproj b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Set-image-in-first-page-header.csproj new file mode 100644 index 000000000..e46cd2267 --- /dev/null +++ b/Sections/Set-image-in-first-page-header/.NET/Set-image-in-first-page-header/Set-image-in-first-page-header.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Set_image_in_first_page_header + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Sections/Set-image-in-first-page-only/README.md b/Sections/Set-image-in-first-page-header/README.md similarity index 100% rename from Sections/Set-image-in-first-page-only/README.md rename to Sections/Set-image-in-first-page-header/README.md 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 deleted file mode 100644 index 89848b048..000000000 --- a/Sections/Set-image-in-first-page-only/.NET/Set-image-in-first-page-only/Program.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Syncfusion.DocIO; -using Syncfusion.DocIO.DLS; -using System.IO; - -namespace Add_image -{ - class Program - { - static void Main(string[] args) - { - //Creates a new Word document. - using (WordDocument document = new WordDocument()) - { - //Adds new section to the document. - IWSection section = document.AddSection(); - //Sets DifferentFirstPage as true for inserting header and footer text. - section.PageSetup.DifferentFirstPage = true; - //Adds a paragraph to the section. - IWParagraph paragraph = section.AddParagraph(); - string paraText = "AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."; - //Appends some text to the first page in document. - paragraph.AppendText("\r\r[ First Page ] \r\r" + paraText); - paragraph.ParagraphFormat.PageBreakAfter = true; - //Appends some text to the second page in document. - paragraph = section.AddParagraph(); - //Appends some text to the second page in document. - paragraph.AppendText("\r\r[ Second Page ] \r\r" + paraText); - //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); - 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)) - { - //Saves the 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/Output/.gitkeep b/Sections/Set-name-and-logo-in-header/.NET/Set-name-and-logo-in-header/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /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 fadd74b75..54b7c6f40 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 b916f6f1f..05498f3fb 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 000000000..5f282702b --- /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 ef1f12194..6c368941e 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 1df6a70bf..be84dc113 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 72b6e1125..cca3ef8a6 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 000000000..5f282702b --- /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 e23a90db5..54b131e0f 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 5886f3132..bfa9afdc6 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 000000000..5f282702b --- /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 a76d13bd7..19789c95f 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 bf6c789a3..d9f0a4fd1 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 000000000..5f282702b --- /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 a1e4e1cb7..51de66341 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 cf6b85a82..644138d2e 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 000000000..5f282702b --- /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 5c9f59829..663e006e4 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 000000000..5f282702b --- /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 37565b21b..3b83be5fb 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 43e8184e1..43129e1c6 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 bbdb252e7..78638ef0d 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 000000000..5f282702b --- /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 33499ffdd..bf83582cb 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 881af5438..762b9bda0 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 000000000..5f282702b --- /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 d34424d0e..b393f9406 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 f8a3ea600..aad5025cc 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 000000000..5f282702b --- /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 55e132bdc..97b21001b 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 1eebf2aba..4fc31625f 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 000000000..5f282702b --- /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 c4e10ccdc..958483e9f 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 da5a155ab..13dfdb48c 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 000000000..5f282702b --- /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 859ad3401..6cd03db8c 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 000000000..5f282702b --- /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 ff371a906..2c483875f 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 4bed29165..1cfa1f164 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 000000000..5f282702b --- /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 59ea8ecc2..20af58164 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 e98be9df7..96fdda300 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 + + + diff --git a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Add-table-of-contents.csproj b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Add-table-of-contents.csproj index fa729d063..9908777fd 100644 --- a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Add-table-of-contents.csproj +++ b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Add-table-of-contents.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Output/.gitkeep b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Program.cs b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Program.cs index 50265b3df..586dc075f 100644 --- a/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Program.cs +++ b/Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Program.cs @@ -52,7 +52,7 @@ static void Main(string[] args) //Updates the table of contents. document.UpdateTableOfContents(); //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/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Add_toc_in_merged_documents.csproj b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Add_toc_in_merged_documents.csproj index aa5086953..bb77627b3 100644 --- a/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Add_toc_in_merged_documents.csproj +++ b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Add_toc_in_merged_documents.csproj @@ -12,4 +12,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Output/.gitkeep b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Program.cs b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Program.cs index fed062afb..70653ea27 100644 --- a/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Program.cs +++ b/Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Program.cs @@ -3,7 +3,7 @@ using Syncfusion.DocIORenderer; //Get the Source document names from the folder. -string[] sourceDocumentNames = Directory.GetFiles(@"../../../Data/"); +string[] sourceDocumentNames = Directory.GetFiles(Path.GetFullPath(@"Data/")); //Create an WordDocumentinstance for destination document. using (WordDocument destinationDocument = new WordDocument()) @@ -34,7 +34,7 @@ //Updates the table of contents destinationDocument.UpdateTableOfContents(); //Save the destination document. - using (FileStream outputStream = new FileStream(@"../../../Output.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) { destinationDocument.Save(outputStream, FormatType.Docx); } diff --git a/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist.sln b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist.sln new file mode 100644 index 000000000..e49dcb929 --- /dev/null +++ b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Create-table-of-figure-if-captions-exist", "Create-table-of-figure-if-captions-exist\Create-table-of-figure-if-captions-exist.csproj", "{981C37EF-64E1-4914-9886-AAA5C0F8D6B6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {981C37EF-64E1-4914-9886-AAA5C0F8D6B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {981C37EF-64E1-4914-9886-AAA5C0F8D6B6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {981C37EF-64E1-4914-9886-AAA5C0F8D6B6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {981C37EF-64E1-4914-9886-AAA5C0F8D6B6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {78DC923B-2AD2-4FB7-84DF-4EA6E8B3D01D} + EndGlobalSection +EndGlobal diff --git a/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Create-table-of-figure-if-captions-exist.csproj b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Create-table-of-figure-if-captions-exist.csproj new file mode 100644 index 000000000..431f9c069 --- /dev/null +++ b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Create-table-of-figure-if-captions-exist.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Create_table_of_figure_if_captions_exist + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Data/InputDocument.docx b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Data/InputDocument.docx new file mode 100644 index 000000000..a1a39d70a Binary files /dev/null and b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Data/InputDocument.docx differ diff --git a/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Output/gitkeep b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Output/gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Output/gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Program.cs b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Program.cs new file mode 100644 index 000000000..4d0ff8385 --- /dev/null +++ b/Table-Of-Contents/Create-table-of-figure-if-captions-exist/.NET/Create-table-of-figure-if-captions-exist/Program.cs @@ -0,0 +1,64 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; +using Syncfusion.DocIORenderer; + +namespace Create_table_of_figure_if_captions_exist +{ + internal class Program + { + static void Main(string[] args) + { + // Open the existing Word document from file stream + using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/InputDocument.docx"), FileMode.Open, FileAccess.Read)) + { + // Load the Word document + using (WordDocument document = new WordDocument(docStream, FormatType.Docx)) + { + // Define the target caption name (e.g., "Figure") + string targetCaption = "Figure"; + + // Find all SEQ fields in the document with the given caption name + List seqField = document.FindAllItemsByProperty(EntityType.SeqField, "CaptionName", targetCaption); + + // Check if any SEQ fields with the target caption exist + if (seqField.Count > 0) + { + // Create a new paragraph for the "List of Figures" title + WParagraph paragraph = new WParagraph(document); + paragraph.AppendText("List of Figures"); + // Apply Heading1 style to the paragraph + paragraph.ApplyStyle(BuiltinStyle.Heading1); + // Insert the paragraph at the beginning of the document + document.LastSection.Body.ChildEntities.Insert(0, paragraph); + + // Create a new paragraph for the Table of Contents (TOC) + paragraph = new WParagraph(document); + // Append the TOC for figures (based on SEQ fields) + TableOfContent tableOfContent = paragraph.AppendTOC(1, 3); + + // Exclude heading style paragraphs from TOC entries + tableOfContent.UseHeadingStyles = false; + + // Set the SEQ field identifier for the table of figures (targeting "Figure") + tableOfContent.TableOfFiguresLabel = "Figure"; + + // Exclude caption labels and numbers in TOC entries + tableOfContent.IncludeCaptionLabelsAndNumbers = false; + + // Insert the TOC paragraph into the document + document.LastSection.Body.ChildEntities.Insert(1, paragraph); + } + + // Update the Table of Contents to reflect any changes + document.UpdateTableOfContents(); + + // Save the modified document to a new file + using (FileStream docStream1 = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + document.Save(docStream1, FormatType.Docx); + } + } + } + } + } +} diff --git a/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Customize-TOC-entries-style.csproj b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Customize-TOC-entries-style.csproj index 972dd6a9b..951621be2 100644 --- a/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Customize-TOC-entries-style.csproj +++ b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Customize-TOC-entries-style.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Output/.gitkeep b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Program.cs b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Program.cs index b0c1f87e4..8b680da02 100644 --- a/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Program.cs +++ b/Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Program.cs @@ -68,7 +68,7 @@ static void Main(string[] args) //Update the table of contents. document.UpdateTableOfContents(); //Save the file in the given path. - Stream docStream = File.Create(Path.GetFullPath(@"../../../Sample.docx")); + Stream docStream = File.Create(Path.GetFullPath(@"Output/Sample.docx")); document.Save(docStream, FormatType.Docx); docStream.Dispose(); } diff --git a/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Exclude_caption_label_numbers.csproj b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Exclude_caption_label_numbers.csproj index 2fe58484b..0da09fce9 100644 --- a/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Exclude_caption_label_numbers.csproj +++ b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Exclude_caption_label_numbers.csproj @@ -10,4 +10,13 @@ + + + + Always + + + Always + + diff --git a/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Output/.gitkeep b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Program.cs b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Program.cs index 6998ae3f0..eabda6241 100644 --- a/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Program.cs +++ b/Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Program.cs @@ -5,7 +5,7 @@ //Load an existing Word document. -using FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read); +using FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read); using WordDocument document = new WordDocument(fileStream, FormatType.Docx); WParagraph paragraph = new WParagraph(document); paragraph.AppendText("List of Figures"); @@ -87,6 +87,6 @@ document.UpdateTableOfContents(); //Create a FileStream to save the Word document. -using FileStream outputStream = new FileStream("Result.docx", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite); +using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite); //Save the Word document. document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Output/.gitkeep b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Program.cs b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Program.cs index 430c08a1a..e02817680 100644 --- a/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Program.cs +++ b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Program.cs @@ -5,14 +5,14 @@ using (WordDocument document = new WordDocument()) { //Opens the Word template document. - Stream docStream = File.OpenRead(Path.GetFullPath(@"../../../Data/TOC.docx")); + Stream docStream = File.OpenRead(Path.GetFullPath(@"Data/TOC.docx")); document.Open(docStream, FormatType.Docx); docStream.Dispose(); //Removes the TOC field. TableOfContent toc = document.Sections[0].Body.Paragraphs[2].Items[0] as TableOfContent; RemoveTableOfContents(toc); //Saves the file in the given path - docStream = File.Create(Path.GetFullPath(@"../../../Sample.docx")); + docStream = File.Create(Path.GetFullPath(@"Output/Sample.docx")); document.Save(docStream, FormatType.Docx); docStream.Dispose(); } diff --git a/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Remove-table-of-contents.csproj b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Remove-table-of-contents.csproj index 07c47a21c..68f00fa33 100644 --- a/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Remove-table-of-contents.csproj +++ b/Table-Of-Contents/Remove-table-of-contents/.NET/Remove-table-of-contents/Remove-table-of-contents/Remove-table-of-contents.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Output/.gitkeep b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Program.cs b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Program.cs index 9a32b0768..72ca0bada 100644 --- a/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Program.cs +++ b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/Program.cs @@ -60,7 +60,7 @@ static void Main(string[] args) //Updates the table of contents. document.UpdateTableOfContents(); //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/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/TOC-with-user-defined-styles.csproj b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/TOC-with-user-defined-styles.csproj index 83920697c..066fb5ab8 100644 --- a/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/TOC-with-user-defined-styles.csproj +++ b/Table-Of-Contents/TOC-with-user-defined-styles/.NET/TOC-with-user-defined-styles/TOC-with-user-defined-styles.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Output/.gitkeep b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Program.cs b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Program.cs index e970fe91d..a62df68d9 100644 --- a/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Program.cs +++ b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Program.cs @@ -5,7 +5,7 @@ //Load an existing Word document. -using FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.Read); +using FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read); using WordDocument document = new WordDocument(fileStream, FormatType.Docx); WParagraph paragraph = new WParagraph(document); paragraph.AppendText("List of Figures"); @@ -83,6 +83,6 @@ document.UpdateTableOfContents(); //Create a FileStream to save the Word document. -using FileStream outputStream = new FileStream("Result.docx", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite); +using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite); //Save the Word document. document.Save(outputStream, FormatType.Docx); \ No newline at end of file diff --git a/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Table_of_figures.csproj b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Table_of_figures.csproj index f229932e9..ebe39adf0 100644 --- a/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Table_of_figures.csproj +++ b/Table-Of-Contents/Table_of_figures/.NET/Table_of_figures/Table_of_figures.csproj @@ -11,4 +11,13 @@ + + + Always + + + Always + + + diff --git a/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Template.docx b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Data/Template.docx similarity index 100% rename from Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Template.docx rename to Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Data/Template.docx diff --git a/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Output/.gitkeep b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Program.cs b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Program.cs index d638d0da3..23cd3f73a 100644 --- a/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Program.cs +++ b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Updates the table of contents. document.UpdateTableOfContents(); //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/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Update-table-of-contents.csproj b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Update-table-of-contents.csproj index 8afcacd49..a0c536f5e 100644 --- a/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Update-table-of-contents.csproj +++ b/Table-Of-Contents/Update-table-of-contents/.NET/Update-table-of-contents/Update-table-of-contents.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Align-text-within-a-table.csproj b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Align-text-within-a-table.csproj index 3e1f20834..fa3af1747 100644 --- a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Align-text-within-a-table.csproj +++ b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Align-text-within-a-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Template.docx b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Data/Template.docx similarity index 100% rename from Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Template.docx rename to Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Data/Template.docx diff --git a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Output/.gitkeep b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Program.cs b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Program.cs index 289be0ec4..cf8e1526d 100644 --- a/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/Program.cs +++ b/Tables/Align-text-within-a-table/.NET/Align-text-within-a-table/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Iterates the cells within a table and align text for each cell. AlignCellContentForTextBody(textBody, HorizontalAlignment.Center, VerticalAlignment.Middle); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Apply-base-style-for-table.csproj b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Apply-base-style-for-table.csproj index 0a64ea580..b543914f2 100644 --- a/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Apply-base-style-for-table.csproj +++ b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Apply-base-style-for-table.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Output/.gitkeep b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Program.cs b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Program.cs index a378a5bd6..6d728f505 100644 --- a/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Program.cs +++ b/Tables/Apply-base-style-for-table/.NET/Apply-base-style-for-table/Program.cs @@ -73,7 +73,7 @@ static void Main(string[] args) table.ApplyStyle("CustomStyle3"); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Apply-built-in-table-style.csproj b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Apply-built-in-table-style.csproj index 5389a7291..0ba9745ca 100644 --- a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Apply-built-in-table-style.csproj +++ b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Apply-built-in-table-style.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Template.docx b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Data/Template.docx similarity index 100% rename from Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Template.docx rename to Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Data/Template.docx diff --git a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Output/.gitkeep b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Program.cs b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Program.cs index 54d47cf3d..05fb70552 100644 --- a/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/Program.cs +++ b/Tables/Apply-built-in-table-style/.NET/Apply-built-in-table-style/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) //Applies "LightShading" built-in style to table. table.ApplyStyle(BuiltinTableStyle.LightShading); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Apply-cell-formatting.csproj b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Apply-cell-formatting.csproj index 624bc5615..959b4c2de 100644 --- a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Apply-cell-formatting.csproj +++ b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Apply-cell-formatting.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Template.docx b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Data/Template.docx similarity index 100% rename from Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Template.docx rename to Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Data/Template.docx diff --git a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Output/.gitkeep b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Program.cs b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Program.cs index 117a778a8..acca5bdf0 100644 --- a/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Program.cs +++ b/Tables/Apply-cell-formatting/.NET/Apply-cell-formatting/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -58,7 +58,7 @@ static void Main(string[] args) cell.CellFormat.Borders.Right.Color = Color.Red; cell.CellFormat.Borders.Left.Color = Color.Red; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Apply-custom-table-style.csproj b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Apply-custom-table-style.csproj index 93c868e21..ebb769f54 100644 --- a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Apply-custom-table-style.csproj +++ b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Apply-custom-table-style.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Template.docx b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Data/Template.docx similarity index 100% rename from Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Template.docx rename to Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Data/Template.docx diff --git a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Output/.gitkeep b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Program.cs b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Program.cs index 24c07f97e..1837edb6e 100644 --- a/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Program.cs +++ b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -39,7 +39,7 @@ static void Main(string[] args) //Applies the custom table style to the table. table.ApplyStyle("CustomStyle"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Apply-horizontal-merge-to-cells.csproj b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Apply-horizontal-merge-to-cells.csproj index 0bacc9b46..8b5f49dc8 100644 --- a/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Apply-horizontal-merge-to-cells.csproj +++ b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Apply-horizontal-merge-to-cells.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Output/.gitkeep b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Program.cs b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Program.cs index 9e231f655..c689d23bb 100644 --- a/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Program.cs +++ b/Tables/Apply-horizontal-merge-to-cells/.NET/Apply-horizontal-merge-to-cells/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) //Specifies the horizontal merge from second cell to fifth cell in third row. table.ApplyHorizontalMerge(2, 1, 4); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Apply-table-formatting.csproj b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Apply-table-formatting.csproj index 7b2ade8d1..7023a78a3 100644 --- a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Apply-table-formatting.csproj +++ b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Apply-table-formatting.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Template.docx b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Data/Template.docx similarity index 100% rename from Tables/Apply-table-formatting/.NET/Apply-table-formatting/Template.docx rename to Tables/Apply-table-formatting/.NET/Apply-table-formatting/Data/Template.docx diff --git a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Output/.gitkeep b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Program.cs b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Program.cs index 562ee48ef..be8feac9f 100644 --- a/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Program.cs +++ b/Tables/Apply-table-formatting/.NET/Apply-table-formatting/Program.cs @@ -9,7 +9,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)) { //Creates an instance of WordDocument class (Empty Word Document). using (WordDocument document = new WordDocument()) @@ -55,7 +55,7 @@ static void Main(string[] args) //Specifies the row height type. row.HeightType = TableRowHeightType.AtLeast; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Apply-vertical-merge-to-cells.csproj b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Apply-vertical-merge-to-cells.csproj index 8cb1c92e8..3c1629af5 100644 --- a/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Apply-vertical-merge-to-cells.csproj +++ b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Apply-vertical-merge-to-cells.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Output/.gitkeep b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Program.cs b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Program.cs index d909826be..39d8c4eec 100644 --- a/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Program.cs +++ b/Tables/Apply-vertical-merge-to-cells/.NET/Apply-vertical-merge-to-cells/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) // Specifies the vertical merge to the third cell, from second row to fifth row. table.ApplyVerticalMerge(2, 1, 4); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Create-horizontal-merged-cells.csproj b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Create-horizontal-merged-cells.csproj index e3fa1aab3..7cd2309ce 100644 --- a/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Create-horizontal-merged-cells.csproj +++ b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Create-horizontal-merged-cells.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Output/.gitkeep b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Program.cs b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Program.cs index 45cbb0d79..071c33bd1 100644 --- a/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Program.cs +++ b/Tables/Create-horizontal-merged-cells/.NET/Create-horizontal-merged-cells/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) //Specifies the horizontal merge continue to second row second cell. table[0, 1].CellFormat.HorizontalMerge = CellMerge.Continue; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Create-nested-table/.NET/Create-nested-table/Create-nested-table.csproj b/Tables/Create-nested-table/.NET/Create-nested-table/Create-nested-table.csproj index b6b350a24..abf7de49c 100644 --- a/Tables/Create-nested-table/.NET/Create-nested-table/Create-nested-table.csproj +++ b/Tables/Create-nested-table/.NET/Create-nested-table/Create-nested-table.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Create-nested-table/.NET/Create-nested-table/Output/.gitkeep b/Tables/Create-nested-table/.NET/Create-nested-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Create-nested-table/.NET/Create-nested-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Create-nested-table/.NET/Create-nested-table/Program.cs b/Tables/Create-nested-table/.NET/Create-nested-table/Program.cs index 7f0fc485c..5f4eece8e 100644 --- a/Tables/Create-nested-table/.NET/Create-nested-table/Program.cs +++ b/Tables/Create-nested-table/.NET/Create-nested-table/Program.cs @@ -46,7 +46,7 @@ static void Main(string[] args) table[2, 0].AddParagraph().AppendText("Pomegranate"); table[2, 1].AddParagraph().AppendText("70"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Create-simple-table/.NET/Create-simple-table/Create-simple-table.csproj b/Tables/Create-simple-table/.NET/Create-simple-table/Create-simple-table.csproj index a6e0b9044..9745292b8 100644 --- a/Tables/Create-simple-table/.NET/Create-simple-table/Create-simple-table.csproj +++ b/Tables/Create-simple-table/.NET/Create-simple-table/Create-simple-table.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Create-simple-table/.NET/Create-simple-table/Output/.gitkeep b/Tables/Create-simple-table/.NET/Create-simple-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Create-simple-table/.NET/Create-simple-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Create-simple-table/.NET/Create-simple-table/Program.cs b/Tables/Create-simple-table/.NET/Create-simple-table/Program.cs index 4c9ca926e..a7f793149 100644 --- a/Tables/Create-simple-table/.NET/Create-simple-table/Program.cs +++ b/Tables/Create-simple-table/.NET/Create-simple-table/Program.cs @@ -50,7 +50,7 @@ static void Main(string[] args) textRange.CharacterFormat.FontName = "Arial"; textRange.CharacterFormat.FontSize = 10; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Create-table-with-header-row.csproj b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Create-table-with-header-row.csproj index 4ff6bba98..7603761b1 100644 --- a/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Create-table-with-header-row.csproj +++ b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Create-table-with-header-row.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Output/.gitkeep b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Program.cs b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Program.cs index 2a7677d4b..9ce0093e7 100644 --- a/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Program.cs +++ b/Tables/Create-table-with-header-row/.NET/Create-table-with-header-row/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) row.Cells[0].AddParagraph().AppendText("Text in Row" + i.ToString()); } //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Create-vertical-merged-cells.csproj b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Create-vertical-merged-cells.csproj index 5826c0745..be49304b7 100644 --- a/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Create-vertical-merged-cells.csproj +++ b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Create-vertical-merged-cells.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Output/.gitkeep b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Program.cs b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Program.cs index 871678371..f4a26ea5b 100644 --- a/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Program.cs +++ b/Tables/Create-vertical-merged-cells/.NET/Create-vertical-merged-cells/Program.cs @@ -27,7 +27,7 @@ static void Main(string[] args) //Specifies the vertical merge continue to second row first cell. table[1, 0].CellFormat.VerticalMerge = CellMerge.Continue; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Template.docx b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Data/Template.docx similarity index 100% rename from Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Template.docx rename to Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Data/Template.docx diff --git a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Disable-row-to-break-across-pages.csproj b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Disable-row-to-break-across-pages.csproj index f01fc8336..2999317df 100644 --- a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Disable-row-to-break-across-pages.csproj +++ b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Disable-row-to-break-across-pages.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Output/.gitkeep b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Program.cs b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Program.cs index 701fe3465..91d3ea684 100644 --- a/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Program.cs +++ b/Tables/Disable-row-to-break-across-pages/.NET/Disable-row-to-break-across-pages/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -20,7 +20,7 @@ static void Main(string[] args) foreach (WTableRow row in table.Rows) row.RowFormat.IsBreakAcrossPages = false; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Dynamic-table-by-adding-rows.csproj b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Dynamic-table-by-adding-rows.csproj index 65bf2be1d..ae4bf3fd2 100644 --- a/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Dynamic-table-by-adding-rows.csproj +++ b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Dynamic-table-by-adding-rows.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Output/.gitkeep b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Program.cs b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Program.cs index d030b3d07..edb45bf23 100644 --- a/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Program.cs +++ b/Tables/Dynamic-table-by-adding-rows/.NET/Dynamic-table-by-adding-rows/Program.cs @@ -77,7 +77,7 @@ static void Main(string[] args) cell.Width = 200; cell.AddParagraph().AppendText("70"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Input.docx b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Data/Template.docx similarity index 100% rename from Tables/Extract-images-from-table/.NET/Extract-images-from-table/Input.docx rename to Tables/Extract-images-from-table/.NET/Extract-images-from-table/Data/Template.docx diff --git a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Extract-images-from-table.csproj b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Extract-images-from-table.csproj index a3fd2e55c..df1872274 100644 --- a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Extract-images-from-table.csproj +++ b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Extract-images-from-table.csproj @@ -13,4 +13,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Output/.gitkeep b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Program.cs b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Program.cs index 950a5d89a..af6bea9f1 100644 --- a/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Program.cs +++ b/Tables/Extract-images-from-table/.NET/Extract-images-from-table/Program.cs @@ -3,7 +3,7 @@ //Creates an instance of WordDocument class -FileStream fileStreamPath = new FileStream("../../../Input.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); +FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx); //Get the list of pictures @@ -16,7 +16,7 @@ //Get the image System.Drawing.Image image = System.Drawing.Image.FromStream(new MemoryStream(picture.ImageBytes)); //Save the image as PNG - string imgFileName = @"../../../Output" + i + ".png"; + string imgFileName = Path.GetFullPath(@"Output/Image") + i + ".png"; FileStream imgFile = new FileStream(imgFileName, FileMode.Create, FileAccess.ReadWrite); image.Save(imgFile, System.Drawing.Imaging.ImageFormat.Png); //Dispose the instances. diff --git a/Tables/Find-table-and-add-row/Find-table-and-add-row.sln b/Tables/Find-table-and-add-row/Find-table-and-add-row.sln new file mode 100644 index 000000000..01d64ba1a --- /dev/null +++ b/Tables/Find-table-and-add-row/Find-table-and-add-row.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Find-table-and-add-row", "Find-table-and-add-row\Find-table-and-add-row.csproj", "{E8C23293-ABC9-4C54-81BA-9C5FBA6D85C1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E8C23293-ABC9-4C54-81BA-9C5FBA6D85C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8C23293-ABC9-4C54-81BA-9C5FBA6D85C1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8C23293-ABC9-4C54-81BA-9C5FBA6D85C1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8C23293-ABC9-4C54-81BA-9C5FBA6D85C1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EC6BCFD8-E759-47DE-BC97-AC492B3D6DF8} + EndGlobalSection +EndGlobal diff --git a/Tables/Find-table-and-add-row/Find-table-and-add-row/Data/Input.docx b/Tables/Find-table-and-add-row/Find-table-and-add-row/Data/Input.docx new file mode 100644 index 000000000..4dfe6d7ce Binary files /dev/null and b/Tables/Find-table-and-add-row/Find-table-and-add-row/Data/Input.docx differ diff --git a/Tables/Find-table-and-add-row/Find-table-and-add-row/Find-table-and-add-row.csproj b/Tables/Find-table-and-add-row/Find-table-and-add-row/Find-table-and-add-row.csproj new file mode 100644 index 000000000..179d79c5a --- /dev/null +++ b/Tables/Find-table-and-add-row/Find-table-and-add-row/Find-table-and-add-row.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Find_table_and_add_row + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Tables/Find-table-and-add-row/Find-table-and-add-row/Output/.gitkeep b/Tables/Find-table-and-add-row/Find-table-and-add-row/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Find-table-and-add-row/Find-table-and-add-row/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Find-table-and-add-row/Find-table-and-add-row/Program.cs b/Tables/Find-table-and-add-row/Find-table-and-add-row/Program.cs new file mode 100644 index 000000000..494ae6b3e --- /dev/null +++ b/Tables/Find-table-and-add-row/Find-table-and-add-row/Program.cs @@ -0,0 +1,23 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +using (FileStream inputFileStream = new FileStream(Path.GetFullPath("Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) +{ + // Open the input Word document. + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Docx)) + { + //Find a table by Title. + WTable table = document.FindItemByProperty(EntityType.Table, "Title", "DataTable") as WTable; + // Check if the table exists. + if (table != null) + { + // Add a new row to the table. + table.AddRow(); + } + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + // Save the modified document to the output file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } +} \ No newline at end of file diff --git a/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj b/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj index 9e0e7a940..79b454ac3 100644 --- a/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj +++ b/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/packages.config b/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/packages.config index ff796ce92..6be96b6c5 100644 --- a/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/packages.config +++ b/Tables/Insert-Row-with-same-formatting/.NET-Framework/Insert-Row-with-same-formatting/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj index 0b3923e0e..293030e1a 100644 --- a/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj +++ b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Insert-Row-with-same-formatting.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Output/.gitkeep b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Program.cs b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Program.cs index 7adea07b3..2f802d2c8 100644 --- a/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Program.cs +++ b/Tables/Insert-Row-with-same-formatting/.NET/Insert-Row-with-same-formatting/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) { //Open an existing Word document. using (WordDocument document = new WordDocument(fileStream, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) //Insert a row into the table in specific index. table.Rows.Insert(2, row); //Create file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Insert-empty-table/.NET/Insert-empty-table/Insert-empty-table.csproj b/Tables/Insert-empty-table/.NET/Insert-empty-table/Insert-empty-table.csproj index e65b43a07..1fa74f96c 100644 --- a/Tables/Insert-empty-table/.NET/Insert-empty-table/Insert-empty-table.csproj +++ b/Tables/Insert-empty-table/.NET/Insert-empty-table/Insert-empty-table.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Insert-empty-table/.NET/Insert-empty-table/Output/.gitkeep b/Tables/Insert-empty-table/.NET/Insert-empty-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Insert-empty-table/.NET/Insert-empty-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Insert-empty-table/.NET/Insert-empty-table/Program.cs b/Tables/Insert-empty-table/.NET/Insert-empty-table/Program.cs index a9b923174..b7b4920a5 100644 --- a/Tables/Insert-empty-table/.NET/Insert-empty-table/Program.cs +++ b/Tables/Insert-empty-table/.NET/Insert-empty-table/Program.cs @@ -16,7 +16,7 @@ static void Main(string[] args) IWTable table = section.AddTable(); table.ResetCells(3, 2); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Image.png b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Data/Image.png similarity index 100% rename from Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Image.png rename to Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Data/Image.png diff --git a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Insert-image-in-cell.csproj b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Insert-image-in-cell.csproj index a388230c2..290ff4877 100644 --- a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Insert-image-in-cell.csproj +++ b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Insert-image-in-cell.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Output/.gitkeep b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Program.cs b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Program.cs index 9f2581678..723c08055 100644 --- a/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Program.cs +++ b/Tables/Insert-image-in-cell/.NET/Insert-image-in-cell/Program.cs @@ -20,12 +20,12 @@ static void Main(string[] args) table[0, 1].AddParagraph().AppendText("Product Image"); table[1, 0].AddParagraph().AppendText("Apple Juice"); //Adds the image into cell. - 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 = table[1, 1].AddParagraph().AppendPicture(imageStream); picture.Height = 75; picture.Width = 60; //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/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Template.docx b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Data/Template.docx similarity index 100% rename from Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Template.docx rename to Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Data/Template.docx diff --git a/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Iterating-through-table-elements.csproj b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Iterating-through-table-elements.csproj index b6433b5db..841b33529 100644 --- a/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Iterating-through-table-elements.csproj +++ b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Iterating-through-table-elements.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Output/.gitkeep b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Program.cs b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Program.cs index ff7fb05d1..7522f9431 100644 --- a/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Program.cs +++ b/Tables/Iterating-through-table-elements/.NET/Iterating-through-table-elements/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -32,7 +32,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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Keep-group-of-rows-from-split-between-pages.csproj b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Keep-group-of-rows-from-split-between-pages.csproj index 9e64cdab6..d911fded0 100644 --- a/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Keep-group-of-rows-from-split-between-pages.csproj +++ b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Keep-group-of-rows-from-split-between-pages.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Output/.gitkeep b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Program.cs b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Program.cs index 52bd59ccd..e53bd6072 100644 --- a/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Program.cs +++ b/Tables/Keep-group-of-rows-from-split-between-pages/.NET/Keep-group-of-rows-from-split-between-pages/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) //Keep a group of rows in the same page when one of the row in group is placed on next page. KeepGroupOfRows(innerTable, outerTable, rowSet); //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/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Word document to the file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells.sln b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells.sln new file mode 100644 index 000000000..2ec446450 --- /dev/null +++ b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reduce-height-of-empty-cells", "Reduce-height-of-empty-cells\Reduce-height-of-empty-cells.csproj", "{1AEC5D8C-07B6-4479-AC12-4E78E7D7EEFF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1AEC5D8C-07B6-4479-AC12-4E78E7D7EEFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1AEC5D8C-07B6-4479-AC12-4E78E7D7EEFF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1AEC5D8C-07B6-4479-AC12-4E78E7D7EEFF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1AEC5D8C-07B6-4479-AC12-4E78E7D7EEFF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {68CB8A37-B495-44F3-83A1-89D81324EA06} + EndGlobalSection +EndGlobal diff --git a/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Data/Template.docx b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Data/Template.docx new file mode 100644 index 000000000..88ed29566 Binary files /dev/null and b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Data/Template.docx differ diff --git a/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Output/.gitkeep b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Program.cs b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Program.cs new file mode 100644 index 000000000..da1e964e3 --- /dev/null +++ b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Program.cs @@ -0,0 +1,38 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +using (FileStream inputFileStream = new FileStream(Path.GetFullPath("Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) +{ + //Opens the template Word document. + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Docx)) + { + //Retrieve the last section of the document. + IWSection section = document.LastSection; + //Retrieve the first table from the section. + IWTable table = section.Body.Tables[0]; + //Iterate through each row in the table. + foreach (WTableRow row in table.Rows) + { + //Set the row height type to "AtLeast" and height to 0 to minimize height. + row.HeightType = TableRowHeightType.AtLeast; + row.Height = 0; + //Iterate through each cell in the row. + foreach (WTableCell cell in row.Cells) + { + //Remove top and bottom margins of the cell. + cell.CellFormat.Paddings.Top = 0; + cell.CellFormat.Paddings.Bottom = 0; + //Iterate through paragraphs in each cell. + foreach (IWParagraph paragraph in cell.Paragraphs) + { + paragraph.BreakCharacterFormat.FontSize = 8; + } + } + } + //Save the document. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + document.Save(outputFileStream, FormatType.Docx); + } + } +} \ No newline at end of file diff --git a/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Reduce-height-of-empty-cells.csproj b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Reduce-height-of-empty-cells.csproj new file mode 100644 index 000000000..43e9344c4 --- /dev/null +++ b/Tables/Reduce-height-of-empty-cells/.NET/Reduce-height-of-empty-cells/Reduce-height-of-empty-cells.csproj @@ -0,0 +1,23 @@ + + + + Exe + net8.0 + Reduce_Height_of_Empty_Cells + enable + enable + + + + + + + + + Always + + + Always + + + diff --git a/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table.sln b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table.sln new file mode 100644 index 000000000..58f0ef771 --- /dev/null +++ b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34322.80 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Remove-contents-above-table", "Remove-contents-above-table\Remove-contents-above-table.csproj", "{AAF79A0A-9583-44AD-9931-A1E28ADCD68A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AAF79A0A-9583-44AD-9931-A1E28ADCD68A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AAF79A0A-9583-44AD-9931-A1E28ADCD68A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AAF79A0A-9583-44AD-9931-A1E28ADCD68A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AAF79A0A-9583-44AD-9931-A1E28ADCD68A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {619A89CD-9BE1-4162-A918-4A25864DD7DB} + EndGlobalSection +EndGlobal diff --git a/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Data/Input.docx b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Data/Input.docx new file mode 100644 index 000000000..8f7dc826a Binary files /dev/null and b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Data/Input.docx differ diff --git a/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Output/.gitkeep b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Program.cs b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Program.cs new file mode 100644 index 000000000..e04898379 --- /dev/null +++ b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Program.cs @@ -0,0 +1,69 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +//Opens the input Word document template from the specified path. +using (FileStream inputFileStream = new FileStream(Path.GetFullPath("Data/Input.docx"), FileMode.Open, FileAccess.ReadWrite)) +{ + //Loads the Word document into a WordDocument object. + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Docx)) + { + //Finds the table in the document by using the table's Title property, with the value "Table1". + WTable table = document.FindItemByProperty(EntityType.Table, "Title", "Table1") as WTable; + //Removes the content that exists before the located table in the document. + RemoveContentBeforeTable(document, table); + //Saves the modified document to the specified output path. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + document.Save(outputFileStream, FormatType.Docx); //Saves the document in DOCX format. + } + } +} + +/// +/// Removes all content before the specified table, including content in previous sections, in a Word document. +/// +void RemoveContentBeforeTable(WordDocument document, WTable inputTable) +{ + //Get the index of the input table. + int tableIndex = inputTable.OwnerTextBody.ChildEntities.IndexOf(inputTable); + //Get the section entity. + WSection currSection = GetOwnerSection(inputTable, ref tableIndex); + //Get the section index. + int sectionIndex = document.Sections.IndexOf(currSection); + //Remove the items before the table in the current section. + for (int i = tableIndex - 1; i >= 0; i--) + currSection.Body.ChildEntities.RemoveAt(i); + //Remove the previous sections. + for (int i = sectionIndex - 1; i >= 0; i--) + document.Sections.RemoveAt(i); +} + +/// +/// Traverses the entity hierarchy to find its owning section and updates the table index accordingly. +/// +WSection GetOwnerSection(Entity entity, ref int tableIndex) +{ + while (!(entity is WSection)) + { + //If the entity is table, then get the table index. + if (entity is WTable) + { + WTable table = entity as WTable; + tableIndex = table.OwnerTextBody.ChildEntities.IndexOf(table); + } + //If the entity is block content control, then remove the child entities before the table. + //and consider the block content control index as tableIndex. + else if (entity is BlockContentControl) + { + BlockContentControl blockContentControl = entity as BlockContentControl; + //Remove the child entitites of block content control before the table. + for (int i = tableIndex - 1; i >= 0; i--) + blockContentControl.TextBody.ChildEntities.RemoveAt(i); + //Get the block content control index. + tableIndex = blockContentControl.OwnerTextBody.ChildEntities.IndexOf(blockContentControl); + } + //Move to the owner entity. + entity = entity.Owner; + } + return entity as WSection; +} \ No newline at end of file diff --git a/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Remove-contents-above-table.csproj b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Remove-contents-above-table.csproj new file mode 100644 index 000000000..4158b6163 --- /dev/null +++ b/Tables/Remove-contents-above-table/.NET/Remove-contents-above-table/Remove-contents-above-table.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Remove_contents_above_table + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Template.docx b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Data/Template.docx similarity index 100% rename from Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Template.docx rename to Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Data/Template.docx diff --git a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Output/.gitkeep b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Program.cs b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Program.cs index 4fa61ae96..1b6081297 100644 --- a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Program.cs +++ b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Remove particular row from the table. table.Rows.RemoveAt(6); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Remove-particular-row-from-table.csproj b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Remove-particular-row-from-table.csproj index 1f8c4694b..034bfcd5e 100644 --- a/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Remove-particular-row-from-table.csproj +++ b/Tables/Remove-particular-row-from-table/.NET/Remove-particular-row-from-table/Remove-particular-row-from-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Remove-table/.NET/Remove-table/Template.docx b/Tables/Remove-table/.NET/Remove-table/Data/Template.docx similarity index 100% rename from Tables/Remove-table/.NET/Remove-table/Template.docx rename to Tables/Remove-table/.NET/Remove-table/Data/Template.docx diff --git a/Tables/Remove-table/.NET/Remove-table/Output/.gitkeep b/Tables/Remove-table/.NET/Remove-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Remove-table/.NET/Remove-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Remove-table/.NET/Remove-table/Program.cs b/Tables/Remove-table/.NET/Remove-table/Program.cs index d000016bd..f1674fca0 100644 --- a/Tables/Remove-table/.NET/Remove-table/Program.cs +++ b/Tables/Remove-table/.NET/Remove-table/Program.cs @@ -9,7 +9,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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Removes a table from the text body. section.Body.ChildEntities.Remove(table); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Remove-table/.NET/Remove-table/Remove-table.csproj b/Tables/Remove-table/.NET/Remove-table/Remove-table.csproj index eb8e57198..5a89a5a7c 100644 --- a/Tables/Remove-table/.NET/Remove-table/Remove-table.csproj +++ b/Tables/Remove-table/.NET/Remove-table/Remove-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.sln b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.sln new file mode 100644 index 000000000..508ae112d --- /dev/null +++ b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Replace-row-with-multiple-rows", "Replace-row-with-multiple-rows\Replace-row-with-multiple-rows.csproj", "{7D07A56C-8B23-4CFE-9E8C-903C5C1EF6CB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7D07A56C-8B23-4CFE-9E8C-903C5C1EF6CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D07A56C-8B23-4CFE-9E8C-903C5C1EF6CB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D07A56C-8B23-4CFE-9E8C-903C5C1EF6CB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D07A56C-8B23-4CFE-9E8C-903C5C1EF6CB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9812314-7D24-42E7-8090-5B2969EB47E9} + EndGlobalSection +EndGlobal diff --git a/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Data/Template.docx b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Data/Template.docx new file mode 100644 index 000000000..5c462ec4e Binary files /dev/null and b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Data/Template.docx differ diff --git a/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Output/.gitkeep b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Program.cs b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Program.cs new file mode 100644 index 000000000..4bb90d237 --- /dev/null +++ b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Program.cs @@ -0,0 +1,121 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using System.Dynamic; + +using (FileStream inputFileStream = new FileStream(Path.GetFullPath("Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite)) +{ + // Open the input Word document + using (WordDocument document = new WordDocument(inputFileStream, FormatType.Docx)) + { + // Find a table by the Title property. + WTable table = document.FindItemByProperty(EntityType.Table, "Title", "DataTable") as WTable; + // Check if the table was found. + if (table != null) + { + // Get the second row of the table. + WTableRow secondRow = table.Rows[1]; + // Insert data into the cells of the second row. + InsertDataToCells(secondRow); + // Add dynamic rows starting at index 2, based on the second row. + AddDynamicRows(table, 2, secondRow); + } + using (FileStream outputFileStream = new FileStream(Path.GetFullPath("Output/Result.docx"), FileMode.Create, FileAccess.Write)) + { + // Save the modified document to the output file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } +} + +/// +/// Insert data into the cells of a specified table row. +/// +void InsertDataToCells(WTableRow row) +{ + // List of placeholder data to insert into the cells. + List data = new List { "<>", "<>", "<>", "<>" }; + int count = 0; + // Iterate through each cell in the specified row. + foreach (WTableCell cell in row.Cells) + { + // Assign data to the particular cell. + cell.Paragraphs[0].Text = data[count]; + count++; + } +} + +/// +/// Add dynamic rows to a specified table at a certain index. +/// +void AddDynamicRows(WTable table, int index, WTableRow row) +{ + // Create a list of dynamic row details. + IEnumerable rowsDetails = CreateDynamicRows(); + // Iterate through each dynamic row detail. + foreach (dynamic rowDetails in rowsDetails) + { + // Retrieve cell content for the new row. + List cellDetails = GetListOfCellValue(rowDetails); + // Clone the second row to create a new row. + WTableRow newRow = row.Clone(); + // Iterate through the cells of the cloned row. + for (int i = 0; i < newRow.Cells.Count; i++) + { + // Get the cell at specific from the cloned row. + WTableCell wTableCell = newRow.Cells[i]; + // Modify the paragraph text of the cell with the corresponding cell detail. + wTableCell.Paragraphs[0].Text = cellDetails[i]; + } + // Insert the newly created row at the specified index. + table.Rows.Insert(index, newRow); + // Increment the index for the next dynamic row. + index++; + } +} + +/// +/// Create dynamic rows with sample cell data. +/// +IEnumerable CreateDynamicRows() +{ + // Create a list of dynamic row details. + List rowDetails = new List(); + // Add dynamic cells to the row details list. + rowDetails.Add(CreateDynamicCells("<>", "<>", "<>", "<>")); + rowDetails.Add(CreateDynamicCells("<>", "<>", "<>", "<>")); + rowDetails.Add(CreateDynamicCells("<>", "<>", "<>", "<>")); + rowDetails.Add(CreateDynamicCells("<>", "<>", "<>", "<>")); + // Return the list of dynamic row details. + return rowDetails; +} + +/// +/// Create dynamic cell data. +/// +dynamic CreateDynamicCells(string cell1, string cell2, string cell3, string cell4) +{ + // Create a new ExpandoObject for dynamic properties. + dynamic dynamicOrder = new ExpandoObject(); + // Assign values to the dynamic object properties. + dynamicOrder.Cell1 = cell1; + dynamicOrder.Cell2 = cell2; + dynamicOrder.Cell3 = cell3; + dynamicOrder.Cell4 = cell4; + // Return the dynamic object. + return dynamicOrder; +} + +/// +/// Get the list of cell values. +/// +List GetListOfCellValue(dynamic rowDetails) +{ + List cellDetails = new List(); + // Add each dynamic cell value to the list. + cellDetails.Add(rowDetails.Cell1); + cellDetails.Add(rowDetails.Cell2); + cellDetails.Add(rowDetails.Cell3); + cellDetails.Add(rowDetails.Cell4); + // Return the list of cell details. + return cellDetails; +} diff --git a/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.csproj b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.csproj new file mode 100644 index 000000000..1ab83b48c --- /dev/null +++ b/Tables/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows/Replace-row-with-multiple-rows.csproj @@ -0,0 +1,24 @@ + + + + Exe + net8.0 + Replace_row_with_multiple_rows + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Tables/Resize-table/.NET/Resize-table/Template.docx b/Tables/Resize-table/.NET/Resize-table/Data/Template.docx similarity index 100% rename from Tables/Resize-table/.NET/Resize-table/Template.docx rename to Tables/Resize-table/.NET/Resize-table/Data/Template.docx diff --git a/Tables/Resize-table/.NET/Resize-table/Output/.gitkeep b/Tables/Resize-table/.NET/Resize-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Resize-table/.NET/Resize-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Resize-table/.NET/Resize-table/Program.cs b/Tables/Resize-table/.NET/Resize-table/Program.cs index 55b842bfa..899bdc214 100644 --- a/Tables/Resize-table/.NET/Resize-table/Program.cs +++ b/Tables/Resize-table/.NET/Resize-table/Program.cs @@ -9,7 +9,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)) { //Creates an instance of WordDocument class (Empty Word Document). using (WordDocument document = new WordDocument()) @@ -31,7 +31,7 @@ static void Main(string[] args) //Resizes the table to fit the contents respect to fixed column width. table.AutoFit(AutoFitType.FixedColumnWidth); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Resize-table/.NET/Resize-table/Resize-table.csproj b/Tables/Resize-table/.NET/Resize-table/Resize-table.csproj index aa0a4c003..0e4f5991a 100644 --- a/Tables/Resize-table/.NET/Resize-table/Resize-table.csproj +++ b/Tables/Resize-table/.NET/Resize-table/Resize-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Set-position-for-table/.NET/Set-position-for-table/Template.docx b/Tables/Set-position-for-table/.NET/Set-position-for-table/Data/Template.docx similarity index 100% rename from Tables/Set-position-for-table/.NET/Set-position-for-table/Template.docx rename to Tables/Set-position-for-table/.NET/Set-position-for-table/Data/Template.docx diff --git a/Tables/Set-position-for-table/.NET/Set-position-for-table/Output/.gitkeep b/Tables/Set-position-for-table/.NET/Set-position-for-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Set-position-for-table/.NET/Set-position-for-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Set-position-for-table/.NET/Set-position-for-table/Program.cs b/Tables/Set-position-for-table/.NET/Set-position-for-table/Program.cs index a6a4dfa4a..91a446d62 100644 --- a/Tables/Set-position-for-table/.NET/Set-position-for-table/Program.cs +++ b/Tables/Set-position-for-table/.NET/Set-position-for-table/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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -21,7 +21,7 @@ static void Main(string[] args) table.TableFormat.Positioning.HorizPosition = 40; table.TableFormat.Positioning.VertPosition = 100; //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Tables/Set-position-for-table/.NET/Set-position-for-table/Set-position-for-table.csproj b/Tables/Set-position-for-table/.NET/Set-position-for-table/Set-position-for-table.csproj index 84c36338d..3116d9496 100644 --- a/Tables/Set-position-for-table/.NET/Set-position-for-table/Set-position-for-table.csproj +++ b/Tables/Set-position-for-table/.NET/Set-position-for-table/Set-position-for-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Template.docx b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Data/Template.docx similarity index 100% rename from Tables/Set-table-cell-width/.NET/Set-table-cell-width/Template.docx rename to Tables/Set-table-cell-width/.NET/Set-table-cell-width/Data/Template.docx diff --git a/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Output/.gitkeep b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Program.cs b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Program.cs index 95f404c9e..1efbe887c 100644 --- a/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Program.cs +++ b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -33,7 +33,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/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Set-table-cell-width.csproj b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Set-table-cell-width.csproj index 82c7cec18..8c1acae77 100644 --- a/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Set-table-cell-width.csproj +++ b/Tables/Set-table-cell-width/.NET/Set-table-cell-width/Set-table-cell-width.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Template.docx b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Data/Template.docx similarity index 100% rename from Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Template.docx rename to Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Data/Template.docx diff --git a/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Output/.gitkeep b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Program.cs b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Program.cs index 1d0d6544e..bd854d1be 100644 --- a/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Program.cs +++ b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/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)) { //Loads the template document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -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/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Set-text-direction-to-table.csproj b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Set-text-direction-to-table.csproj index 2b3ec6dcb..a0ba18480 100644 --- a/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Set-text-direction-to-table.csproj +++ b/Tables/Set-text-direction-to-table/.NET/Set-text-direction-to-table/Set-text-direction-to-table.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Split-table-by-columns/.NET/Split-table-by-columns.sln b/Tables/Split-table-by-columns/.NET/Split-table-by-columns.sln new file mode 100644 index 000000000..2ae221644 --- /dev/null +++ b/Tables/Split-table-by-columns/.NET/Split-table-by-columns.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Split-table-by-columns", "Split-table-by-columns\Split-table-by-columns.csproj", "{C17B90BC-F559-456B-B189-90B53FF6CDD4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C17B90BC-F559-456B-B189-90B53FF6CDD4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EF357FC6-E9E5-4E3C-B932-43F727BE1DE4} + EndGlobalSection +EndGlobal diff --git a/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Data/Template.docx b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Data/Template.docx new file mode 100644 index 000000000..ae467b98f Binary files /dev/null and b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Data/Template.docx differ diff --git a/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Output/.gitkeep b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Program.cs b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Program.cs new file mode 100644 index 000000000..7b6015989 --- /dev/null +++ b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Program.cs @@ -0,0 +1,86 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; +using System; +using System.IO; + +namespace Split_table_by_columns +{ + class Program + { + static void Main(string[] args) + { + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + //Open an existing Word document. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) + { + //Access the first table in the Word document. + WTable table = document.Sections[0].Tables[0] as WTable; + //Get the index of the table within the document's text body. + int index = table.OwnerTextBody.ChildEntities.IndexOf(table); + //Determine the column index at which the table will be split. + int columnIndex = (int)Math.Floor((double)table.Rows[0].Cells.Count / 2); + //Split the table into two parts based on the calculated column index. + WTable secondTable = SplitTableByColumns(table, columnIndex); + + //Insert a heading above the first part of the table. + WParagraph titleParaOne = new WParagraph(document); + titleParaOne.AppendText("Part 1 of 2").CharacterFormat.Bold = true; + table.OwnerTextBody.ChildEntities.Insert(index, titleParaOne); + //Insert a heading above the second part of the table. + WParagraph titleParaTwo = new WParagraph(document); + titleParaTwo.AppendText("Part 2 of 2").CharacterFormat.Bold = true; + table.OwnerTextBody.ChildEntities.Insert(index + 2, titleParaTwo); + + //Insert the second part of the table into the Word document. + table.OwnerTextBody.ChildEntities.Insert(index + 3, secondTable); + //Create a file stream to save the modified Word document. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + //Save the modified Word document to the file stream. + document.Save(outputFileStream, FormatType.Docx); + } + } + } + } + /// + /// Split a table into two parts based on the specified column index. + /// + /// The table to split. + /// The column index where the split occurs. + /// The table with columns after the split point. + public static WTable SplitTableByColumns(WTable originalTable, int columnsToSplit) + { + //Clone the original table to create the second part of the table. + WTable clonedTable = originalTable.Clone(); + //Remove cells from the cloned table to keep only the columns after the split point. + foreach (WTableRow row in clonedTable.Rows) + { + //Check if the table has enough columns before attempting to remove. + if (columnsToSplit >= 0 && columnsToSplit < row.Cells.Count) + { + //Remove cells from the first part of the table (columns before the split point). + for (int i = columnsToSplit; i >= 0; i--) + { + row.Cells.RemoveAt(i); + } + } + } + //Remove cells from the original table to keep only the columns before the split point. + foreach (WTableRow row in originalTable.Rows) + { + //Check if the table has enough columns before attempting to remove. + if (columnsToSplit < row.Cells.Count) + { + //Remove cells from the second part of the table (columns after the split point). + for (int i = row.Cells.Count - 1; i > columnsToSplit; i--) + { + row.Cells.RemoveAt(i); + } + } + } + //Return the second part of the table. + return clonedTable; + } + } +} \ No newline at end of file diff --git a/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Split-table-by-columns.csproj b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Split-table-by-columns.csproj new file mode 100644 index 000000000..e3baf6bac --- /dev/null +++ b/Tables/Split-table-by-columns/.NET/Split-table-by-columns/Split-table-by-columns.csproj @@ -0,0 +1,22 @@ + + + + Exe + net8.0 + Split_table_by_columns + + + + + + + + + Always + + + Always + + + + diff --git a/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Input.docx b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Data/Input.docx similarity index 100% rename from Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Input.docx rename to Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Data/Input.docx diff --git a/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Output/.gitkeep b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Program.cs b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Program.cs index 0dd5a0e94..110f4971b 100644 --- a/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Program.cs +++ b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/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)) @@ -22,7 +22,7 @@ static void Main(string[] args) //Add the second table. table.OwnerTextBody.ChildEntities.Add(secondTable); //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/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Split-table-with-same-format.csproj b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Split-table-with-same-format.csproj index 647c27cd3..d0ff57a97 100644 --- a/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Split-table-with-same-format.csproj +++ b/Tables/Split-table-with-same-format/.NET/Split-table-with-same-format/Split-table-with-same-format.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Tables/Table-style-options/.NET/Table-style-options/Template.docx b/Tables/Table-style-options/.NET/Table-style-options/Data/Template.docx similarity index 100% rename from Tables/Table-style-options/.NET/Table-style-options/Template.docx rename to Tables/Table-style-options/.NET/Table-style-options/Data/Template.docx diff --git a/Tables/Table-style-options/.NET/Table-style-options/Output/.gitkeep b/Tables/Table-style-options/.NET/Table-style-options/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Tables/Table-style-options/.NET/Table-style-options/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Tables/Table-style-options/.NET/Table-style-options/Program.cs b/Tables/Table-style-options/.NET/Table-style-options/Program.cs index 7c0c1b4af..cb5c319db 100644 --- a/Tables/Table-style-options/.NET/Table-style-options/Program.cs +++ b/Tables/Table-style-options/.NET/Table-style-options/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 existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -30,7 +30,7 @@ static void Main(string[] args) //Disables special formatting for last row of the table. table.ApplyStyleForLastRow = false; //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/Tables/Table-style-options/.NET/Table-style-options/Table-style-options.csproj b/Tables/Table-style-options/.NET/Table-style-options/Table-style-options.csproj index e3fcb89d0..2ffb37453 100644 --- a/Tables/Table-style-options/.NET/Table-style-options/Table-style-options.csproj +++ b/Tables/Table-style-options/.NET/Table-style-options/Table-style-options.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Convert-Word-to-text-file.csproj b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Convert-Word-to-text-file.csproj index 43639ad75..6c7851d22 100644 --- a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Convert-Word-to-text-file.csproj +++ b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Convert-Word-to-text-file.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Template.docx b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Data/Template.docx similarity index 100% rename from Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Template.docx rename to Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Data/Template.docx diff --git a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Output/.gitkeep b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Program.cs b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Program.cs index f86e6b3c4..358cd1152 100644 --- a/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/Program.cs +++ b/Text-file-conversion/Convert-Word-to-text-file/.NET/Convert-Word-to-text-file/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(@"../../../WordToText.txt"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToText.txt"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Txt); diff --git a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Convert-text-file-to-Word.csproj b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Convert-text-file-to-Word.csproj index fa537343e..5d5ce127c 100644 --- a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Convert-text-file-to-Word.csproj +++ b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Convert-text-file-to-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Template.txt b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Data/Template.txt similarity index 100% rename from Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Template.txt rename to Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Data/Template.txt diff --git a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Output/.gitkeep b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Program.cs b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Program.cs index a76076aa2..9519353e4 100644 --- a/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-to-Word/Program.cs +++ b/Text-file-conversion/Convert-text-file-to-Word/.NET/Convert-text-file-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(@"../../../Template.txt"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.txt"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Txt)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../TextToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/TextToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Template.docx b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Data/Template.docx similarity index 100% rename from Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Template.docx rename to Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Data/Template.docx diff --git a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Output/.gitkeep b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Program.cs b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Program.cs index 8bd034b69..68d8c4091 100644 --- a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Program.cs +++ b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Program.cs @@ -9,7 +9,7 @@ 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)) { @@ -25,7 +25,7 @@ static void Main(string[] args) //Appends the text to the paragraph. paragraph.AppendText(text); //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. newdocument.Save(outputFileStream, FormatType.Docx); diff --git a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Retrieve-Word-document-as-plain-text.csproj b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Retrieve-Word-document-as-plain-text.csproj index e850e6ffd..9bb3a3b62 100644 --- a/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Retrieve-Word-document-as-plain-text.csproj +++ b/Text-file-conversion/Retrieve-Word-document-as-plain-text/.NET/Retrieve-Word-document-as-plain-text/Retrieve-Word-document-as-plain-text.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Accept-all-changes-made-by-author.csproj b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Accept-all-changes-made-by-author.csproj index 36f92852f..ff4abb30e 100644 --- a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Accept-all-changes-made-by-author.csproj +++ b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Accept-all-changes-made-by-author.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Template.docx b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Data/Template.docx similarity index 100% rename from Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Template.docx rename to Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Data/Template.docx diff --git a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Output/.gitkeep b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Program.cs b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Program.cs index 48ffe0635..302f0fd3c 100644 --- a/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/Program.cs +++ b/Track-Changes/Accept-all-changes-made-by-author/.NET/Accept-all-changes-made-by-author/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) i = document.Revisions.Count; } //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/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Accept-all-changes.csproj b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Accept-all-changes.csproj index 306a131e7..53746331e 100644 --- a/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Accept-all-changes.csproj +++ b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Accept-all-changes.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Template.docx b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Data/Template.docx similarity index 100% rename from Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Template.docx rename to Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Data/Template.docx diff --git a/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Output/.gitkeep b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Program.cs b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Program.cs index 8d5ffb2c1..18bb49e47 100644 --- a/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/Program.cs +++ b/Track-Changes/Accept-all-changes/.NET/Accept-all-changes/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) if (document.HasChanges) document.Revisions.AcceptAll(); //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/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Accept-or-reject-specific-type.csproj b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Accept-or-reject-specific-type.csproj index 6f043125d..3808031c6 100644 --- a/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Accept-or-reject-specific-type.csproj +++ b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Accept-or-reject-specific-type.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Template.docx b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Data/Template.docx similarity index 100% rename from Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Template.docx rename to Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Data/Template.docx diff --git a/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Output/.gitkeep b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Program.cs b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Program.cs index 245a67d3c..ce2fcee7a 100644 --- a/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/Program.cs +++ b/Track-Changes/Accept-or-reject-specific-type/.NET/Accept-or-reject-specific-type/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)) @@ -26,7 +26,7 @@ static void Main(string[] args) i = document.Revisions.Count; } //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/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Enable-track-changes-of-Word.csproj b/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Enable-track-changes-of-Word.csproj index b89b559df..c74a52b6f 100644 --- a/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Enable-track-changes-of-Word.csproj +++ b/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Enable-track-changes-of-Word.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Output/.gitkeep b/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Program.cs b/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Program.cs index 635ee3762..be179284e 100644 --- a/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Program.cs +++ b/Track-Changes/Enable-track-changes-of-Word/.NET/Enable-track-changes-of-Word/Program.cs @@ -25,7 +25,7 @@ static void Main(string[] args) //Turns on the track changes option. document.TrackChanges = true; //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/Track-Changes/Get-revision-information/.NET/Get-revision-information/Template.docx b/Track-Changes/Get-revision-information/.NET/Get-revision-information/Data/Template.docx similarity index 100% rename from Track-Changes/Get-revision-information/.NET/Get-revision-information/Template.docx rename to Track-Changes/Get-revision-information/.NET/Get-revision-information/Data/Template.docx diff --git a/Track-Changes/Get-revision-information/.NET/Get-revision-information/Get-revision-information.csproj b/Track-Changes/Get-revision-information/.NET/Get-revision-information/Get-revision-information.csproj index b6bbbe827..0d96dd7af 100644 --- a/Track-Changes/Get-revision-information/.NET/Get-revision-information/Get-revision-information.csproj +++ b/Track-Changes/Get-revision-information/.NET/Get-revision-information/Get-revision-information.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Track-Changes/Get-revision-information/.NET/Get-revision-information/Program.cs b/Track-Changes/Get-revision-information/.NET/Get-revision-information/Program.cs index 2bb0a74a8..34ad54481 100644 --- a/Track-Changes/Get-revision-information/.NET/Get-revision-information/Program.cs +++ b/Track-Changes/Get-revision-information/.NET/Get-revision-information/Program.cs @@ -9,7 +9,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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -22,10 +22,9 @@ static void Main(string[] args) DateTime dateTime = revision.Date; //Gets the type of the track changes revision. RevisionType revisionType = revision.RevisionType; - Console.WriteLine("Author : " + author); + Console.WriteLine("Author : " + author); Console.WriteLine("\nDate and Time : " + dateTime); Console.WriteLine("\nRevision Type : " + revisionType); - Console.ReadKey(); } } } diff --git a/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Template.docx b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Data/Template.docx similarity index 100% rename from Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Template.docx rename to Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Data/Template.docx diff --git a/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Output/.gitkeep b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Program.cs b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Program.cs index b93c2c150..b3c5cdd27 100644 --- a/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Program.cs +++ b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) i = document.Revisions.Count; } //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/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Reject-all-changes-made-by-author.csproj b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Reject-all-changes-made-by-author.csproj index c926dd594..f9c591d66 100644 --- a/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Reject-all-changes-made-by-author.csproj +++ b/Track-Changes/Reject-all-changes-made-by-author/.NET/Reject-all-changes-made-by-author/Reject-all-changes-made-by-author.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Template.docx b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Data/Template.docx similarity index 100% rename from Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Template.docx rename to Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Data/Template.docx diff --git a/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Output/.gitkeep b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Program.cs b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Program.cs index de98fa447..024bb645c 100644 --- a/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Program.cs +++ b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/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)) { //Creates a new Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) if (document.HasChanges) document.Revisions.RejectAll(); //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/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Reject-all-changes.csproj b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Reject-all-changes.csproj index 21eedae70..e4ed25cf7 100644 --- a/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Reject-all-changes.csproj +++ b/Track-Changes/Reject-all-changes/.NET/Reject-all-changes/Reject-all-changes.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Add-picture-watermark.csproj b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Add-picture-watermark.csproj index 9f2539a37..6f3709747 100644 --- a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Add-picture-watermark.csproj +++ b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Add-picture-watermark.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Northwind-logo.png b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Data/Northwind-logo.png similarity index 100% rename from Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Northwind-logo.png rename to Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Data/Northwind-logo.png diff --git a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Output/.gitkeep b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Program.cs b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Program.cs index f4ec100f7..cbc5c22d3 100644 --- a/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Program.cs +++ b/Watermark/Add-picture-watermark/.NET/Add-picture-watermark/Program.cs @@ -22,13 +22,13 @@ static void Main(string[] args) picWatermark.Washout = true; //Sets the picture watermark to document. document.Watermark = picWatermark; - FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Northwind-logo.png"), FileMode.Open, FileAccess.Read); + FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Northwind-logo.png"), FileMode.Open, FileAccess.Read); BinaryReader br = new BinaryReader(imageStream); byte[] image = br.ReadBytes((int)imageStream.Length); //Sets the image to the picture watermark. picWatermark.LoadPicture(image); //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/Watermark/Add-text-watermark/.NET/Add-text-watermark/Add-text-watermark.csproj b/Watermark/Add-text-watermark/.NET/Add-text-watermark/Add-text-watermark.csproj index 88eea5a06..03ba0879d 100644 --- a/Watermark/Add-text-watermark/.NET/Add-text-watermark/Add-text-watermark.csproj +++ b/Watermark/Add-text-watermark/.NET/Add-text-watermark/Add-text-watermark.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Watermark/Add-text-watermark/.NET/Add-text-watermark/Output/.gitkeep b/Watermark/Add-text-watermark/.NET/Add-text-watermark/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Watermark/Add-text-watermark/.NET/Add-text-watermark/Program.cs b/Watermark/Add-text-watermark/.NET/Add-text-watermark/Program.cs index a2ee598b9..d69a66e81 100644 --- a/Watermark/Add-text-watermark/.NET/Add-text-watermark/Program.cs +++ b/Watermark/Add-text-watermark/.NET/Add-text-watermark/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) //Sets the text watermark text color. textWatermark.Color = Color.Black; //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/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Access-styles-in-document.csproj b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Access-styles-in-document.csproj index a165ab170..a244cae70 100644 --- a/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Access-styles-in-document.csproj +++ b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Access-styles-in-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Template.docx b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Data/Template.docx similarity index 100% rename from Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Template.docx rename to Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Data/Template.docx diff --git a/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Output/.gitkeep b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Program.cs b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Program.cs index 6389a98d0..3f108d15c 100644 --- a/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Program.cs +++ b/Word-document/Access-styles-in-document/.NET/Access-styles-in-document/Program.cs @@ -10,7 +10,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)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Changes the first line indent of Paragraph as 36 points. heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36; //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/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Add-custom-document-properties.csproj b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Add-custom-document-properties.csproj index bff5c54e1..a6c49e9da 100644 --- a/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Add-custom-document-properties.csproj +++ b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Add-custom-document-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Template.docx b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Data/Template.docx similarity index 100% rename from Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Template.docx rename to Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Data/Template.docx diff --git a/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Output/.gitkeep b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Program.cs b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Program.cs index 362238ab4..c672bbd12 100644 --- a/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Program.cs +++ b/Word-document/Add-custom-document-properties/.NET/Add-custom-document-properties/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -20,7 +20,7 @@ static void Main(string[] args) document.CustomDocumentProperties.Add("PropertyC", true); document.CustomDocumentProperties.Add("PropertyD", new DateTime(2015, 7, 20)); //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/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end.sln b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end.sln new file mode 100644 index 000000000..fa643a0bc --- /dev/null +++ b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35309.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Add-new-page-at-end", "Add-new-page-at-end\Add-new-page-at-end.csproj", "{998C35CE-53D4-483D-9D2F-C9C3E712C0CC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {998C35CE-53D4-483D-9D2F-C9C3E712C0CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {998C35CE-53D4-483D-9D2F-C9C3E712C0CC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {998C35CE-53D4-483D-9D2F-C9C3E712C0CC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {998C35CE-53D4-483D-9D2F-C9C3E712C0CC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {571BB803-9186-4572-A361-BE14AF47296D} + EndGlobalSection +EndGlobal diff --git a/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Add-new-page-at-end.csproj b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Add-new-page-at-end.csproj new file mode 100644 index 000000000..c3677f52b --- /dev/null +++ b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Add-new-page-at-end.csproj @@ -0,0 +1,23 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + + Always + + + Always + + + + diff --git a/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Data/Adventure.docx b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Data/Adventure.docx new file mode 100644 index 000000000..fea304bb2 Binary files /dev/null and b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Data/Adventure.docx differ diff --git a/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Output/.gitkeep b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Program.cs b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Program.cs new file mode 100644 index 000000000..f24afd9f9 --- /dev/null +++ b/Word-document/Add-new-page-at-end/.NET/Add-new-page-at-end/Program.cs @@ -0,0 +1,19 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; + +// Open a file stream to read the existing Word document. +using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Adventure.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) +{ + // Initialize a WordDocument object with the opened file stream. + using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) + { + // Append a page break to the last paragraph of the document. + document.LastParagraph.AppendBreak(BreakType.PageBreak); + // Create a file stream for the output document to save the modified content. + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite)) + { + // Save the modified Word document to the output file stream in Docx format. + document.Save(outputFileStream, FormatType.Docx); + } + } +} diff --git a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Apply-built-in-style.csproj b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Apply-built-in-style.csproj index d4fc7033f..3125e32da 100644 --- a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Apply-built-in-style.csproj +++ b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Apply-built-in-style.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Template.docx b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Data/Template.docx similarity index 100% rename from Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Template.docx rename to Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Data/Template.docx diff --git a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Output/.gitkeep b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Program.cs b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Program.cs index 4be55f47c..5630ce95b 100644 --- a/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Program.cs +++ b/Word-document/Apply-built-in-style/.NET/Apply-built-in-style/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Applies the style to paragraph. document.LastParagraph.ApplyStyle(BuiltinStyle.Emphasis); //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/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Apply-gradient-background-to-document.csproj b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Apply-gradient-background-to-document.csproj index 046143536..ee896a99f 100644 --- a/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Apply-gradient-background-to-document.csproj +++ b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Apply-gradient-background-to-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Template.docx b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Data/Template.docx similarity index 100% rename from Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Template.docx rename to Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Data/Template.docx diff --git a/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Output/.gitkeep b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Program.cs b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Program.cs index 0d5442f91..50d2cf237 100644 --- a/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Program.cs +++ b/Word-document/Apply-gradient-background-to-document/.NET/Apply-gradient-background-to-document/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) document.Background.Gradient.ShadingStyle = GradientShadingStyle.DiagonalUp; document.Background.Gradient.ShadingVariant = GradientShadingVariant.ShadingDown; //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/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Apply-picture-background-to-document.csproj b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Apply-picture-background-to-document.csproj index afe2ae12e..4599a6423 100644 --- a/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Apply-picture-background-to-document.csproj +++ b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Apply-picture-background-to-document.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Output/.gitkeep b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Program.cs b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Program.cs index 51d6ee8bd..316f688d2 100644 --- a/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Program.cs +++ b/Word-document/Apply-picture-background-to-document/.NET/Apply-picture-background-to-document/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - 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)) { //Opens an document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Sets the background type as picture. document.Background.Type = BackgroundType.Picture; //Opens the existing image. - using (FileStream imageStream = new FileStream(@"../../../Data/Picture.png", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Picture.png"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (MemoryStream memoryStream = new MemoryStream()) { @@ -25,7 +25,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/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Clone-whole-Word-document.csproj b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Clone-whole-Word-document.csproj index 7ae9fc3d4..e854ab3f6 100644 --- a/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Clone-whole-Word-document.csproj +++ b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Clone-whole-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Template.docx b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Data/Template.docx similarity index 100% rename from Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Template.docx rename to Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Data/Template.docx diff --git a/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Output/.gitkeep b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Program.cs b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Program.cs index 86b64e0ec..57e281578 100644 --- a/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Program.cs +++ b/Word-document/Clone-whole-Word-document/.NET/Clone-whole-Word-document/Program.cs @@ -9,7 +9,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 existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) using (WordDocument clonedDocument = document.Clone()) { //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 cloned document instance. clonedDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Copy-Excel-content-to-Word-with-formatting.csproj b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Copy-Excel-content-to-Word-with-formatting.csproj index 6af3d44ad..135472812 100644 --- a/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Copy-Excel-content-to-Word-with-formatting.csproj +++ b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Copy-Excel-content-to-Word-with-formatting.csproj @@ -14,4 +14,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Output/.gitkeep b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Program.cs b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Program.cs index c2ced0d5a..53140ca87 100644 --- a/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Program.cs +++ b/Word-document/Copy-Excel-content-to-Word-with-formatting/.NET/Copy-Excel-content-to-Word-with-formatting/Program.cs @@ -18,7 +18,7 @@ ExtractExcelContent(table); //Load the file into stream -FileStream outputStream = new FileStream("../../../Data/Output.docx", FileMode.Create, FileAccess.Write); +FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write); //Save the Word document. document.Save(outputStream, FormatType.Docx); //Close the document @@ -35,7 +35,7 @@ void ExtractExcelContent(WTable table) IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; //Load the file into stream - FileStream inputExcelStream = new FileStream("../../../Data/Sample.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputExcelStream = new FileStream(Path.GetFullPath(@"Data/Sample.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputExcelStream); //Get the first worksheet diff --git a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Create-new-paragraph-style.csproj b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Create-new-paragraph-style.csproj index 3e396422c..207619cea 100644 --- a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Create-new-paragraph-style.csproj +++ b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Create-new-paragraph-style.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Template.docx b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Data/Template.docx similarity index 100% rename from Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Template.docx rename to Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Data/Template.docx diff --git a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Output/.gitkeep b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Program.cs b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Program.cs index a7d779bc2..8fdbedabb 100644 --- a/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Program.cs +++ b/Word-document/Create-new-paragraph-style/.NET/Create-new-paragraph-style/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) //Applies the style to paragraph. document.LastParagraph.ApplyStyle("MyStyle"); //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/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document.sln b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document.sln new file mode 100644 index 000000000..de3c87fa4 --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Extract-images-from-Word-document", "Extract-images-from-Word-document\Extract-images-from-Word-document.csproj", "{C586B837-80B6-481B-A4CD-B9C1D1375DE7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C586B837-80B6-481B-A4CD-B9C1D1375DE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C586B837-80B6-481B-A4CD-B9C1D1375DE7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C586B837-80B6-481B-A4CD-B9C1D1375DE7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C586B837-80B6-481B-A4CD-B9C1D1375DE7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FEDBF663-E057-4930-9801-2198B6F072BA} + EndGlobalSection +EndGlobal diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/App.config b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/App.config new file mode 100644 index 000000000..193aecc67 --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Data/Template.docx b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Data/Template.docx new file mode 100644 index 000000000..2884a9aa9 Binary files /dev/null and b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Data/Template.docx differ diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj new file mode 100644 index 000000000..80d868e2d --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj @@ -0,0 +1,66 @@ + + + + + Debug + AnyCPU + {C586B837-80B6-481B-A4CD-B9C1D1375DE7} + Exe + Extract_images_from_Word_document + Extract-images-from-Word-document + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll + + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll + + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll + + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Program.cs b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Program.cs new file mode 100644 index 000000000..32674aeff --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Program.cs @@ -0,0 +1,47 @@ +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Extract_images_from_Word_document +{ + internal class Program + { + static void Main(string[] args) + { + // Open the file as a stream. + using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../Data/Template.docx"), FileMode.Open, FileAccess.Read)) + { + // Load the file stream into a Word document. + using (WordDocument document = new WordDocument(docStream, FormatType.Docx)) + { + // Find all pictures by EntityType in the Word document. + List pictures = document.FindAllItemsByProperty(EntityType.Picture, null, null); + + // Iterate through the pictures and save each one as an image file. + for (int i = 0; i < pictures.Count; i++) + { + WPicture image = pictures[i] as WPicture; + + // Use a MemoryStream to handle the image bytes from the picture. + using (MemoryStream memoryStream = new MemoryStream(image.ImageBytes)) + { + // Define the path where the image will be saved. + string imagePath = Path.GetFullPath(@"../../Image-" + i + ".jpeg"); + + // Create a FileStream to write the image to the specified path. + using (FileStream filestream = new FileStream(imagePath, FileMode.Create, FileAccess.Write)) + { + memoryStream.CopyTo(filestream); + } + } + } + } + } + } + } +} diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Properties/AssemblyInfo.cs b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..3b1bb6460 --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Extract-images-from-Word-document")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Extract-images-from-Word-document")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c586b837-80b6-481b-a4cd-b9c1d1375de7")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/packages.config b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/packages.config new file mode 100644 index 000000000..af41e897a --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET-Framework/Extract-images-from-Word-document/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj index f5078ede7..196e90a16 100644 --- a/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj +++ b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Extract-images-from-Word-document.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs index 3b929a578..d45ee639f 100644 --- a/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs +++ b/Word-document/Extract-images-from-Word-document/.NET/Extract-images-from-Word-document/Program.cs @@ -11,7 +11,7 @@ internal class Program static void Main(string[] args) { // Open the file as a stream. - using (FileStream docStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read)) + using (FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read)) { // Load the file stream into a Word document. using (WordDocument document = new WordDocument(docStream, FormatType.Docx)) @@ -28,7 +28,7 @@ static void Main(string[] args) using (MemoryStream memoryStream = new MemoryStream(image.ImageBytes)) { // Define the path where the image will be saved. - string imagePath = Path.GetFullPath(@"../../../Image-" + i + ".jpeg"); + string imagePath = Path.GetFullPath(@"Output/Image-" + i + ".jpeg"); // Create a FileStream to write the image to the specified path. using (FileStream filestream = new FileStream(imagePath, FileMode.Create, FileAccess.Write)) diff --git a/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Find-and-replace-text-with-Excel-content.csproj b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Find-and-replace-text-with-Excel-content.csproj index 03e2e4e8d..266da4b94 100644 --- a/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Find-and-replace-text-with-Excel-content.csproj +++ b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Find-and-replace-text-with-Excel-content.csproj @@ -13,4 +13,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Output/.gitkeep b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Program.cs b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Program.cs index 2fa73bed4..5f868cac8 100644 --- a/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Program.cs +++ b/Word-document/Find-and-replace-text-with-Excel-content/.NET/Find-and-replace-text-with-Excel-content/Program.cs @@ -5,7 +5,7 @@ using Syncfusion.DocIO; -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)) { //Opens an existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -24,7 +24,7 @@ document.Replace("<>", bodyPart, true, true, false); //Load the file into stream - FileStream outputStream = new FileStream("../../../Data/Output.docx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write); //Save the Word document. document.Save(outputStream, FormatType.Docx); } @@ -40,7 +40,7 @@ void ExtractExcelContent(WTable table) IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; //Load the file into stream - FileStream inputExcelStream = new FileStream("../../../Data/Sample.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputExcelStream = new FileStream(Path.GetFullPath(@"Data/Sample.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputExcelStream); //Get the first worksheet diff --git a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Input.docx b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Data/Input.docx similarity index 100% rename from Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Input.docx rename to Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Data/Input.docx diff --git a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Hide-backgrounds-in-print-layout-view.csproj b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Hide-backgrounds-in-print-layout-view.csproj index 9f870ba2e..f608dda0d 100644 --- a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Hide-backgrounds-in-print-layout-view.csproj +++ b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Hide-backgrounds-in-print-layout-view.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Output/.gitkeep b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Program.cs b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Program.cs index 07df195be..7bf40a08d 100644 --- a/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/Program.cs +++ b/Word-document/Hide-backgrounds-in-print-layout-view/.NET/Hide-backgrounds-in-print-layout-view/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)) { //Load the file stream into the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -16,7 +16,7 @@ static void Main(string[] args) //Disable a flag to hide the background in the print layout view. document.Settings.DisplayBackgrounds = false; //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/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Insert-document-before-the-text.csproj b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Insert-document-before-the-text.csproj index 6b240c25e..8dff420d1 100644 --- a/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Insert-document-before-the-text.csproj +++ b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Insert-document-before-the-text.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Output/.gitkeep b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Program.cs b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Program.cs index be8638db9..24ae59758 100644 --- a/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Program.cs +++ b/Word-document/Insert-document-before-the-text/.NET/Insert-document-before-the-text/Program.cs @@ -9,12 +9,12 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Word document. using (WordDocument sourceDocument = new WordDocument(sourceStreamPath, FormatType.Automatic)) { - using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) @@ -37,7 +37,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/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Template.docx b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Data/Template.docx similarity index 100% rename from Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Template.docx rename to Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Data/Template.docx diff --git a/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Iterate-document-elements.csproj b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Iterate-document-elements.csproj index b21571f55..0f22aee02 100644 --- a/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Iterate-document-elements.csproj +++ b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Iterate-document-elements.csproj @@ -9,5 +9,23 @@ + + + + Always + + + Always + + + + + + Always + + + Always + + diff --git a/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Output/.gitkeep b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Program.cs b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Program.cs index 44fbdc60a..c624d84c0 100644 --- a/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Program.cs +++ b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Program.cs @@ -9,7 +9,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 existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -26,7 +26,7 @@ static void Main(string[] args) IterateTextBody(headersFooters.OddFooter); } //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/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Link-paragraph-and-character-style.csproj b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Link-paragraph-and-character-style.csproj index 3c45ce73e..0bd568a25 100644 --- a/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Link-paragraph-and-character-style.csproj +++ b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Link-paragraph-and-character-style.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Output/.gitkeep b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Program.cs b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Program.cs index 9d45a0369..02ba8a797 100644 --- a/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Program.cs +++ b/Word-document/Link-paragraph-and-character-style/.NET/Link-paragraph-and-character-style/Program.cs @@ -35,7 +35,7 @@ static void Main(string[] args) //Applies style to the text range. (document.LastParagraph.ChildEntities[0] as WTextRange).ApplyStyle("ParagraphStyle"); //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/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Merge-documents-in-new-page.csproj b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Merge-documents-in-new-page.csproj index 14f0af2d7..2eaffbc2a 100644 --- a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Merge-documents-in-new-page.csproj +++ b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Merge-documents-in-new-page.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Output/.gitkeep b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Program.cs b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Program.cs index fa4c11786..b32f36989 100644 --- a/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Program.cs +++ b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Program.cs @@ -10,12 +10,12 @@ class Program { static void Main(string[] args) { - using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an source document from file system through constructor of WordDocument class. using (WordDocument sourceDocument = new WordDocument(sourceStreamPath, FormatType.Automatic)) { - using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens the destination document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Imports the contents of source document at the end of destination document. destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); //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. destinationDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Merge-documents-in-same-page.csproj b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Merge-documents-in-same-page.csproj index 9196af0b9..41d233cad 100644 --- a/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Merge-documents-in-same-page.csproj +++ b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Merge-documents-in-same-page.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Output/.gitkeep b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Program.cs b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Program.cs index b5f0f398f..d3da63ffd 100644 --- a/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Program.cs +++ b/Word-document/Merge-documents-in-same-page/.NET/Merge-documents-in-same-page/Program.cs @@ -10,12 +10,12 @@ class Program { static void Main(string[] args) { - using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens an source document from file system through constructor of WordDocument class. using (WordDocument sourceDocument = new WordDocument(sourceStreamPath, FormatType.Automatic)) { - using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Opens the destination document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) //Imports the contents of source document at the end of destination document. destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); //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. destinationDocument.Save(outputFileStream, FormatType.Docx); diff --git a/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Merge-documents-with-destination-margin.csproj b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Merge-documents-with-destination-margin.csproj index b86d074ac..7318f25aa 100644 --- a/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Merge-documents-with-destination-margin.csproj +++ b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Merge-documents-with-destination-margin.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Output/.gitkeep b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Program.cs b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Program.cs index 3fbac6484..c989c2ee0 100644 --- a/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Program.cs +++ b/Word-document/Merge-documents-with-destination-margin/.NET/Merge-documents-with-destination-margin/Program.cs @@ -11,12 +11,12 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream sourceStreamPath = new FileStream(Path.GetFullPath(@"Data/SourceDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Word document. using (WordDocument sourceDocument = new WordDocument(sourceStreamPath, FormatType.Automatic)) { - using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) destinationDocument.Sections.Add(sourceSection.Clone()); } //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/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Merge-documents-with-same-header-and-footer.csproj b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Merge-documents-with-same-header-and-footer.csproj index 0e4c0a2a1..7ab9ff8b1 100644 --- a/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Merge-documents-with-same-header-and-footer.csproj +++ b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Merge-documents-with-same-header-and-footer.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Output/.gitkeep b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Program.cs b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Program.cs index 4fbb3613c..37513e83a 100644 --- a/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Program.cs +++ b/Word-document/Merge-documents-with-same-header-and-footer/.NET/Merge-documents-with-same-header-and-footer/Program.cs @@ -12,13 +12,13 @@ class Program static void Main(string[] args) { //Open the destination document as a stream. -            using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/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 document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) { //Get the Source document names from the folder. - string[] sourceDocumentNames = Directory.GetFiles(@"../../../Data/SourceDocuments/"); + string[] sourceDocumentNames = Directory.GetFiles(Path.GetFullPath(@"Data/SourceDocuments/"));                     //Merge each source document to the destination document. foreach (string subDocumentName in sourceDocumentNames) { @@ -45,7 +45,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/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page.sln" b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page.sln similarity index 80% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page.sln" rename to Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page.sln index 17cc3bca3..3a111bfcf 100644 --- "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page.sln" +++ b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.8.34322.80 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge–multiple-Word-files-in-same-page", "Merge–multiple-Word-files-in-same-page\Merge–multiple-Word-files-in-same-page.csproj", "{C790F761-62BA-49E1-8FF6-E15165CB08C1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge-multiple-Word-files-in-same-page", "Merge-multiple-Word-files-in-same-page\Merge-multiple-Word-files-in-same-page.csproj", "{C790F761-62BA-49E1-8FF6-E15165CB08C1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Addressblock.docx" b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Addressblock.docx similarity index 100% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Addressblock.docx" rename to Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Addressblock.docx diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Greetings.docx" b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Greetings.docx similarity index 100% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Greetings.docx" rename to Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Greetings.docx diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Salutation.docx" b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Salutation.docx similarity index 100% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Salutation.docx" rename to Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Salutation.docx diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Title.docx" b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Title.docx similarity index 100% rename from "Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Data/Title.docx" rename to Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Data/Title.docx diff --git a/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Merge-multiple-Word-files-in-same-page.csproj b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Merge-multiple-Word-files-in-same-page.csproj new file mode 100644 index 000000000..d0154946c --- /dev/null +++ b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Merge-multiple-Word-files-in-same-page.csproj @@ -0,0 +1,33 @@ + + + + Exe + net8.0 + Merge_multiple_Word_files_in_same_page + enable + enable + + + + + + + + + Always + + + Always + + + Always + + + Always + + + Always + + + + diff --git a/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Output/.gitkeep b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Program.cs b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Program.cs new file mode 100644 index 000000000..49debe181 --- /dev/null +++ b/Word-document/Merge-multiple-Word-files-in-same-page/.NET/Merge-multiple-Word-files-in-same-page/Program.cs @@ -0,0 +1,46 @@ +using Syncfusion.DocIO; +using Syncfusion.DocIO.DLS; + +//Create a list and add the paths of the source Word documents to it. +List sourceFileNames = new List(); +sourceFileNames.Add("Data/Addressblock.docx"); +sourceFileNames.Add("Data/Salutation.docx"); +sourceFileNames.Add("Data/Greetings.docx"); + +//Get the absolute path of the destination Word document. +string destinationFileName = Path.GetFullPath(@"Data/Title.docx"); +using (FileStream destinationStream = new FileStream(destinationFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) +{ + //Open the destination document. + using (WordDocument destinationDocument = new WordDocument(destinationStream, FormatType.Automatic)) + { + ImportOtherDocuments(sourceFileNames, destinationDocument); + //Save the destination document. + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) + { + destinationDocument.Save(outputStream, FormatType.Docx); + } + } +} + +/// +/// Import content from multiple source Word documents into a destination document. +/// +void ImportOtherDocuments(List sourceFiles, WordDocument destinationDocument) +{ + //Iterate through each source document from the list. + foreach (string sourceFileName in sourceFiles) + { + using (FileStream sourceStream = new FileStream(sourceFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + //Open the source document. + using (WordDocument sourceDocument = new WordDocument(sourceStream, FormatType.Automatic)) + { + //Set the break-code of First section of source document as NoBreak to avoid imported from a new page. + sourceDocument.Sections[0].BreakCode = SectionBreakCode.NoBreak; + //Import the contents of source document at the end of destination document. + destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); + } + } + } +} \ No newline at end of file diff --git a/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Merge-without-changing-page-numbers.csproj b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Merge-without-changing-page-numbers.csproj index 115010a72..4e436dc0e 100644 --- a/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Merge-without-changing-page-numbers.csproj +++ b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Merge-without-changing-page-numbers.csproj @@ -10,4 +10,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Output/.gitkeep b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Program.cs b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Program.cs index 992937e7d..8e738cb42 100644 --- a/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Program.cs +++ b/Word-document/Merge-without-changing-page-numbers/.NET/Merge-without-changing-page-numbers/Program.cs @@ -11,13 +11,13 @@ class Program static void Main(string[] args) { //Open the file as a stream. - using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream destinationStreamPath = new FileStream(Path.GetFullPath(@"Data/DestinationDocument.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the file stream into a Word document. using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) { //Get the Source document names from the folder. - string[] sourceDocumentNames = Directory.GetFiles(@"../../../Data/SourceDocuments/"); + string[] sourceDocumentNames = Directory.GetFiles(Path.GetFullPath(@"Data/SourceDocuments/")); foreach (string subDocumentName in sourceDocumentNames) { //Open the source document files as a stream. @@ -45,7 +45,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 a Word document to the file stream. destinationDocument.Save(outputFileStream, FormatType.Docx); diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Program.cs" "b/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Program.cs" deleted file mode 100644 index 705cfd868..000000000 --- "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Program.cs" +++ /dev/null @@ -1,46 +0,0 @@ -using Syncfusion.DocIO; -using Syncfusion.DocIO.DLS; -using System.Runtime.Serialization; - -//Get the list of source document to be imported -List sourceFileNames = new List(); -sourceFileNames.Add("../../../Data/Addressblock.docx"); -sourceFileNames.Add("../../../Data/Salutation.docx"); -sourceFileNames.Add("../../../Data/Greetings.docx"); - -string destinationFileName = "../../../Data/Title.docx"; -using (FileStream destinationStreamPath = new FileStream(destinationFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) -{ - //Opens the destination document - using (WordDocument destinationDocument = new WordDocument(destinationStreamPath, FormatType.Automatic)) - { - ImportOtherDocuments(sourceFileNames, destinationDocument); - //Saves and closes the destination document - using (FileStream outputStream = new FileStream("../../../Data/Output.docx", FileMode.Create, FileAccess.Write)) - { - destinationDocument.Save(outputStream, FormatType.Docx); - destinationDocument.Close(); - } - } -} - -void ImportOtherDocuments(List sourceFiles, WordDocument destinationDocument) -{ - //Iterate through each source document from the list - foreach (string sourceFileName in sourceFiles) - { - //Open source document - using (FileStream sourceStreamPath = new FileStream(sourceFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) - { - using (WordDocument document = new WordDocument(sourceStreamPath, FormatType.Automatic)) - { - //Sets the break-code of First section of source document as NoBreak to avoid imported from a new page - document.LastSection.BreakCode = SectionBreakCode.NoBreak; - //Imports the contents of source document at the end of destination document - destinationDocument.ImportContent(document, ImportOptions.UseDestinationStyles); - //Close the document. - document.Close(); - } - } - } -} \ No newline at end of file diff --git a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Template.docx b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Data/Template.docx similarity index 100% rename from Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Template.docx rename to Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Data/Template.docx diff --git a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Modify-built-in-document-properties.csproj b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Modify-built-in-document-properties.csproj index 2d56c9221..b9c4b0823 100644 --- a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Modify-built-in-document-properties.csproj +++ b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Modify-built-in-document-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Output/.gitkeep b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Program.cs b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Program.cs index 7598140b7..32ce00003 100644 --- a/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Program.cs +++ b/Word-document/Modify-built-in-document-properties/.NET/Modify-built-in-document-properties/Program.cs @@ -10,7 +10,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) document.BuiltinDocumentProperties.RevisionNumber = "2"; document.BuiltinDocumentProperties.Company = "Adventure Works Cycle"; //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/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Modify-built-in-style.csproj b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Modify-built-in-style.csproj index 820a430c6..65429d49d 100644 --- a/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Modify-built-in-style.csproj +++ b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Modify-built-in-style.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Output/.gitkeep b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Program.cs b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Program.cs index de9f58310..7a4a5c268 100644 --- a/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Program.cs +++ b/Word-document/Modify-built-in-style/.NET/Modify-built-in-style/Program.cs @@ -26,7 +26,7 @@ static void Main(string[] args) //Applies the new style to paragraph. paragraph.ApplyStyle(style.Name); //Creates file stream.s - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Saves the Word document to file stream.s document.Save(outputStream, FormatType.Docx); diff --git a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Template.docx b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Data/Template.docx similarity index 100% rename from Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Template.docx rename to Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Data/Template.docx diff --git a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Modify-content-type-properties.csproj b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Modify-content-type-properties.csproj index c0fd2fd91..c34431c49 100644 --- a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Modify-content-type-properties.csproj +++ b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Modify-content-type-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Output/.gitkeep b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Program.cs b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Program.cs index 9b095ee58..ad7963619 100644 --- a/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Program.cs +++ b/Word-document/Modify-content-type-properties/.NET/Modify-content-type-properties/Program.cs @@ -10,7 +10,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 existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -67,7 +67,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/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Template.docx b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Data/Template.docx similarity index 100% rename from Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Template.docx rename to Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Data/Template.docx diff --git a/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Modify-custom-document-properties.csproj b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Modify-custom-document-properties.csproj index c118fba53..73346749a 100644 --- a/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Modify-custom-document-properties.csproj +++ b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Modify-custom-document-properties.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Output/.gitkeep b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Program.cs b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Program.cs index 74fda3546..4fd6b0dd4 100644 --- a/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Program.cs +++ b/Word-document/Modify-custom-document-properties/.NET/Modify-custom-document-properties/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Modifies the value of DocumentProperty instance. property.Value = "Hello world"; //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/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Modify-formatting-for-default-styles.csproj b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Modify-formatting-for-default-styles.csproj index 5af8cb862..6e27eca0b 100644 --- a/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Modify-formatting-for-default-styles.csproj +++ b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Modify-formatting-for-default-styles.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Output/.gitkeep b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Program.cs b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Program.cs index d17da4e0f..06abf35c1 100644 --- a/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Program.cs +++ b/Word-document/Modify-formatting-for-default-styles/.NET/Modify-formatting-for-default-styles/Program.cs @@ -1,7 +1,7 @@ using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; -using (FileStream fileStreamPath = new FileStream(@"../../../Data/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 the existing Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -12,7 +12,7 @@ ChangeParagraphFormatting(document); //Change table style formatting ChangeTableFormatting(document); - using (FileStream outputStream = new FileStream(@"../../../Data/Output.docx", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word document. document.Save(outputStream, FormatType.Docx); diff --git a/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/Print-Word-document.csproj b/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/Print-Word-document.csproj index 08fd01064..dec62e384 100644 --- a/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/Print-Word-document.csproj +++ b/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/Print-Word-document.csproj @@ -69,23 +69,23 @@ prompt - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Shared.Base.26.1.42\lib\net462\Syncfusion.Shared.Base.dll + + ..\packages\Syncfusion.Shared.Base.27.1.53\lib\net462\Syncfusion.Shared.Base.dll - - ..\packages\Syncfusion.Tools.Windows.26.1.42\lib\net462\Syncfusion.Tools.Windows.dll + + ..\packages\Syncfusion.Tools.Windows.27.1.53\lib\net462\Syncfusion.Tools.Windows.dll System diff --git a/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/packages.config b/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/packages.config index 863ccced9..14f9e3ec7 100644 --- a/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/packages.config +++ b/Word-document/Print-Word-document/.NET-Framework/Print-Word-document/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Input.docx b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Data/Input.docx similarity index 100% rename from Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Input.docx rename to Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Data/Input.docx diff --git a/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Output/.gitkeep b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Program.cs b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Program.cs index 7202ad774..2b29c3ed4 100644 --- a/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Program.cs +++ b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Program.cs @@ -9,7 +9,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)) { //Load the file stream into the Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Remove the existing background in the Word document. document.Background.Type = BackgroundType.NoBackground; //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/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Remove-background-in-Word-document.csproj b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Remove-background-in-Word-document.csproj index ccb02103b..c5222eb23 100644 --- a/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Remove-background-in-Word-document.csproj +++ b/Word-document/Remove-background-in-Word-document/.NET/Remove-background-in-Word-document/Remove-background-in-Word-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Output/.gitkeep b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Program.cs b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Program.cs index 5dd2ff322..fd400b98e 100644 --- a/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Program.cs +++ b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Program.cs @@ -3,7 +3,7 @@ //Opens an existing Word document -using (FileStream inputStream = new FileStream("../../../Data/Sample.docx", FileMode.Open, FileAccess.Read)) +using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Sample.docx"), FileMode.Open, FileAccess.Read)) { using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) { @@ -22,7 +22,7 @@ document.ChildEntities.RemoveAt(SectionIndex); } } - using (FileStream outputStream = new FileStream("../../../Data/Output.docx", FileMode.Create, FileAccess.Write)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write)) { //Saves and closes the Word document document.Save(outputStream, FormatType.Docx); diff --git a/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Remove-empty-pages-from-Word-document.csproj b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Remove-empty-pages-from-Word-document.csproj index 4c36389d1..08b18c716 100644 --- a/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Remove-empty-pages-from-Word-document.csproj +++ b/Word-document/Remove-empty-pages-from-Word-document/.NET/Remove-empty-pages-from-Word-document/Remove-empty-pages-from-Word-document.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Template.docx b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Data/Template.docx similarity index 100% rename from Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Template.docx rename to Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Data/Template.docx diff --git a/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Output/.gitkeep b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Program.cs b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Program.cs index 855a0f6bf..d3e56a20a 100644 --- a/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Program.cs +++ b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Program.cs @@ -9,7 +9,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 existing document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -27,7 +27,7 @@ static void Main(string[] args) IterateTextBody(headersFooters.OddFooter); } //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/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Remove-paragraph-with-style.csproj b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Remove-paragraph-with-style.csproj index 3629f24b7..dd0d7ca71 100644 --- a/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Remove-paragraph-with-style.csproj +++ b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Remove-paragraph-with-style.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Template.docx b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Data/Template.docx similarity index 100% rename from Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Template.docx rename to Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Data/Template.docx diff --git a/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Output/.gitkeep b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Program.cs b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Program.cs index 7d0695d85..b92ac2840 100644 --- a/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Program.cs +++ b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -21,7 +21,7 @@ static void Main(string[] args) //Remove the "Style1" style from the Word document. style.Remove(); //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/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Remove-particular-style-from-document.csproj b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Remove-particular-style-from-document.csproj index a693a8edd..7be7e74dc 100644 --- a/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Remove-particular-style-from-document.csproj +++ b/Word-document/Remove-particular-style-from-document/.NET/Remove-particular-style-from-document/Remove-particular-style-from-document.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj b/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj index 863b1f312..89f5474cc 100644 --- a/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj +++ b/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/packages.config b/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/packages.config index 1b3db8e25..61fccfb65 100644 --- a/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/packages.config +++ b/Word-document/Set-page-field-for-each-section/.NET-Framework/Set-page-field-for-each-section/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Output/.gitkeep b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Program.cs b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Program.cs index 932b99798..618d16d7b 100644 --- a/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Program.cs +++ b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Program.cs @@ -44,7 +44,7 @@ static void Main(string[] args) FindAndPrintPageNumbers(document); //Saves the Word document to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { document.Save(outputStream,FormatType.Docx); } diff --git a/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj index 420b7935e..d864dba23 100644 --- a/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj +++ b/Word-document/Set-page-field-for-each-section/.NET/Set-page-field-for-each-section/Set-page-field-for-each-section.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/Silent-Printing-Word-Document.csproj b/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/Silent-Printing-Word-Document.csproj index 4f85506a3..d270d0e2a 100644 --- a/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/Silent-Printing-Word-Document.csproj +++ b/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/Silent-Printing-Word-Document.csproj @@ -69,23 +69,23 @@ prompt - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Shared.Base.26.1.42\lib\net462\Syncfusion.Shared.Base.dll + + ..\packages\Syncfusion.Shared.Base.27.1.53\lib\net462\Syncfusion.Shared.Base.dll - - ..\packages\Syncfusion.Tools.Windows.26.1.42\lib\net462\Syncfusion.Tools.Windows.dll + + ..\packages\Syncfusion.Tools.Windows.27.1.53\lib\net462\Syncfusion.Tools.Windows.dll System diff --git a/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/packages.config b/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/packages.config index 863ccced9..14f9e3ec7 100644 --- a/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/packages.config +++ b/Word-document/Silent-Printing-Word-Document/WinForms/Silent-Printing-Word-Document/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Output/.gitkeep b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Program.cs b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Program.cs index 297597b97..c449bf54e 100644 --- a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Program.cs +++ b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Program.cs @@ -9,7 +9,7 @@ class Program static void Main(string[] args) { //Load an existing Word document. - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Create the bookmark navigator instance to access the bookmark. @@ -26,7 +26,7 @@ static void Main(string[] args) using (WordDocument newDocument = documentPart.GetAsWordDocument()) { //Save the Word document to file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../" + bookmark.Name + ".docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/" + bookmark.Name + ".docx"), FileMode.Create, FileAccess.ReadWrite)) { newDocument.Save(outputFileStream, FormatType.Docx); } diff --git a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Split-by-bookmark.csproj b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Split-by-bookmark.csproj index b84d80f15..bd3bf937d 100644 --- a/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Split-by-bookmark.csproj +++ b/Word-document/Split-by-bookmark/.NET/Split-by-bookmark/Split-by-bookmark.csproj @@ -9,4 +9,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Split-by-heading/.NET/Split-by-heading/Output/.gitkeep b/Word-document/Split-by-heading/.NET/Split-by-heading/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Split-by-heading/.NET/Split-by-heading/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Split-by-heading/.NET/Split-by-heading/Program.cs b/Word-document/Split-by-heading/.NET/Split-by-heading/Program.cs index f6cfe2195..d5c5dcf34 100644 --- a/Word-document/Split-by-heading/.NET/Split-by-heading/Program.cs +++ b/Word-document/Split-by-heading/.NET/Split-by-heading/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream inputStream = new FileStream(@"../../../Data/Template.docx", FileMode.Open, FileAccess.Read)) + using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read)) { //Load the template document as stream using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -37,7 +37,7 @@ static void Main(string[] args) if (newDocument != null) { //Saves the Word document - string fileName = @"../../../Document" + (headingIndex + 1) + ".docx"; + string fileName = Path.GetFullPath(@"Output/Document") + (headingIndex + 1) + ".docx"; SaveWordDocument(newDocument, fileName); headingIndex++; } @@ -57,7 +57,7 @@ static void Main(string[] args) if (newDocument != null) { //Saves the Word document - string fileName = @"../../../Document" + (headingIndex + 1) + ".docx"; + string fileName = Path.GetFullPath(@"Output/Document") + (headingIndex + 1) + ".docx"; SaveWordDocument(newDocument, fileName); } } @@ -100,7 +100,7 @@ private static void AddEntity(WSection newSection, Entity entity) /// private static void SaveWordDocument(WordDocument newDocument, string fileName) { - using (FileStream outputStream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite)) { //Save file stream as Word document newDocument.Save(outputStream, FormatType.Docx); diff --git a/Word-document/Split-by-heading/.NET/Split-by-heading/Split-by-heading.csproj b/Word-document/Split-by-heading/.NET/Split-by-heading/Split-by-heading.csproj index 4cd1cccbc..e09f2cedc 100644 --- a/Word-document/Split-by-heading/.NET/Split-by-heading/Split-by-heading.csproj +++ b/Word-document/Split-by-heading/.NET/Split-by-heading/Split-by-heading.csproj @@ -9,5 +9,23 @@ + + + + Always + + + Always + + + + + + Always + + + Always + + diff --git a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Output/.gitkeep b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Program.cs b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Program.cs index ec45a48d3..6c99ef976 100644 --- a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Program.cs +++ b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Program.cs @@ -11,7 +11,7 @@ class Program static void Main(string[] args) { //Load an existing Word document into DocIO instance. - FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { @@ -75,7 +75,7 @@ static void Main(string[] args) using (WordDocument newDocument = wordDocumentPart.GetAsWordDocument()) { //Save the Word document to file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Placeholder_" + fileIndex + ".docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Placeholder_" + fileIndex + ".docx"), FileMode.Create, FileAccess.ReadWrite)) { newDocument.Save(outputFileStream, FormatType.Docx); } diff --git a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Split-by-placeholder-text.csproj b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Split-by-placeholder-text.csproj index b84d80f15..bd3bf937d 100644 --- a/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Split-by-placeholder-text.csproj +++ b/Word-document/Split-by-placeholder-text/.NET/Split-by-placeholder-text/Split-by-placeholder-text.csproj @@ -9,4 +9,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Split-by-section/.NET/Split-by-section/Output/.gitkeep b/Word-document/Split-by-section/.NET/Split-by-section/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Split-by-section/.NET/Split-by-section/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Split-by-section/.NET/Split-by-section/Program.cs b/Word-document/Split-by-section/.NET/Split-by-section/Program.cs index 0fbe9a4f8..d8d5d8fca 100644 --- a/Word-document/Split-by-section/.NET/Split-by-section/Program.cs +++ b/Word-document/Split-by-section/.NET/Split-by-section/Program.cs @@ -8,7 +8,7 @@ class Program { static void Main(string[] args) { - using (FileStream inputStream = new FileStream(@"../../../Data/Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { //Load the template document as stream using (WordDocument document = new WordDocument(inputStream, FormatType.Docx)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Add cloned section into new Word document newDocument.Sections.Add(section.Clone()); //Saves the Word document to MemoryStream - using (FileStream outputStream = new FileStream(@"../../../Section" + fileId + ".docx", FileMode.OpenOrCreate, FileAccess.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Section") + fileId + ".docx", FileMode.OpenOrCreate, FileAccess.ReadWrite)) { newDocument.Save(outputStream, FormatType.Docx); } diff --git a/Word-document/Split-by-section/.NET/Split-by-section/Split-by-section.csproj b/Word-document/Split-by-section/.NET/Split-by-section/Split-by-section.csproj index e348b3ddc..e6e18f18e 100644 --- a/Word-document/Split-by-section/.NET/Split-by-section/Split-by-section.csproj +++ b/Word-document/Split-by-section/.NET/Split-by-section/Split-by-section.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Template.docx b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Data/Template.docx similarity index 100% rename from Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Template.docx rename to Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Data/Template.docx diff --git a/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Output/.gitkeep b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Program.cs b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Program.cs index 3ed17ada7..755462bc7 100644 --- a/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Program.cs +++ b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -17,7 +17,7 @@ static void Main(string[] args) //Update the alternate chunks in the document. document.UpdateAlternateChunks(); //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/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Update-alternate-chunks.csproj b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Update-alternate-chunks.csproj index a3a76c1cb..387069b26 100644 --- a/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Update-alternate-chunks.csproj +++ b/Word-document/Update-alternate-chunks/.NET/Update-alternate-chunks/Update-alternate-chunks.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Update-pages-count/.NET/Update-pages-count/Template.docx b/Word-document/Update-pages-count/.NET/Update-pages-count/Data/Template.docx similarity index 100% rename from Word-document/Update-pages-count/.NET/Update-pages-count/Template.docx rename to Word-document/Update-pages-count/.NET/Update-pages-count/Data/Template.docx diff --git a/Word-document/Update-pages-count/.NET/Update-pages-count/Output/.gitkeep b/Word-document/Update-pages-count/.NET/Update-pages-count/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Update-pages-count/.NET/Update-pages-count/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Update-pages-count/.NET/Update-pages-count/Program.cs b/Word-document/Update-pages-count/.NET/Update-pages-count/Program.cs index 5d50538ef..466c3f5d5 100644 --- a/Word-document/Update-pages-count/.NET/Update-pages-count/Program.cs +++ b/Word-document/Update-pages-count/.NET/Update-pages-count/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -19,7 +19,7 @@ static void Main(string[] args) //Get the page count in the document. int pageCount = document.BuiltinDocumentProperties.PageCount; //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/Word-document/Update-pages-count/.NET/Update-pages-count/Update-pages-count.csproj b/Word-document/Update-pages-count/.NET/Update-pages-count/Update-pages-count.csproj index 161c4dfa1..604c8f187 100644 --- a/Word-document/Update-pages-count/.NET/Update-pages-count/Update-pages-count.csproj +++ b/Word-document/Update-pages-count/.NET/Update-pages-count/Update-pages-count.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-document/Update-words-count/.NET/Update-words-count/Template.docx b/Word-document/Update-words-count/.NET/Update-words-count/Data/Template.docx similarity index 100% rename from Word-document/Update-words-count/.NET/Update-words-count/Template.docx rename to Word-document/Update-words-count/.NET/Update-words-count/Data/Template.docx diff --git a/Word-document/Update-words-count/.NET/Update-words-count/Output/.gitkeep b/Word-document/Update-words-count/.NET/Update-words-count/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-document/Update-words-count/.NET/Update-words-count/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-document/Update-words-count/.NET/Update-words-count/Program.cs b/Word-document/Update-words-count/.NET/Update-words-count/Program.cs index 49ddc2b1f..773c6194a 100644 --- a/Word-document/Update-words-count/.NET/Update-words-count/Program.cs +++ b/Word-document/Update-words-count/.NET/Update-words-count/Program.cs @@ -9,7 +9,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 document from file system through constructor of WordDocument class. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) //Get the paragraph count in the document. int paragraphCount = document.BuiltinDocumentProperties.ParagraphCount; //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/Word-document/Update-words-count/.NET/Update-words-count/Update-words-count.csproj b/Word-document/Update-words-count/.NET/Update-words-count/Update-words-count.csproj index 9499f5371..a7b3fd720 100644 --- a/Word-document/Update-words-count/.NET/Update-words-count/Update-words-count.csproj +++ b/Word-document/Update-words-count/.NET/Update-words-count/Update-words-count.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Convert-Doc-to-Docx.csproj b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Convert-Doc-to-Docx.csproj index 0b8a1fa7e..14cbf21d8 100644 --- a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Convert-Doc-to-Docx.csproj +++ b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Convert-Doc-to-Docx.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Template.doc b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Data/Template.doc similarity index 100% rename from Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Template.doc rename to Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Data/Template.doc diff --git a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Output/.gitkeep b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Program.cs b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Program.cs index 0ab6a7526..fc6ca2178 100644 --- a/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/Program.cs +++ b/Word-file-formats/Convert-Doc-to-Docx/.NET/Convert-Doc-to-Docx/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.doc"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.doc"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Doc)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../DocToDocx.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/DocToDocx.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Convert-Docx-to-Doc.csproj b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Convert-Docx-to-Doc.csproj index 13ff849c6..e0c4ff5ca 100644 --- a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Convert-Docx-to-Doc.csproj +++ b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Convert-Docx-to-Doc.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Template.docx b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Data/Template.docx similarity index 100% rename from Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Template.docx rename to Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Data/Template.docx diff --git a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Output/.gitkeep b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Program.cs b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Program.cs index 855206ab0..346d4f10f 100644 --- a/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/Program.cs +++ b/Word-file-formats/Convert-Docx-to-Doc/.NET/Convert-Docx-to-Doc/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(@"../../../DocxToDoc.doc"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/DocxToDoc.doc"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Doc); diff --git a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Convert-Word-to-WordML.csproj b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Convert-Word-to-WordML.csproj index 393f043f3..f0e6ac3ca 100644 --- a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Convert-Word-to-WordML.csproj +++ b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Convert-Word-to-WordML.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Template.docx b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Data/Template.docx similarity index 100% rename from Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Template.docx rename to Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Data/Template.docx diff --git a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Output/.gitkeep b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs index 507ec7188..20bb8b49b 100644 --- a/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs +++ b/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/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(@"../../../WordToWordML.xml"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordToWordML.xml"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.WordML); diff --git a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Convert-WordML-to-Word.csproj b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Convert-WordML-to-Word.csproj index 43344e7cf..c79db4e56 100644 --- a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Convert-WordML-to-Word.csproj +++ b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Convert-WordML-to-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Template.xml b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Data/Template.xml similarity index 100% rename from Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Template.xml rename to Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Data/Template.xml diff --git a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Output/.gitkeep b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs index 6504f0417..e3c4985c1 100644 --- a/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs +++ b/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-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(@"../../../Template.xml"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.xml"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { using (WordDocument document = new WordDocument(fileStreamPath, FormatType.WordML)) { //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordMLToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/WordMLToWord.docx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Docx); diff --git a/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Create-Doc-format-Word-document.csproj b/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Create-Doc-format-Word-document.csproj index 482058ab1..4416cbe77 100644 --- a/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Create-Doc-format-Word-document.csproj +++ b/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Create-Doc-format-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Output/.gitkeep b/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Program.cs b/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Program.cs index 3ac86460d..183469e1b 100644 --- a/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Program.cs +++ b/Word-file-formats/Create-Doc-format-Word-document/.NET/Create-Doc-format-Word-document/Program.cs @@ -16,7 +16,7 @@ static void Main(string[] args) //Appends text to the last paragraph of the document. document.LastParagraph.AppendText("Hello World"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../BinaryDocument.doc"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/BinaryDocument.doc"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Doc); diff --git a/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Create-Docx-format-Word-document.csproj b/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Create-Docx-format-Word-document.csproj index ca4ef52fd..436bb314b 100644 --- a/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Create-Docx-format-Word-document.csproj +++ b/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Create-Docx-format-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Output/.gitkeep b/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Program.cs b/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Program.cs index 477d10540..21b620fc7 100644 --- a/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Program.cs +++ b/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Program.cs @@ -16,7 +16,7 @@ static void Main(string[] args) //Appends text to the last paragraph of the document. document.LastParagraph.AppendText("Hello World"); //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/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Create-Dotx-format-Word-document.csproj b/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Create-Dotx-format-Word-document.csproj index 047fcefcd..925d9656d 100644 --- a/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Create-Dotx-format-Word-document.csproj +++ b/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Create-Dotx-format-Word-document.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Output/.gitkeep b/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Program.cs b/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Program.cs index e27100356..6afcd94fe 100644 --- a/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Program.cs +++ b/Word-file-formats/Create-Dotx-format-Word-document/.NET/Create-Dotx-format-Word-document/Program.cs @@ -16,7 +16,7 @@ static void Main(string[] args) //Appends text to the last paragraph of the document. document.LastParagraph.AppendText("Hello World"); //Creates file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.dotx"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.dotx"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Dotx); diff --git a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Template.docx b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Data/Template.docx similarity index 100% rename from Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Template.docx rename to Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Data/Template.docx diff --git a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Ole-image-as-normal-image.csproj b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Ole-image-as-normal-image.csproj index e88dbf590..8170cfadd 100644 --- a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Ole-image-as-normal-image.csproj +++ b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Ole-image-as-normal-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Output/.gitkeep b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs index 18259c795..59c58e45f 100644 --- a/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs +++ b/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs @@ -12,14 +12,14 @@ static void Main(string[] args) using (WordDocument document = new WordDocument()) { //Loads or opens an existing Word document from stream. - 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)) { //Sets flag to preserve embedded Ole image as normal image while opening document. document.Settings.PreserveOleImageAsImage = true; //Loads or opens an existing Word document through Open method of WordDocument class. document.Open(fileStreamPath, FormatType.Automatic); //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/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Output/.gitkeep b/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Program.cs b/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Program.cs index 3a4a0a991..0152e40c8 100644 --- a/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Program.cs +++ b/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Program.cs @@ -2,7 +2,6 @@ using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; using System.IO; -using static System.Collections.Specialized.BitVector32; namespace Save_Word_in_old_compatibility @@ -20,7 +19,7 @@ static void Main(string[] args) //Sets the compatibility mode to Word 2007. document.Settings.CompatibilityMode = CompatibilityMode.Word2007; //Create FileStream to save the Word file. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Sample.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { //Save the Word file. document.Save(outputStream, FormatType.Docx); diff --git a/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Save-Word-in-old-compatibility.csproj b/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Save-Word-in-old-compatibility.csproj index 2155f337f..40640751f 100644 --- a/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Save-Word-in-old-compatibility.csproj +++ b/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Save-Word-in-old-compatibility.csproj @@ -12,4 +12,10 @@ + + + Always + + + diff --git a/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Template.docx b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Data/Template.docx similarity index 100% rename from Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Template.docx rename to Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Data/Template.docx diff --git a/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Output/.gitkeep b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Program.cs b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Program.cs index 88bf133c8..d17435756 100644 --- a/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Program.cs +++ b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Program.cs @@ -12,14 +12,14 @@ static void Main(string[] args) using (WordDocument document = new WordDocument()) { //Loads or opens an existing Word document from stream. - 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)) { //Loads or opens an existing Word document through Open method of WordDocument class. document.Open(fileStreamPath, FormatType.Automatic); //Enables flag to maintain compatibility with same Word version. document.SaveOptions.MaintainCompatibilityMode = true; //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/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Save-Word-with-compatibility.csproj b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Save-Word-with-compatibility.csproj index 44c204b8f..506edb5dd 100644 --- a/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Save-Word-with-compatibility.csproj +++ b/Word-file-formats/Save-Word-with-compatibility/.NET/Save-Word-with-compatibility/Save-Word-with-compatibility.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/Convert-Word-to-EPUB.csproj b/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/Convert-Word-to-EPUB.csproj index aca8df095..25464a8a0 100644 --- a/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/Convert-Word-to-EPUB.csproj +++ b/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/Convert-Word-to-EPUB.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/packages.config b/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/packages.config index ff796ce92..6be96b6c5 100644 --- a/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/packages.config +++ b/Word-to-EPUB-conversion/Convert-Word-to-EPUB/.NET-Framework/Convert-Word-to-EPUB/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/Set-title-for-EPUB.csproj b/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/Set-title-for-EPUB.csproj index 91287e489..a6a0b2a0d 100644 --- a/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/Set-title-for-EPUB.csproj +++ b/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/Set-title-for-EPUB.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/packages.config b/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/packages.config index ff796ce92..6be96b6c5 100644 --- a/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/packages.config +++ b/Word-to-EPUB-conversion/Set-title-for-EPUB/.NET-Framework/Set-title-for-EPUB/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/Convert-Word-to-image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/Convert-Word-to-image.csproj index 039848fd6..258db1ce3 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/Convert-Word-to-image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/Convert-Word-to-image.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/packages.config b/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/packages.config index 59a445ecb..622be87e6 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/packages.config +++ b/Word-to-Image-conversion/Convert-Word-to-image/.NET-Framework/Convert-Word-to-image/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Convert-Word-to-image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Convert-Word-to-image.csproj index 3396d0b7e..5dfb3a660 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Convert-Word-to-image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Convert-Word-to-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Template.docx b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Template.docx rename to Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Data/Template.docx diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Output/.gitkeep b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Program.cs b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Program.cs index 5d2154ec8..5239e8842 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Program.cs +++ b/Word-to-Image-conversion/Convert-Word-to-image/.NET/Convert-Word-to-image/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) //Resets the stream position. stream.Position = 0; //Creates the output image file stream. - using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"../../../WordToImage_" + i + ".jpeg"))) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg"))) { //Copies the converted image stream into created output stream. stream.CopyTo(fileStreamOutput); diff --git a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 37e7f91d8..ea0f6e47e 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -46,17 +46,17 @@ - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.OfficeChart.Base.dll diff --git a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Web.config b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Web.config index b0375be90..746ab9180 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Web.config +++ b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/Web.config @@ -17,7 +17,7 @@ - + @@ -70,7 +70,7 @@ - + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/packages.config b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/packages.config index c8be2b09e..003269192 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/packages.config +++ b/Word-to-Image-conversion/Convert-Word-to-image/ASP.NET-MVC/Convert-Word-Document-to-Image/packages.config @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 0883894d5..13beb42cf 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -1,14 +1,14 @@ - net6.0 + net8.0 enable enable Convert_Word_Document_to_Image - + diff --git a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/aws-beanstalk-tools-defaults.json b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/aws-beanstalk-tools-defaults.json index 4674fef80..bf5e4a45f 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/aws-beanstalk-tools-defaults.json +++ b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-Image/aws-beanstalk-tools-defaults.json @@ -2,7 +2,7 @@ { "region" : "us-east-1", "configuration" : "Debug", - "framework" : "net6.0", + "framework" : "net8.0", "self-contained" : false, "application" : "ConvertWordDocumenttoPDF2", "environment" : "ConvertWordDocumenttoPDF2-test", diff --git a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 741e54054..4e9dba23d 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -21,8 +21,8 @@ - - + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_App_Service/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_App_Service/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 1e3c3921b..527f3de47 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_App_Service/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_App_Service/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -1,15 +1,15 @@  - net6.0 + net8.0 enable enable Convert_Word_Document_to_Image - - + + diff --git a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v1/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v1/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 354848d1b..ef9d213f5 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v1/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v1/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -1,6 +1,6 @@ - net46 + net48 v1 diff --git a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 38f9192cf..c26bb252d 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 v4 Convert_Word_Document_to_Image diff --git a/Word-to-Image-conversion/Convert-Word-to-image/GCP/Google_App_Engine/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/GCP/Google_App_Engine/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index e1904b506..36fcc7f1a 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/GCP/Google_App_Engine/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/GCP/Google_App_Engine/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Convert_Word_Document_to_Image @@ -14,8 +14,8 @@ - - + + diff --git a/Word-to-Image-conversion/Convert-Word-to-image/Linux/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/Linux/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 9e3b30e63..c7099844d 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/Linux/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/Linux/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index b48434664..b4f938c48 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -36,17 +36,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.Wpf.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.Wpf.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/packages.config b/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/packages.config index 8991feba5..cbb0dc12b 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/packages.config +++ b/Word-to-Image-conversion/Convert-Word-to-image/WPF/Convert-Word-Document-to-Image/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj b/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj index 5fa43b567..1a3c5c343 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj +++ b/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/Convert-Word-Document-to-Image.csproj @@ -34,17 +34,17 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll diff --git a/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/packages.config b/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/packages.config index 6cddcdae1..34e5a94b9 100644 --- a/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/packages.config +++ b/Word-to-Image-conversion/Convert-Word-to-image/WindowForms/Convert-Word-Document-to-Image/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/Convert_all_pages_to_images.csproj b/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/Convert_all_pages_to_images.csproj index 8d4876178..6c9aaae11 100644 --- a/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/Convert_all_pages_to_images.csproj +++ b/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/Convert_all_pages_to_images.csproj @@ -33,29 +33,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/packages.config b/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/packages.config index b44c4d6b9..3e81f872c 100644 --- a/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/packages.config +++ b/Word-to-Image-conversion/Convert_all_pages_to_images/NET-Framework/Convert_all_pages_to_images/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/Custom-image-resolution.csproj b/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/Custom-image-resolution.csproj index 2b5955cc0..73b5fe715 100644 --- a/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/Custom-image-resolution.csproj +++ b/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/Custom-image-resolution.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/packages.config b/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/packages.config index 59a445ecb..622be87e6 100644 --- a/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/packages.config +++ b/Word-to-Image-conversion/Custom-image-resolution/.NET-Framework/Custom-image-resolution/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Template.docx b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Template.docx rename to Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Data/Template.docx diff --git a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj index ba2881031..9e85218fb 100644 --- a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj +++ b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj @@ -11,4 +11,13 @@ + + + + Always + + + Always + + diff --git a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Output/.gitkeep b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs index 7680fd5f7..31749896f 100644 --- a/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs +++ b/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs @@ -8,7 +8,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Adds fallback font for "Arabic" script type. @@ -35,7 +35,7 @@ static void Main(string[] args) //Reset the stream position. stream.Position = 0; //Save the stream as file. - using FileStream fileStreamOutput = File.Create(@"../../../WordToImage_" + i + ".jpeg"); + using FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg")); stream.CopyTo(fileStreamOutput); i++; } diff --git a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Template.docx b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Template.docx rename to Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Data/Template.docx diff --git a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj index 83b636115..2c7656cb4 100644 --- a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj +++ b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj @@ -11,5 +11,14 @@ + + + + Always + + + Always + + diff --git a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Output/.gitkeep b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs index 78ba15cda..b1b7a5efd 100644 --- a/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs +++ b/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs @@ -9,7 +9,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Adds fallback font for "Arabic" specific unicode range. @@ -36,7 +36,7 @@ static void Main(string[] args) //Reset the stream position. stream.Position = 0; //Save the stream as file. - using FileStream fileStreamOutput = File.Create(@"../../../WordToImage_" + i + ".jpeg"); + using FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg")); stream.CopyTo(fileStreamOutput); i++; } diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj index 8f101ca77..5798942dd 100644 --- a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj +++ b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/packages.config b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/packages.config index 59a445ecb..622be87e6 100644 --- a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/packages.config +++ b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET-Framework/First-page-of-Word-to-image/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Template.docx b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Template.docx rename to Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Data/Template.docx diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj index 56182307d..3a4346887 100644 --- a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj +++ b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/First-page-of-Word-to-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Output/.gitkeep b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Program.cs b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Program.cs index 978699cb2..5e9feca23 100644 --- a/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Program.cs +++ b/Word-to-Image-conversion/First-page-of-Word-to-image/.NET/First-page-of-Word-to-image/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, FormatType.Automatic)) @@ -22,7 +22,7 @@ static void Main(string[] args) //Resets the stream position. imageStream.Position = 0; //Creates the output image file stream. - using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"../../../WordToImage.jpeg"))) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output.jpeg"))) { //Copies the converted image stream into created output stream. imageStream.CopyTo(fileStreamOutput); diff --git a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Template.docx b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Template.docx rename to Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Data/Template.docx diff --git a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj index c0b7d017d..232b6cb43 100644 --- a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj +++ b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj @@ -10,4 +10,12 @@ + + + Always + + + Always + + diff --git a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Output/.gitkeep b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs index 12563d473..02915010b 100644 --- a/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs +++ b/Word-to-Image-conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs @@ -8,7 +8,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Initialize the default fallback fonts collection. @@ -23,7 +23,7 @@ static void Main(string[] args) //Reset the stream position. stream.Position = 0; //Save the stream as file. - using FileStream fileStreamOutput = File.Create(@"../../../WordToImage_" + i + ".jpeg"); + using FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg")); stream.CopyTo(fileStreamOutput); i++; } diff --git a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Template.docx b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Template.docx rename to Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Data/Template.docx diff --git a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj index 590ddcc38..6d46e4a0b 100644 --- a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj +++ b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Output/.gitkeep b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs index 2ddf5fca2..d5fc104e6 100644 --- a/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs +++ b/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs @@ -8,7 +8,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Initialize the default fallback fonts collection. @@ -33,7 +33,7 @@ static void Main(string[] args) //Reset the stream position. stream.Position = 0; //Save the stream as file. - using FileStream fileStreamOutput = File.Create(@"../../../WordToImage_" + i + ".jpeg"); + using FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg")); stream.CopyTo(fileStreamOutput); i++; } diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj index 74b9865d8..bff01dfca 100644 --- a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj +++ b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/packages.config b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/packages.config index 59a445ecb..622be87e6 100644 --- a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/packages.config +++ b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET-Framework/Specific-range-of-pages-Word-to-image/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Template.docx b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Data/Template.docx similarity index 100% rename from Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Template.docx rename to Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Data/Template.docx diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Output/.gitkeep b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Program.cs b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Program.cs index 6d94a8aa2..de2362531 100644 --- a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Program.cs +++ b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) //Resets the stream position. stream.Position = 0; //Creates the output image file stream. - using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"../../../WordToImage_" + i + ".jpeg"))) + using (FileStream fileStreamOutput = File.Create(Path.GetFullPath(@"Output/Output_" + i + ".jpeg"))) { //Copies the converted image stream into created output stream. stream.CopyTo(fileStreamOutput); diff --git a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj index 4933d5e8b..8ba3e8056 100644 --- a/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj +++ b/Word-to-Image-conversion/Specific-range-of-pages-Word-to-image/.NET/Specific-range-of-pages-Word-to-image/Specific-range-of-pages-Word-to-image.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Block-quote-in-Markdown.csproj b/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Block-quote-in-Markdown.csproj index 8a947a75c..ebab76908 100644 --- a/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Block-quote-in-Markdown.csproj +++ b/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Block-quote-in-Markdown.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Output/.gitkeep b/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Program.cs b/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Program.cs index 94e1dfed5..9d402e69f 100644 --- a/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Program.cs +++ b/Word-to-Markdown-conversion/Block-quote-in-Markdown/.NET/Block-quote-in-Markdown/Program.cs @@ -22,7 +22,7 @@ static void Main(string[] args) //Append text. IWTextRange textRange = paragraph.AppendText("Hello World"); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToMd.md"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.md"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Markdown file to the file stream. document.Save(outputFileStream, FormatType.Markdown); diff --git a/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Code-block-in-Markdown.csproj b/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Code-block-in-Markdown.csproj index de276fb50..ec547cf41 100644 --- a/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Code-block-in-Markdown.csproj +++ b/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Code-block-in-Markdown.csproj @@ -10,4 +10,10 @@ + + + Always + + + diff --git a/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Output/.gitkeep b/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Program.cs b/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Program.cs index 3427b3f82..2d0532d8a 100644 --- a/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Program.cs +++ b/Word-to-Markdown-conversion/Code-block-in-Markdown/.NET/Code-block-in-Markdown/Program.cs @@ -36,7 +36,7 @@ static void Main(string[] args) //Append text. textRange = paragraph.AppendText("class Hello\n\t{\n\t\tStatic void Main()\n\t\t{\n\t\t\tConsole.WriteLine(\"Indented Code\")\n\t\t}\n\t}"); //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToMd.md"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.md"), FileMode.Create, FileAccess.ReadWrite)) { //Save the Markdown file to the file stream. document.Save(outputFileStream, FormatType.Markdown); diff --git a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Convert-Word-to-Markdown.csproj b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Convert-Word-to-Markdown.csproj index b03982506..7fc953893 100644 --- a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Convert-Word-to-Markdown.csproj +++ b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Convert-Word-to-Markdown.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Input.docx b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Data/Input.docx similarity index 100% rename from Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Input.docx rename to Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Data/Input.docx diff --git a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Output/.gitkeep b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Program.cs b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Program.cs index 1e811b244..f93d37918 100644 --- a/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Program.cs +++ b/Word-to-Markdown-conversion/Convert-Word-to-Markdown/.NET/Convert-Word-to-Markdown/Program.cs @@ -9,13 +9,13 @@ class Program static void Main(string[] args) { //Open a file as a stream. - 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)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToMd.md"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.md"), FileMode.Create, FileAccess.ReadWrite)) { //Save a Markdown file to the file stream. document.Save(outputFileStream, FormatType.Markdown); diff --git a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Customize-image-path.csproj b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Customize-image-path.csproj index 34e9d1265..f15b4c30d 100644 --- a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Customize-image-path.csproj +++ b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Customize-image-path.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Input.docx b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Data/Input.docx similarity index 100% rename from Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Input.docx rename to Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Data/Input.docx diff --git a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Output/.gitkeep b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Program.cs b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Program.cs index 7b67acccf..dd3e4d451 100644 --- a/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Program.cs +++ b/Word-to-Markdown-conversion/Customize-image-path/.NET/Customize-image-path/Program.cs @@ -10,13 +10,13 @@ class Program static void Main(string[] args) { //Open a file as a stream. - 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)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToMd.md"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.md"), FileMode.Create, FileAccess.ReadWrite)) { //Hook the event to customize the image. document.SaveOptions.ImageNodeVisited += SaveImage; @@ -29,7 +29,7 @@ static void Main(string[] args) //The following code examples show the event handler to customize the image path and save the image in an external folder. static void SaveImage(object sender, ImageNodeVisitedEventArgs args) { - string imagepath = Path.GetFullPath(@"../../../Image1.png"); + string imagepath = Path.GetFullPath(@"Output/Output.png"); //Save the image stream as a file. using (FileStream fileStreamOutput = File.Create(imagepath)) args.ImageStream.CopyTo(fileStreamOutput); diff --git a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Input.docx b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Data/Input.docx similarity index 100% rename from Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Input.docx rename to Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Data/Input.docx diff --git a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Export-images-to-folder.csproj b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Export-images-to-folder.csproj index 84269e509..22ae5a000 100644 --- a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Export-images-to-folder.csproj +++ b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Export-images-to-folder.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Output/.gitkeep b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Program.cs b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Program.cs index 608be75aa..6e558b39c 100644 --- a/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Program.cs +++ b/Word-to-Markdown-conversion/Export-images-to-folder/.NET/Export-images-to-folder/Program.cs @@ -11,16 +11,16 @@ class Program static void Main(string[] args) { //Open a file as a stream. - 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)) { //Load the file stream into a Word document. using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { //Create a file stream. - using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../WordToMd.md"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.md"), FileMode.Create, FileAccess.ReadWrite)) { //Set images folder to export images. - document.SaveOptions.MarkdownExportImagesFolder = Path.GetFullPath(@"../../../WordToMdConversion"); + document.SaveOptions.MarkdownExportImagesFolder = Path.GetFullPath(@"Output/"); //Save a Markdown file to the file stream. document.Save(outputFileStream, FormatType.Markdown); } diff --git a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Convert-Word-to-ODT.csproj b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Convert-Word-to-ODT.csproj index 2b29ce4b8..e41f7c102 100644 --- a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Convert-Word-to-ODT.csproj +++ b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Convert-Word-to-ODT.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Template.docx b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Data/Template.docx similarity index 100% rename from Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Template.docx rename to Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Data/Template.docx diff --git a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Output/.gitkeep b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Program.cs b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Program.cs index 79c7f6407..b893df778 100644 --- a/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/Program.cs +++ b/Word-to-ODT-conversion/Convert-Word-to-ODT/.NET/Convert-Word-to-ODT/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(@"../../../WordToODT.odt"), FileMode.Create, FileAccess.ReadWrite)) + using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.odt"), FileMode.Create, FileAccess.ReadWrite)) { //Saves the Word document to file stream. document.Save(outputFileStream, FormatType.Odt); diff --git a/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/Adjust-image-quality.csproj b/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/Adjust-image-quality.csproj index a3da8b014..0d5b8af00 100644 --- a/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/Adjust-image-quality.csproj +++ b/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/Adjust-image-quality.csproj @@ -34,29 +34,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/packages.config b/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/packages.config index b44c4d6b9..3e81f872c 100644 --- a/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/packages.config +++ b/Word-to-PDF-Conversion/Adjust-image-quality/.NET-Framework/Adjust-image-quality/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Change-track-changes-color.csproj b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Change-track-changes-color.csproj index 1460b584b..b4cfb6077 100644 --- a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Change-track-changes-color.csproj +++ b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Change-track-changes-color.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Template.docx b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Template.docx rename to Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Output/.gitkeep b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Program.cs b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Program.cs index e41bf132a..7a9a872e1 100644 --- a/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Program.cs +++ b/Word-to-PDF-Conversion/Change-track-changes-color/.NET/Change-track-changes-color/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -31,7 +31,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/Convert-5-pages-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/Convert-5-pages-in-Word-to-PDF.csproj index 092cf1b1b..bac59be02 100644 --- a/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/Convert-5-pages-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/Convert-5-pages-in-Word-to-PDF.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/packages.config b/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/packages.config index 1b3db8e25..61fccfb65 100644 --- a/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Convert-5-pages-in-Word-to-PDF/.NET-Framework/Convert-5-pages-in-Word-to-PDF/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Convert-Markdown-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Convert-Markdown-to-PDF.csproj index cb8b5b0fe..a44cdbd6a 100644 --- a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Convert-Markdown-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Convert-Markdown-to-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/InputMarkdown.md b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Data/InputMarkdown.md similarity index 100% rename from Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/InputMarkdown.md rename to Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Data/InputMarkdown.md diff --git a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Program.cs b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Program.cs index 64286d0aa..10176e274 100644 --- a/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Convert-Markdown-to-PDF/.NET/Convert-Markdown-to-PDF/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../InputMarkdown.md"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/InputMarkdown.md"), FileMode.Open)) { //Loads an existing Markdown. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Markdown)) @@ -22,7 +22,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../MdToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj index 712d18826..ad870bd10 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj @@ -34,29 +34,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/packages.config b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/packages.config index 8f36663b5..5a10972fc 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET-Framework/Convert-Word-document-to-PDF/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj index d9ac1dcdd..c7dd1f141 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs index d3a7ac08e..873f90747 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/.NET/Convert-Word-document-to-PDF/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index 0df960760..b9ca021a3 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -46,23 +46,23 @@ - - ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.DocToPdfConverter.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.AspNet.Mvc5.26.1.42\lib\net45\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.AspNet.Mvc5.27.1.53\lib\net45\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Web.config b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Web.config index b0375be90..746ab9180 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Web.config +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/Web.config @@ -17,7 +17,7 @@ - + @@ -70,7 +70,7 @@ - + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/packages.config b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/packages.config index b4c86a1d6..a5020e34a 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/ASP.NET-MVC/Convert-Word-Document-to-PDF/packages.config @@ -13,8 +13,8 @@ - - - + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index 763933c09..0f3db5662 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -1,14 +1,14 @@ - net6.0 + net8.0 enable enable Convert_Word_Document_to_PDF - + diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/aws-beanstalk-tools-defaults.json b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/aws-beanstalk-tools-defaults.json index 318e3862b..76f375c6e 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/aws-beanstalk-tools-defaults.json +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/AWS_Elastic_Beanstalk/Convert-Word-Document-to-PDF/aws-beanstalk-tools-defaults.json @@ -2,7 +2,7 @@ { "region" : "us-east-1", "configuration" : "Debug", - "framework" : "net6.0", + "framework" : "net8.0", "self-contained" : false, "application" : "ConvertWordDocumenttoPDF2", "environment" : "ConvertWordDocumenttoPDF2-test", diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/MyLamdaProject.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/MyLamdaProject.csproj index 54f2072b1..f7159baee 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/MyLamdaProject.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/MyLamdaProject.csproj @@ -1,6 +1,6 @@ - netcoreapp2.1 + net6.0 true Lambda @@ -27,7 +27,8 @@ - - + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/Properties/launchSettings.json b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/Properties/launchSettings.json index 43c97d897..791755978 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/Properties/launchSettings.json +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/Properties/launchSettings.json @@ -3,7 +3,7 @@ "Mock Lambda Test Tool": { "commandName": "Executable", "commandLineArgs": "--port 5050", - "workingDirectory": ".\\bin\\$(Configuration)\\netcoreapp2.1", + "workingDirectory": ".\\bin\\$(Configuration)\\net6.0", "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-2.1.exe" } } diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/aws-lambda-tools-defaults.json b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/aws-lambda-tools-defaults.json index 2c70c3135..8a87fb331 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/aws-lambda-tools-defaults.json +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/aws-lambda-tools-defaults.json @@ -9,8 +9,8 @@ "profile" : "AWSLAMBDA", "region" : "us-east-2", "configuration" : "Release", - "framework" : "netcoreapp2.1", - "function-runtime" : "dotnetcore2.1", + "framework" : "net6.0", + "function-runtime" : "dotnet6", "function-memory-size" : 256, "function-timeout" : 30, "function-handler" : "MyLamdaProject::MyLamdaProject.Function::FunctionHandler", diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_App_Service/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_App_Service/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index cf48b7718..3b3a8870f 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_App_Service/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_App_Service/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -1,15 +1,15 @@ - net6.0 + net8.0 enable enable Convert_Word_Document_to_PDF - - + + diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index 9b0fbcbec..91546d59b 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Azure/Azure_Functions/Azure_Functions_v4/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 v4 Convert_Word_Document_to_PDF diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/GCP/Google-App-Engine/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/GCP/Google-App-Engine/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj index 23442f44a..1c1fd5dc6 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/GCP/Google-App-Engine/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/GCP/Google-App-Engine/Convert-Word-document-to-PDF/Convert-Word-document-to-PDF.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable Convert_Word_document_to_PDF @@ -32,8 +32,8 @@ - - + + diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Linux/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Linux/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index a0d6f29c6..ec362a569 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Linux/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Linux/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index 147f227a5..359f48032 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -36,23 +36,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.Wpf.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.Wpf.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.Wpf.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.Wpf.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.Wpf.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.Wpf.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/packages.config b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/packages.config index 54132a6da..486d2f2d9 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WPF/Convert-Word-Document-to-PDF/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj index 47e85e25a..a44ea9252 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/Convert-Word-Document-to-PDF.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/packages.config b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/packages.config index 2728f0c7e..d59a1ea3c 100644 --- a/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Convert-Word-document-to-PDF/WindowForms/Convert-Word-Document-to-PDF/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Convert-Word-into-accessible-PDF.csproj b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Convert-Word-into-accessible-PDF.csproj index 6c8c4c525..304d74fc4 100644 --- a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Convert-Word-into-accessible-PDF.csproj +++ b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Convert-Word-into-accessible-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Template.docx b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Template.docx rename to Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Program.cs b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Program.cs index ed2484d3e..203268b4d 100644 --- a/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Convert-Word-into-accessible-PDF/.NET/Convert-Word-into-accessible-PDF/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Create-fillable-PDF-from-Word.csproj b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Create-fillable-PDF-from-Word.csproj index 32ede304a..07ab41b0c 100644 --- a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Create-fillable-PDF-from-Word.csproj +++ b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Create-fillable-PDF-from-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Template.docx b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Template.docx rename to Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Output/.gitkeep b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Program.cs b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Program.cs index 21c4f5664..1e5d09ad0 100644 --- a/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Program.cs +++ b/Word-to-PDF-Conversion/Create-fillable-PDF-from-Word/.NET/Create-fillable-PDF-from-Word/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/Dictionary-Event-Handler-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/Dictionary-Event-Handler-in-Word-to-PDF.csproj index 125c2daf7..f86e239c9 100644 --- a/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/Dictionary-Event-Handler-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/Dictionary-Event-Handler-in-Word-to-PDF.csproj @@ -34,29 +34,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/packages.config b/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/packages.config index b44c4d6b9..3e81f872c 100644 --- a/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/packages.config +++ b/Word-to-PDF-Conversion/Dictionary-Event-Handler-in-Word-to-PDF/.NET-Framework/Dictionary-Event-Handler-in-Word-to-PDF/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Data/Template.docx b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Data/Template.docx new file mode 100644 index 000000000..32b735484 Binary files /dev/null and b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Data/Template.docx differ diff --git a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Disable-alternate-chunks.csproj b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Disable-alternate-chunks.csproj index ea9c94834..41f65f666 100644 --- a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Disable-alternate-chunks.csproj +++ b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Disable-alternate-chunks.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Output/.gitkeep b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Program.cs b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Program.cs index 48ce72b98..7e4f22ea5 100644 --- a/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Program.cs +++ b/Word-to-PDF-Conversion/Disable-alternate-chunks/.NET/Disable-alternate-chunks/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Data/Template.docx b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Data/Template.docx new file mode 100644 index 000000000..f0f045357 Binary files /dev/null and b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Data/Template.docx differ diff --git a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Embed-complete-fonts.csproj b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Embed-complete-fonts.csproj index 8ee4b7a99..249dca52d 100644 --- a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Embed-complete-fonts.csproj +++ b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Embed-complete-fonts.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Output/.gitkeep b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Program.cs b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Program.cs index a639d430f..772ceac0d 100644 --- a/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Program.cs +++ b/Word-to-PDF-Conversion/Embed-complete-fonts/.NET/Embed-complete-fonts/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Data/Template.docx b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Data/Template.docx new file mode 100644 index 000000000..d50f2d957 Binary files /dev/null and b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Data/Template.docx differ diff --git a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Embed-subset-fonts.csproj b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Embed-subset-fonts.csproj index 300245af9..d48bba3c9 100644 --- a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Embed-subset-fonts.csproj +++ b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Embed-subset-fonts.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Output/.gitkeep b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Program.cs b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Program.cs index cca66a6d5..c0e584ee3 100644 --- a/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Program.cs +++ b/Word-to-PDF-Conversion/Embed-subset-fonts/.NET/Embed-subset-fonts/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -24,7 +24,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/Enable-fast-rendering.csproj b/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/Enable-fast-rendering.csproj index bba197297..0019a1fbd 100644 --- a/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/Enable-fast-rendering.csproj +++ b/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/Enable-fast-rendering.csproj @@ -34,29 +34,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/packages.config b/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/packages.config index b44c4d6b9..3e81f872c 100644 --- a/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/packages.config +++ b/Word-to-PDF-Conversion/Enable-fast-rendering/.NET-Framework/Enable-fast-rendering/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Data/Template.docx b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Data/Template.docx new file mode 100644 index 000000000..5279413bb Binary files /dev/null and b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Data/Template.docx differ diff --git a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Export-Word-bookmarks-into-PDF.csproj b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Export-Word-bookmarks-into-PDF.csproj index 63f881fc1..dae594f12 100644 --- a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Export-Word-bookmarks-into-PDF.csproj +++ b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Export-Word-bookmarks-into-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Program.cs b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Program.cs index cd86f3eab..b7b393e6d 100644 --- a/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Export-Word-bookmarks-into-PDF/.NET/Export-Word-bookmarks-into-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Data/Template.docx b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Data/Template.docx new file mode 100644 index 000000000..2a36ac9d0 Binary files /dev/null and b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Data/Template.docx differ diff --git a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Export-Word-headings-into-PDF.csproj b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Export-Word-headings-into-PDF.csproj index 8e727bb5a..f7ed560e2 100644 --- a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Export-Word-headings-into-PDF.csproj +++ b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Export-Word-headings-into-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Program.cs b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Program.cs index dd0c19eea..6eea81295 100644 --- a/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Export-Word-headings-into-PDF/.NET/Export-Word-headings-into-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Template.docx b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Template.docx rename to Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj index ba2881031..9e85218fb 100644 --- a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj +++ b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Fallback-fonts-based-on-scripttype.csproj @@ -11,4 +11,13 @@ + + + + Always + + + Always + + diff --git a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Output/.gitkeep b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs index dd44a3962..76c072f48 100644 --- a/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs +++ b/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype/.NET/Fallback-fonts-based-on-scripttype/Program.cs @@ -9,7 +9,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Adds fallback font for "Arabic" script type. @@ -31,7 +31,7 @@ static void Main(string[] args) //Converts Word document into PDF document. using PdfDocument pdfDocument = render.ConvertToPDF(wordDocument); //Saves the PDF file to file system. - using FileStream outputStream = new FileStream(@"../../../WordToPDF.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.OpenOrCreate, FileAccess.ReadWrite); pdfDocument.Save(outputStream); } } diff --git a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Template.docx b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Template.docx rename to Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj index 3971d12cc..b08ec90ec 100644 --- a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj +++ b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Fallback-fonts-for-Unicode-range.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Output/.gitkeep b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs index b05680716..eacac8085 100644 --- a/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs +++ b/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range/.NET/Fallback-fonts-for-Unicode-range/Program.cs @@ -10,7 +10,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Adds fallback font for "Arabic" specific unicode range. @@ -32,7 +32,7 @@ static void Main(string[] args) //Converts Word document into PDF document. using PdfDocument pdfDocument = render.ConvertToPDF(wordDocument); //Saves the PDF file to file system. - using FileStream outputStream = new FileStream(@"../../../WordToPDF.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.OpenOrCreate, FileAccess.ReadWrite); pdfDocument.Save(outputStream); } } diff --git a/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/Get-missing-fonts-for-PDF-conversion.csproj b/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/Get-missing-fonts-for-PDF-conversion.csproj index 5c673951d..c3803c4c9 100644 --- a/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/Get-missing-fonts-for-PDF-conversion.csproj +++ b/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/Get-missing-fonts-for-PDF-conversion.csproj @@ -33,29 +33,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WinForms.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/packages.config b/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/packages.config index 8f36663b5..5a10972fc 100644 --- a/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/packages.config +++ b/Word-to-PDF-Conversion/Get-missing-fonts-for-pdf-conversion/WindowsForms/Get-missing-fonts-for-PDF-conversion/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Hyphenation-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Hyphenation-in-Word-to-PDF.csproj index c347fc0de..ebc109750 100644 --- a/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Hyphenation-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Hyphenation-in-Word-to-PDF.csproj @@ -10,4 +10,16 @@ + + + Always + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Program.cs b/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Program.cs index c654f6f93..408515c0d 100644 --- a/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Hyphenation-in-Word-to-PDF/.NET/Hyphenation-in-Word-to-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -18,7 +18,7 @@ static void Main(string[] args) using (DocIORenderer renderer = new DocIORenderer()) { //Reads the language dictionary for hyphenation. - using (FileStream dictionaryStream = new FileStream(Path.GetFullPath(@"../../../Data/hyph_de_CH.dic"), FileMode.Open)) + using (FileStream dictionaryStream = new FileStream(Path.GetFullPath(@"Data/hyph_de_CH.dic"), FileMode.Open)) { //Adds the hyphenation dictionary of the specified language. Hyphenator.Dictionaries.Add("de-CH", dictionaryStream); @@ -26,7 +26,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Template.docx b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Template.docx rename to Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj index c0b7d017d..232b6cb43 100644 --- a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj +++ b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Initialize-default-fallback-fonts.csproj @@ -10,4 +10,12 @@ + + + Always + + + Always + + diff --git a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Output/.gitkeep b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs index 56b96f478..f3656e529 100644 --- a/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs +++ b/Word-to-PDF-Conversion/Initialize-default-fallback-fonts/.NET/Initialize-default-fallback-fonts/Program.cs @@ -9,7 +9,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Initialize the default fallback fonts collection. @@ -19,7 +19,7 @@ static void Main(string[] args) //Converts Word document into PDF document. using PdfDocument pdfDocument = render.ConvertToPDF(wordDocument); //Saves the PDF file to file system. - using FileStream outputStream = new FileStream(@"../../../WordToPDF.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.OpenOrCreate, FileAccess.ReadWrite); pdfDocument.Save(outputStream); } } diff --git a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Template.docx b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Template.docx rename to Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj index 590ddcc38..6d46e4a0b 100644 --- a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj +++ b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Modify-the-exiting-fallback-fonts.csproj @@ -12,4 +12,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Output/.gitkeep b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs index 7a732643d..77e711bf6 100644 --- a/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs +++ b/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts/.NET/Modify-the-exiting-fallback-fonts/Program.cs @@ -10,7 +10,7 @@ internal class Program static void Main(string[] args) { //Opens the file as stream. - using FileStream inputStream = new FileStream(@"../../../Template.docx", FileMode.Open, FileAccess.Read); + using FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read); //Loads an existing Word document file stream. using WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx); //Initialize the default fallback fonts collection. @@ -30,7 +30,7 @@ static void Main(string[] args) //Converts Word document into PDF document. using PdfDocument pdfDocument = render.ConvertToPDF(wordDocument); //Saves the PDF file to file system. - using FileStream outputStream = new FileStream(@"../../../WordToPDF.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite); + using FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.OpenOrCreate, FileAccess.ReadWrite); pdfDocument.Save(outputStream); } } diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Equation.docx b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Equation.docx similarity index 100% rename from Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Equation.docx rename to Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Equation.docx diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Sample.docx b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Sample.docx similarity index 100% rename from Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Sample.docx rename to Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Sample.docx diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Table of Contents.docx b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Table of Contents.docx similarity index 100% rename from Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/InputDocuments/Table of Contents.docx rename to Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Data/Table of Contents.docx diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Mutiple-Word-files-to-PDFs-and-zip.csproj b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Mutiple-Word-files-to-PDFs-and-zip.csproj index 66881d256..f5ed26764 100644 --- a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Mutiple-Word-files-to-PDFs-and-zip.csproj +++ b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Mutiple-Word-files-to-PDFs-and-zip.csproj @@ -12,4 +12,19 @@ + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Output/.gitkeep b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Program.cs b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Program.cs index 172947fe0..d142e4e87 100644 --- a/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Program.cs +++ b/Word-to-PDF-Conversion/Mutiple-Word-files-to-PDFs-and-zip/.NET/Mutiple-Word-files-to-PDFs-and-zip/Program.cs @@ -9,7 +9,7 @@ zipArchive.DefaultCompressionLevel = Syncfusion.Compression.CompressionLevel.Best; //Get the input Word documents from the folder. -string folderName = @"../../../InputDocuments"; +string folderName = @"Data"; string[] inputFiles = Directory.GetFiles(folderName); DirectoryInfo directoryInfo = new DirectoryInfo(folderName); List files = new List(); @@ -36,7 +36,7 @@ } //Zip file name and location. -FileStream zipStream = new FileStream(@"../../../OutputPDFs.zip", FileMode.OpenOrCreate, FileAccess.ReadWrite); +FileStream zipStream = new FileStream(@"Output/Output.zip", FileMode.OpenOrCreate, FileAccess.ReadWrite); zipArchive.Save(zipStream, true); zipArchive.Close(); diff --git a/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/Ole-Equation-as-bitmap.csproj b/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/Ole-Equation-as-bitmap.csproj index 28723ca0c..80d165eb4 100644 --- a/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/Ole-Equation-as-bitmap.csproj +++ b/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/Ole-Equation-as-bitmap.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/packages.config b/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/packages.config index 1b3db8e25..61fccfb65 100644 --- a/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/packages.config +++ b/Word-to-PDF-Conversion/Ole-Equation-as-bitmap/.NET-Framework/Ole-Equation-as-bitmap/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Template.docx b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Template.docx rename to Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Optimize-identical-images.csproj b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Optimize-identical-images.csproj index 82bb14940..5edf0821d 100644 --- a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Optimize-identical-images.csproj +++ b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Optimize-identical-images.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Output/.gitkeep b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Program.cs b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Program.cs index 5486298f3..0fb03bd22 100644 --- a/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Program.cs +++ b/Word-to-PDF-Conversion/Optimize-identical-images/.NET/Optimize-identical-images/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Template.docx b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Template.docx rename to Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Data/Template.docx diff --git a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Output/.gitkeep b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/PDF-conformance-level.csproj b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/PDF-conformance-level.csproj index 95c606c0e..c821c36fc 100644 --- a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/PDF-conformance-level.csproj +++ b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/PDF-conformance-level.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Program.cs b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Program.cs index 1a29ccc3d..29c0d94bc 100644 --- a/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Program.cs +++ b/Word-to-PDF-Conversion/PDF-conformance-level/.NET/PDF-conformance-level/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Template.docx b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Template.docx rename to Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Preserve-comments-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Preserve-comments-in-Word-to-PDF.csproj index 0813fe0ad..65337f70c 100644 --- a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Preserve-comments-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Preserve-comments-in-Word-to-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Program.cs b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Program.cs index d66cda340..fce496df7 100644 --- a/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Preserve-comments-in-Word-to-PDF/.NET/Preserve-comments-in-Word-to-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Template.docx b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Template.docx rename to Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Preserve-complex-script-text-in-PDF.csproj b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Preserve-complex-script-text-in-PDF.csproj index f5d86e2f0..2029ee87d 100644 --- a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Preserve-complex-script-text-in-PDF.csproj +++ b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Preserve-complex-script-text-in-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Program.cs b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Program.cs index c9ee416a7..024bdca06 100644 --- a/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Preserve-complex-script-text-in-PDF/.NET/Preserve-complex-script-text-in-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/Recreate-nested-metafile.csproj b/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/Recreate-nested-metafile.csproj index 47fd42d69..0945e85c8 100644 --- a/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/Recreate-nested-metafile.csproj +++ b/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/Recreate-nested-metafile.csproj @@ -34,29 +34,29 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.26.1.42\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll + + ..\packages\Syncfusion.OfficeChartToImageConverter.WPF.27.1.53\lib\net462\Syncfusion.OfficeChartToImageConverter.Wpf.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll - - ..\packages\Syncfusion.SfChart.WPF.26.1.42\lib\net462\Syncfusion.SfChart.WPF.dll + + ..\packages\Syncfusion.SfChart.WPF.27.1.53\lib\net462\Syncfusion.SfChart.WPF.dll diff --git a/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/packages.config b/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/packages.config index b44c4d6b9..3e81f872c 100644 --- a/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/packages.config +++ b/Word-to-PDF-Conversion/Recreate-nested-metafile/.NET-Framework/Recreate-nested-metafile/packages.config @@ -1,11 +1,11 @@  - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/Reduce-pdf-size.csproj b/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/Reduce-pdf-size.csproj index a6ceafbad..b1d309843 100644 --- a/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/Reduce-pdf-size.csproj +++ b/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/Reduce-pdf-size.csproj @@ -34,23 +34,23 @@ 4 - - ..\packages\Syncfusion.Compression.Base.26.1.42\lib\net462\Syncfusion.Compression.Base.dll + + ..\packages\Syncfusion.Compression.Base.27.1.53\lib\net462\Syncfusion.Compression.Base.dll - - ..\packages\Syncfusion.DocIO.WinForms.26.1.42\lib\net462\Syncfusion.DocIO.Base.dll + + ..\packages\Syncfusion.DocIO.WinForms.27.1.53\lib\net462\Syncfusion.DocIO.Base.dll - - ..\packages\Syncfusion.DocToPDFConverter.WinForms.26.1.42\lib\net462\Syncfusion.DocToPdfConverter.Base.dll + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.27.1.53\lib\net462\Syncfusion.DocToPdfConverter.Base.dll - - ..\packages\Syncfusion.Licensing.26.1.42\lib\net462\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.Licensing.27.1.53\lib\net462\Syncfusion.Licensing.dll - - ..\packages\Syncfusion.OfficeChart.Base.26.1.42\lib\net462\Syncfusion.OfficeChart.Base.dll + + ..\packages\Syncfusion.OfficeChart.Base.27.1.53\lib\net462\Syncfusion.OfficeChart.Base.dll - - ..\packages\Syncfusion.Pdf.WinForms.26.1.42\lib\net462\Syncfusion.Pdf.Base.dll + + ..\packages\Syncfusion.Pdf.WinForms.27.1.53\lib\net462\Syncfusion.Pdf.Base.dll diff --git a/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/packages.config b/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/packages.config index 1b3db8e25..61fccfb65 100644 --- a/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/packages.config +++ b/Word-to-PDF-Conversion/Reduce-pdf-size/.NET Framework/Reduce-pdf-size/packages.config @@ -1,9 +1,9 @@  - - - - - - + + + + + + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Output/.gitkeep b/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Program.cs b/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Program.cs index f0caddef1..80efc64c1 100644 --- a/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Program.cs +++ b/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Program.cs @@ -14,7 +14,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -41,7 +41,7 @@ static void Main(string[] args) pdfLoadedDocument.Bookmarks[i].Title = "PdfBookMark" + (i+1); } //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfLoadedDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Rename-PDF-Bookmarks-From-Word.csproj b/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Rename-PDF-Bookmarks-From-Word.csproj index 565caf9c4..7e9336f45 100644 --- a/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Rename-PDF-Bookmarks-From-Word.csproj +++ b/Word-to-PDF-Conversion/Rename-PDF-Bookmarks-From-Word/.NET/Rename-PDF-Bookmarks-From-Word/Rename-PDF-Bookmarks-From-Word.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/SyncfusionConvertWordToPdfIssueDoc.docx b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Data/SyncfusionConvertWordToPdfIssueDoc.docx similarity index 100% rename from Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/SyncfusionConvertWordToPdfIssueDoc.docx rename to Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Data/SyncfusionConvertWordToPdfIssueDoc.docx diff --git a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Program.cs b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Program.cs index 253d1a23a..f4ae9e013 100644 --- a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Program.cs @@ -16,7 +16,7 @@ class Program static void Main(string[] args) { //Open the file as Stream. - using (FileStream docStream = new FileStream(@"../../../SyncfusionConvertWordToPdfIssueDoc.docx", FileMode.Open, FileAccess.Read)) + using (FileStream docStream = new FileStream(@"Data/SyncfusionConvertWordToPdfIssueDoc.docx", FileMode.Open, FileAccess.Read)) { //Load file stream into Word document. using (WordDocument wordDocument = new WordDocument(docStream, FormatType.Automatic)) @@ -28,14 +28,14 @@ static void Main(string[] args) using (PdfDocument pdfDocument = render.ConvertToPDF(wordDocument)) { //Save the PDF file. - using (FileStream outputFile = new FileStream("Output.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite)) + using (FileStream outputFile = new FileStream("Output/Output.pdf", FileMode.OpenOrCreate, FileAccess.ReadWrite)) pdfDocument.Save(outputFile); } } } System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("Output.pdf") + process.StartInfo = new System.Diagnostics.ProcessStartInfo(Path.Combine(Directory.GetCurrentDirectory(), "Output/Output.pdf")) { UseShellExecute = true }; @@ -60,12 +60,12 @@ private static void ConvertEMFToPNG(WordDocument wordDocument) { float height = picture.Height; float width = picture.Width; - FileStream imgFile = new FileStream("Output.png", FileMode.OpenOrCreate, FileAccess.ReadWrite); + FileStream imgFile = new FileStream("Output/Output.png", FileMode.OpenOrCreate, FileAccess.ReadWrite); image.Save(imgFile, ImageFormat.Png); imgFile.Dispose(); image.Dispose(); - FileStream imageStream = new FileStream(@"Output.png", FileMode.Open, FileAccess.ReadWrite); + FileStream imageStream = new FileStream(@"Output/Output.png", FileMode.Open, FileAccess.ReadWrite); picture.LoadImage(imageStream); picture.LockAspectRatio = false; picture.Height = height; diff --git a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Replace-EMF-with-PNG-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Replace-EMF-with-PNG-in-Word-to-PDF.csproj index ec540c768..ee33aa57d 100644 --- a/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Replace-EMF-with-PNG-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Replace-EMF-with-PNG-in-Word-to-PDF/.NET/Replace-EMF-with-PNG-in-Word-to-PDF/Replace-EMF-with-PNG-in-Word-to-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG.sln b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG.sln new file mode 100644 index 000000000..fb956f8c1 --- /dev/null +++ b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34322.80 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Replace-Excel-embedded-image-to-PNG", "Replace-Excel-embedded-image-to-PNG\Replace-Excel-embedded-image-to-PNG.csproj", "{269AC7DF-6678-47E4-BC60-BD9811FAE8C5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {269AC7DF-6678-47E4-BC60-BD9811FAE8C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {269AC7DF-6678-47E4-BC60-BD9811FAE8C5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {269AC7DF-6678-47E4-BC60-BD9811FAE8C5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {269AC7DF-6678-47E4-BC60-BD9811FAE8C5}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {65FEFDF1-8E17-46B2-A4AD-3C036DDA9C16} + EndGlobalSection +EndGlobal diff --git a/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Data/Input.docx b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Data/Input.docx new file mode 100644 index 000000000..68857f4c6 Binary files /dev/null and b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Data/Input.docx differ diff --git a/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Output/.gitkeep b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Output/.gitkeep new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Output/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Program.cs b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Program.cs new file mode 100644 index 000000000..1fd98b731 --- /dev/null +++ b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Program.cs @@ -0,0 +1,84 @@ +using System.Drawing; +using Syncfusion.Pdf; +using Syncfusion.DocIORenderer; +using Syncfusion.DocIO.DLS; +using Syncfusion.DocIO; +using Syncfusion.Drawing; +using System.Drawing.Imaging; +using Syncfusion.XlsIO; +using Syncfusion.XlsIORenderer; + +// Initialize the DocIORenderer component for converting Word documents to PDF +using DocIORenderer docIORenderer = new DocIORenderer(); +// Create new DocIORenderer settings +docIORenderer.Settings = new DocIORendererSettings(); +// Open the input Word document from a file stream +FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read); +// Load the Word document into a WordDocument instance +using var tempDocument = new WordDocument(inputStream, FormatType.Automatic); +// Call a method to replace embedded Excel objects in the document with images +ReplaceExcelToImage(tempDocument); +// Convert the Word document to a PDF using the DocIORenderer component +using PdfDocument pdf = docIORenderer.ConvertToPDF(tempDocument); +// Create a file stream to save the output PDF document +FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.Write); +// Save the generated PDF to the specified file stream +pdf.Save(outputStream); +//Dispose the streams. +inputStream.Dispose(); +outputStream.Dispose(); + + +/// +/// Replaces Excel OLE objects in a Word document with images, preserving their original dimensions. +/// +void ReplaceExcelToImage(WordDocument wordDocument) +{ + //Get the Ole objects. + List oleObjects = wordDocument.FindAllItemsByProperty(EntityType.OleObject, null, null); + //Iterate through the ole objects. + for (int i = 0; i < oleObjects.Count; i++) + { + WOleObject ole = oleObjects[i] as WOleObject; + //Check the type of OLE. + string type = ole.ObjectType; + //Get the height and width of OLE picture. + float height = ole.OlePicture.Height; + float width = ole.OlePicture.Width; + //If the type contains "Excel", then the OLE object is extracted from Excel. + if (type.Contains("Excel")) + { + //Create a Excel file using the Ole data. + MemoryStream excelStream = new MemoryStream(); + excelStream.Write(ole.NativeData); + excelStream.Position = 0; + + //Creates a new instance for ExcelEngine. + ExcelEngine excelEngine = new ExcelEngine(); + //Initialize IApplication. + IApplication application = excelEngine.Excel; + //Loads or open an existing workbook through Open method of IWorkbooks. + IWorkbook workbook = application.Workbooks.Open(excelStream); + IWorksheet sheet = workbook.Worksheets[0]; + + //Initialize XlsIORenderer. + application.XlsIORenderer = new XlsIORenderer(); + + //Converts and save as stream. + MemoryStream imgStream = new MemoryStream(); + sheet.ConvertToImage(1, 1, 6, 5, imgStream); + imgStream.Position = 0; + + //Load the converted image as OLE picture. + ole.OlePicture.LoadImage(imgStream); + ole.OlePicture.LockAspectRatio = false; + ole.OlePicture.Height = height; + ole.OlePicture.Width = width; + + //Close and Dispose. + workbook.Close(); + imgStream.Dispose(); + excelStream.Dispose(); + } + } +} diff --git a/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Replace-Excel-embedded-image-to-PNG.csproj b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Replace-Excel-embedded-image-to-PNG.csproj new file mode 100644 index 000000000..7bf1aedc2 --- /dev/null +++ b/Word-to-PDF-Conversion/Replace-Excel-embedded-image-to-PNG/.NET/Replace-Excel-embedded-image-to-PNG/Replace-Excel-embedded-image-to-PNG.csproj @@ -0,0 +1,26 @@ + + + + Exe + net8.0 + Replace_Excel_embedded_image_to_PNG + enable + enable + + + + + + + + + + + Always + + + Always + + + + diff --git a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Template.docx b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Template.docx rename to Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Program.cs b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Program.cs index 9213edcf2..5798c34c5 100644 --- a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -30,7 +30,7 @@ static void Main(string[] args) //It restrict printing and copying of PDF document. security.Permissions = ~(PdfPermissionsFlags.CopyContent | PdfPermissionsFlags.Print); //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Restrict-permission-in-PDF.csproj b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Restrict-permission-in-PDF.csproj index 93eb6dc6e..9a9b2e956 100644 --- a/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Restrict-permission-in-PDF.csproj +++ b/Word-to-PDF-Conversion/Restrict-permission-in-PDF/.NET/Restrict-permission-in-PDF/Restrict-permission-in-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Template.docx b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Template.docx rename to Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Output/.gitkeep b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Program.cs b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Program.cs index 334790e19..31e24d6da 100644 --- a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Program.cs +++ b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Show-or-hide-revisions-in-balloons.csproj b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Show-or-hide-revisions-in-balloons.csproj index 48676e279..971510f96 100644 --- a/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Show-or-hide-revisions-in-balloons.csproj +++ b/Word-to-PDF-Conversion/Show-or-hide-revisions-in-balloons/.NET/Show-or-hide-revisions-in-balloons/Show-or-hide-revisions-in-balloons.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Template.docx b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Template.docx rename to Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Output/.gitkeep b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Program.cs b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Program.cs index 84f11477d..ea363ec9e 100644 --- a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Program.cs +++ b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -23,7 +23,7 @@ static void Main(string[] args) using (PdfDocument pdfDocument = renderer.ConvertToPDF(wordDocument)) { //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Track-changes-in-Word-to-PDF.csproj b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Track-changes-in-Word-to-PDF.csproj index 197c62656..7660ef186 100644 --- a/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Track-changes-in-Word-to-PDF.csproj +++ b/Word-to-PDF-Conversion/Track-changes-in-Word-to-PDF/.NET/Track-changes-in-Word-to-PDF/Track-changes-in-Word-to-PDF.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_bold.TTF b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_bold.TTF new file mode 100644 index 000000000..03bb5e24b Binary files /dev/null and b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_bold.TTF differ diff --git a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_italic.TTF b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_italic.TTF new file mode 100644 index 000000000..652df712c Binary files /dev/null and b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Data/Arial_italic.TTF differ diff --git a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Output/.gitkeep b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Program.cs b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Program.cs index 3fa43ed2a..bcf8fb0aa 100644 --- a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Program.cs +++ b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Program.cs @@ -10,7 +10,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -26,7 +26,7 @@ static void Main(string[] args) //Unhooks the font substitution event after converting to PDF. wordDocument.FontSettings.SubstituteFont -= FontSettings_SubstituteFont; //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } @@ -38,10 +38,21 @@ static void Main(string[] args) private static void FontSettings_SubstituteFont(object sender, SubstituteFontEventArgs args) { //Sets the alternate font when a specified font is not installed in the production environment. - if (args.OriginalFontName == "Arial Unicode MS" && args.FontStyle == FontStyle.Regular) - args.AlternateFontStream = new FileStream(Path.GetFullPath(@"../../../Data/Arial.TTF"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); - else - args.AlternateFontName = "Times New Roman"; + if (args.OrignalFontName == "Arial Unicode MS") + { + switch (args.FontStyle) + { + case FontStyle.Italic: + args.AlternateFontStream = new FileStream(Path.GetFullPath(@"Data/Arial_italic.TTF"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + break; + case FontStyle.Bold: + args.AlternateFontStream = new FileStream(Path.GetFullPath(@"Data/Arial_bold.TTF"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + break; + default: + args.AlternateFontStream = new FileStream(Path.GetFullPath(@"Data/Arial.TTF"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + break; + } + } } } } diff --git a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Use-alternate-font-without-installing.csproj b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Use-alternate-font-without-installing.csproj index 02f218005..e4af7b3da 100644 --- a/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Use-alternate-font-without-installing.csproj +++ b/Word-to-PDF-Conversion/Use-alternate-font-without-installing/.NET/Use-alternate-font-without-installing/Use-alternate-font-without-installing.csproj @@ -10,4 +10,22 @@ + + + Always + + + Always + + + Always + + + Always + + + Always + + + diff --git a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Template.docx b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Data/Template.docx similarity index 100% rename from Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Template.docx rename to Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Data/Template.docx diff --git a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Output/.gitkeep b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Output/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Program.cs b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Program.cs index 75c63edd6..35b021d19 100644 --- a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Program.cs +++ b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Program.cs @@ -9,7 +9,7 @@ class Program { static void Main(string[] args) { - using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open)) + using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open)) { //Loads an existing Word document. using (WordDocument wordDocument = new WordDocument(fileStream, Syncfusion.DocIO.FormatType.Automatic)) @@ -25,7 +25,7 @@ static void Main(string[] args) //Unhooks the font substitution event after converting to PDF. wordDocument.FontSettings.SubstituteFont -= FontSettings_SubstituteFont; //Saves the PDF file to file system. - using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../WordToPDF.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) + using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { pdfDocument.Save(outputStream); } diff --git a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Use-alternate-installed-font.csproj b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Use-alternate-installed-font.csproj index 40b8ec1f8..6494065ce 100644 --- a/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Use-alternate-installed-font.csproj +++ b/Word-to-PDF-Conversion/Use-alternate-installed-font/.NET/Use-alternate-installed-font/Use-alternate-installed-font.csproj @@ -10,4 +10,13 @@ + + + Always + + + Always + + +