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 fa729d06..1b53fbcb 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 00000000..5f282702
--- /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 50265b3d..586dc075 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 aa508695..8bbdebad 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 00000000..5f282702
--- /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 fed062af..70653ea2 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/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 972dd6a9..12835921 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 00000000..5f282702
--- /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 b0c1f87e..8b680da0 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 2fe58484..a3594eda 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 00000000..5f282702
--- /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 6998ae3f..eabda624 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 00000000..5f282702
--- /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 430c08a1..e0281768 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 07c47a21..e8b0310e 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 00000000..5f282702
--- /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 9a32b076..72ca0bad 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 83920697..412e8644 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 00000000..5f282702
--- /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 e970fe91..a62df68d 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 f229932e..29ee7ce6 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 00000000..5f282702
--- /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 d638d0da..23cd3f73 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 8afcacd4..c0ab7c15 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/Apply-custom-table-style/.NET/Apply-custom-table-style/Data/Template.docx b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Data/Template.docx
new file mode 100644
index 00000000..36f890a0
Binary files /dev/null and b/Tables/Apply-custom-table-style/.NET/Apply-custom-table-style/Data/Template.docx differ
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 a165ab17..242f8b07 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 00000000..5f282702
--- /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 6389a98d..3f108d15 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 bff5c54e..07c6b2b0 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 00000000..5f282702
--- /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 362238ab..c672bbd1 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/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 d4fc7033..1e64dca2 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 00000000..5f282702
--- /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 4be55f47..5630ce95 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 04614353..26287e0d 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 00000000..5f282702
--- /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 0d5442f9..50d2cf23 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 afe2ae12..c75843d6 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 00000000..5f282702
--- /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 51d6ee8b..316f688d 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 7ae9fc3d..464aa60c 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 00000000..5f282702
--- /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 86b64e0e..57e28157 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 6af3d44a..50a99c24 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 00000000..5f282702
--- /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 c2ced0d5..53140ca8 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 3e396422..ff50af5a 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 00000000..5f282702
--- /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 a7d779bc..8fdbedab 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/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 f5078ede..074cc94c 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 00000000..5f282702
--- /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 3b929a57..d45ee639 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 03e2e4e8..1cc36e1f 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 00000000..5f282702
--- /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 2fa73bed..5f868cac 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 9f870ba2..9805d669 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 00000000..5f282702
--- /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 07df195b..7bf40a08 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 6b240c25..a501fb8e 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 00000000..5f282702
--- /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 be8638db..24ae5975 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/Iterate-document-elements.csproj b/Word-document/Iterate-document-elements/.NET/Iterate-document-elements/Iterate-document-elements.csproj
index 1e0215b0..01553799 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
@@ -19,4 +19,13 @@
+
+
+ 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 00000000..5f282702
--- /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 117f3fef..c624d84c 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
@@ -26,7 +26,7 @@ static void Main(string[] args)
IterateTextBody(headersFooters.OddFooter);
}
//Creates file stream.
- using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.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 3c45ce73..36b9b322 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 00000000..5f282702
--- /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 9d45a036..02ba8a79 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/Output/gitkeep b/Word-document/Merge-documents-in-new-page/.NET/Merge-documents-in-new-page/Output/gitkeep
new file mode 100644
index 00000000..5f282702
--- /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-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 00000000..5f282702
--- /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-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 b86d074a..89469b34 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 00000000..5f282702
--- /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 3fbac648..c989c2ee 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 0e4c0a2a..9ce38615 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 00000000..5f282702
--- /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 4fbb3613..37513e83 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-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 115010a7..4cee6873 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 00000000..5f282702
--- /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 992937e7..8e738cb4 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/Merge\342\200\223multiple-Word-files-in-same-page.csproj" "b/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"
index 96cb3b21..cd6f6931 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/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"
@@ -12,4 +12,22 @@
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+
diff --git "a/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Output/gitkeep" "b/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Output/gitkeep"
new file mode 100644
index 00000000..5f282702
--- /dev/null
+++ "b/Word-document/Merge\342\200\223multiple-Word-files-in-same-page/.NET/Merge\342\200\223multiple-Word-files-in-same-page/Output/gitkeep"
@@ -0,0 +1 @@
+
\ No newline at end of file
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"
index 705cfd86..328b9827 100644
--- "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"
@@ -4,11 +4,11 @@
//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");
+sourceFileNames.Add("Data/Addressblock.docx");
+sourceFileNames.Add("Data/Salutation.docx");
+sourceFileNames.Add("Data/Greetings.docx");
-string destinationFileName = "../../../Data/Title.docx";
+string destinationFileName = Path.GetFullPath(@"Data/Title.docx");
using (FileStream destinationStreamPath = new FileStream(destinationFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
//Opens the destination document
@@ -16,7 +16,7 @@
{
ImportOtherDocuments(sourceFileNames, destinationDocument);
//Saves and closes the destination document
- 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))
{
destinationDocument.Save(outputStream, FormatType.Docx);
destinationDocument.Close();
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 2d56c922..b44ababe 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 00000000..5f282702
--- /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 7598140b..32ce0000 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 820a430c..3fc9b6da 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 00000000..5f282702
--- /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 de9f5831..7a4a5c26 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 c0fd2fd9..18598c65 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 00000000..5f282702
--- /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 9b095ee5..ad796361 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 c118fba5..959980ec 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 00000000..5f282702
--- /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 74fda354..4fd6b0dd 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 5af8cb86..d734aea6 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 00000000..5f282702
--- /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 d17da4e0..06abf35c 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/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 00000000..5f282702
--- /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 7202ad77..2b29c3ed 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 ccb02103..a9296788 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 00000000..5f282702
--- /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 5dd2ff32..fd400b98 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 4c36389d..9267d6ad 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/Output/gitkeep b/Word-document/Remove-paragraph-with-style/.NET/Remove-paragraph-with-style/Output/gitkeep
new file mode 100644
index 00000000..5f282702
--- /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 067f4019..d3e56a20 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
@@ -27,7 +27,7 @@ static void Main(string[] args)
IterateTextBody(headersFooters.OddFooter);
}
//Creates file stream.
- using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.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/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 00000000..5f282702
--- /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 7d0695d8..b92ac284 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 a693a8ed..c7b8f62f 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/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 00000000..5f282702
--- /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 932b9979..618d16d7 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 420b7935..b80f4656 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/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 00000000..5f282702
--- /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-heading/.NET/Split-by-heading/Output/gitkeep b/Word-document/Split-by-heading/.NET/Split-by-heading/Output/gitkeep
new file mode 100644
index 00000000..5f282702
--- /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 dfc3e9bd..d5c5dcf3 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
@@ -37,7 +37,7 @@ static void Main(string[] args)
if (newDocument != null)
{
//Saves the Word document
- string fileName = @"Output/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 = @"Output/Document" + (headingIndex + 1) + ".docx";
+ string fileName = Path.GetFullPath(@"Output/Document") + (headingIndex + 1) + ".docx";
SaveWordDocument(newDocument, fileName);
}
}
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 68ff1841..50bb989d 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
@@ -19,4 +19,13 @@
+
+
+ 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 00000000..5f282702
--- /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-section/.NET/Split-by-section/Output/gitkeep b/Word-document/Split-by-section/.NET/Split-by-section/Output/gitkeep
new file mode 100644
index 00000000..5f282702
--- /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/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 00000000..5f282702
--- /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 3ed17ada..755462bc 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 a3a76c1c..7e65dc26 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 00000000..5f282702
--- /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 5d50538e..466c3f5d 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 161c4dfa..eceacb43 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 00000000..5f282702
--- /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 49ddc2b1..773c6194 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 9499f537..45cac16e 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
+
+
+