Skip to content

Commit c5955e2

Browse files
Merge pull request #220 from SyncfusionExamples/Add-playground-in-sample
ES-906755 -Modify DocIO GitHub examples repository for document processing playground
2 parents 0ff7dc9 + 2a8b29b commit c5955e2

File tree

141 files changed

+498
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+498
-81
lines changed

Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Add-table-of-contents.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="Output\gitkeep">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
</ItemGroup>
18+
1319
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Table-Of-Contents/Add-table-of-contents/.NET/Add-table-of-contents/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void Main(string[] args)
5252
//Updates the table of contents.
5353
document.UpdateTableOfContents();
5454
//Creates file stream.
55-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
55+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
5656
{
5757
//Saves the Word document to file stream.
5858
document.Save(outputFileStream, FormatType.Docx);

Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Add_toc_in_merged_documents.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,19 @@
1212
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1313
</ItemGroup>
1414

15+
<ItemGroup>
16+
<None Update="Data\Document1.docx">
17+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
18+
</None>
19+
<None Update="Data\Document2.docx">
20+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
21+
</None>
22+
<None Update="Data\Document3.docx">
23+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
24+
</None>
25+
<None Update="Output\gitkeep">
26+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
27+
</None>
28+
</ItemGroup>
29+
1530
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Table-Of-Contents/Add_toc_in_merged_documents/.NET/Add_toc_in_merged_documents/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Syncfusion.DocIORenderer;
44

55
//Get the Source document names from the folder.
6-
string[] sourceDocumentNames = Directory.GetFiles(@"../../../Data/");
6+
string[] sourceDocumentNames = Directory.GetFiles(Path.GetFullPath(@"Data/"));
77

88
//Create an WordDocumentinstance for destination document.
99
using (WordDocument destinationDocument = new WordDocument())
@@ -34,7 +34,7 @@
3434
//Updates the table of contents
3535
destinationDocument.UpdateTableOfContents();
3636
//Save the destination document.
37-
using (FileStream outputStream = new FileStream(@"../../../Output.docx", FileMode.Create, FileAccess.Write))
37+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.Write))
3838
{
3939
destinationDocument.Save(outputStream, FormatType.Docx);
4040
}

Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Customize-TOC-entries-style.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<None Update="Output\gitkeep">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
</ItemGroup>
18+
1319
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Table-Of-Contents/Customize-TOC-entries-style/.NET/Customize-TOC-entries-style/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void Main(string[] args)
6868
//Update the table of contents.
6969
document.UpdateTableOfContents();
7070
//Save the file in the given path.
71-
Stream docStream = File.Create(Path.GetFullPath(@"../../../Sample.docx"));
71+
Stream docStream = File.Create(Path.GetFullPath(@"Output/Sample.docx"));
7272
document.Save(docStream, FormatType.Docx);
7373
docStream.Dispose();
7474
}

Table-Of-Contents/Exclude_caption_label_numbers/.NET/Exclude_caption_label_numbers/Exclude_caption_label_numbers.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@
1010
<ItemGroup>
1111
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1212
</ItemGroup>
13+
14+
<ItemGroup>
15+
<None Update="Data\Input.docx">
16+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
17+
</None>
18+
<None Update="Output\gitkeep">
19+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
20+
</None>
21+
</ItemGroup>
1322
</Project>

0 commit comments

Comments
 (0)