Skip to content

Commit a1739ae

Browse files
ES-893973 - docio playground changes for github examples
1 parent f443da2 commit a1739ae

File tree

40 files changed

+193
-26
lines changed

40 files changed

+193
-26
lines changed

Comments/Access-parent-comment/.NET/Access-parent-comment/Access-parent-comment.csproj

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

13+
<ItemGroup>
14+
<Folder Include="Data\" />
15+
<Folder Include="Output\" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<None Update="Data\Template.docx">
20+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
21+
</None>
22+
<None Update="Output\.gitkeep">
23+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
24+
</None>
25+
</ItemGroup>
26+
1327
</Project>

Comments/Access-parent-comment/.NET/Access-parent-comment/Template.docx renamed to Comments/Access-parent-comment/.NET/Access-parent-comment/Data/Template.docx

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Comments/Access-parent-comment/.NET/Access-parent-comment/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class Program
88
{
99
static void Main(string[] args)
1010
{
11-
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.ReadWrite))
11+
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.ReadWrite))
1212
{
1313
//Opens the template document.
1414
using (WordDocument document = new WordDocument(fileStream, FormatType.Docx))
1515
{
1616
//Get the Ancestor comment.
1717
WComment ancestorComment = document.Comments[1].Ancestor;
1818
//Creates file stream.
19-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
19+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
2020
{
2121
//Saves the Word document to file stream.
2222
document.Save(outputFileStream, FormatType.Docx);

Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Add-comment-to-Word-document.csproj

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

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


Comments/Add-comment-to-Word-document/.NET/Add-comment-to-Word-document/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void Main(string[] args)
2626
//Set the date and time for comment.
2727
comment.Format.DateTime = DateTime.Now;
2828
//Creates file stream.
29-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
29+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
3030
{
3131
//Saves the Word document to file stream.
3232
document.Save(outputFileStream, FormatType.Docx);

Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Check-comment-is-resolved.csproj

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

15+
<ItemGroup>
16+
<Folder Include="Data\" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<None Update="Data\Sample.docx">
21+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
24+
1525
</Project>

Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Sample.docx renamed to Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Data/Sample.docx

File renamed without changes.

Comments/Check-comment-is-resolved/.NET/Check-comment-is-resolved/Check-comment-is-resolved/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Syncfusion.DocIO.DLS;
22
using Syncfusion.DocIO;
33

4-
using (FileStream inputStream = new FileStream(Path.GetFullPath("../../../Sample.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
4+
using (FileStream inputStream = new FileStream(Path.GetFullPath("Data/Sample.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
55
{
66
//Load an existing Word document.
77
using (WordDocument document = new WordDocument(inputStream, FormatType.Docx))

0 commit comments

Comments
 (0)