Skip to content

Commit 7a2259d

Browse files
Merge pull request #217 from VijayadharshiniMathiyalagan/main
ES-893973 - Playground button changes for DocIo Github examples
2 parents e14cdab + 7d1cdeb commit 7a2259d

File tree

223 files changed

+821
-138
lines changed

Some content is hidden

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

223 files changed

+821
-138
lines changed

Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Insert-Multiple-Body-items-inside-IF-field.csproj

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

15+
<ItemGroup>
16+
<None Update="Output\.gitkeep">
17+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
18+
</None>
19+
</ItemGroup>
20+
1521
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Fields/Insert-Multiple-Body-items-inside-IF-field/.NET/Insert-Multiple-Body-items-inside-IF-field/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void Main(string[] args)
2424
document.UpdateDocumentFields();
2525

2626
//Save and close the document.
27-
using (FileStream outputStream = new FileStream("Result.docx", FileMode.Create, FileAccess.Write))
27+
using (FileStream outputStream = new FileStream("Output/Result.docx", FileMode.Create, FileAccess.Write))
2828
{
2929
document.Save(outputStream, FormatType.Docx);
3030
}

Fields/Insert-author-name/.NET/Insert-author-name/Insert-author-name.csproj

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

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


Fields/Insert-author-name/.NET/Insert-author-name/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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
//Open the template document.
1414
using (WordDocument document = new WordDocument(fileStream, FormatType.Docx))
@@ -23,7 +23,7 @@ static void Main(string[] args)
2323
//Update the fields in Word document.
2424
document.UpdateDocumentFields();
2525
//Create file stream.
26-
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
26+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
2727
{
2828
//Save the Word document to file stream.
2929
document.Save(outputStream, FormatType.Docx);

Fields/Insert-next-sequence-number/.NET/Insert-next-sequence-number/Insert-next-sequence-number.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,14 @@
99
<ItemGroup>
1010
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="*" />
1111
</ItemGroup>
12+
13+
<ItemGroup>
14+
<None Update="Data\Template.docx">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Output\.gitkeep">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19+
</None>
20+
</ItemGroup>
1221

1322
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


0 commit comments

Comments
 (0)