Skip to content

Commit c6a491f

Browse files
Feedback_addressed
1 parent 771896f commit c6a491f

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Input.docx renamed to Paragraphs/Apply-paragraph-formatting/.NET/Apply-paragraph-formatting/Data/Input.docx

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


Paragraphs/Get-list-value/.NET/Get-list-value/Get-list-value.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>

Paragraphs/Get-list-value/.NET/Get-list-value/Program.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Program
99
{
1010
static void Main(string[] args)
1111
{
12-
using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"../../../Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
12+
using (FileStream fileStreamPath = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
1313
{
1414
//Creates a new Word document.
1515
using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic))
@@ -19,9 +19,8 @@ static void Main(string[] args)
1919
//Gets the string that represents the appearance of list value of the paragraph.
2020
string listString = document.LastParagraph.ListString;
2121
Console.WriteLine("List value of last paragraph : " + listString);
22-
Console.ReadKey();
2322
//Creates file stream.
24-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
23+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
2524
{
2625
//Saves the Word document to file stream.
2726
document.Save(outputFileStream, FormatType.Docx);
-13.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)