Skip to content

Commit fd03939

Browse files
Add-playground-in-sample - conflict changes
2 parents af23fc0 + 0ff7dc9 commit fd03939

File tree

180 files changed

+505
-104
lines changed

Some content is hidden

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

180 files changed

+505
-104
lines changed

Comments/Find-text-using-regex-and-add-comments/.NET/Find-text-using-regex-and-add-comments/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@
4242
}
4343
}
4444
}
45-
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(Path.GetFullPath(@"Output/Output.docx")) { UseShellExecute = true });
4645

Footnotes-and-Endnotes/Modify-Footnote-and-Endnote-content/.NET/Modify-Footnote-and-Endnote-content/Program.cs

Lines changed: 2 additions & 2 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 inputStream = new FileStream(@"Data/Input.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
12+
using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Input.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
1313
{
1414
//Load the file stream into a Word document.
1515
using (WordDocument document = new WordDocument(inputStream, FormatType.Docx))
@@ -38,7 +38,7 @@ static void Main(string[] args)
3838
endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript;
3939
//Append the endnote text.
4040
endnoteParagraph.AppendText(" Endnote is modified.");
41-
using (FileStream outputStream = new FileStream(@"Output/Sample.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite))
41+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.docx"), FileMode.OpenOrCreate, FileAccess.ReadWrite))
4242
{
4343
//Save a Word document to file stream.
4444
document.Save(outputStream, FormatType.Docx);

Footnotes-and-Endnotes/Remove-footnotes-and-endnotes/.NET/Remove-footnotes-and-endnotes/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ class Program
99
{
1010
static void Main(string[] args)
1111
{
12-
using (FileStream inputStream = new FileStream(@"Data/Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
12+
using (FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/Template.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
1313
{
1414
//Loads the template document as stream
1515
using (WordDocument document = new WordDocument(inputStream, FormatType.Docx))
1616
{
1717
//Removes footnote and endnote from the document
1818
RemoveFootNoteEndNote(document);
1919
//Creates file stream.
20-
using (FileStream outputStream = new FileStream(@"Output/Result.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite))
20+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.OpenOrCreate, FileAccess.ReadWrite))
2121
{
2222
//Saves the Word document to file stream.
2323
document.Save(outputStream, FormatType.Docx);

Paragraphs/Add-ole-object/.NET/Add-ole-object/Add-ole-object.csproj

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

13+
<ItemGroup>
14+
<None Update="Data\Book.xlsx">
15+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Data\Image.png">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19+
</None>
20+
<None Update="Output\.gitkeep">
21+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
24+
1325
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Paragraphs/Add-ole-object/.NET/Add-ole-object/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ static void Main(string[] args)
1616
//Adds new paragraph to the section.
1717
IWParagraph paragraph = section.AddParagraph();
1818
//Opens the file to be embedded.
19-
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"../../../Data/Book.xlsx"), FileMode.Open, FileAccess.ReadWrite))
19+
using (FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/Book.xlsx"), FileMode.Open, FileAccess.ReadWrite))
2020
{
2121
//Loads the picture instance with the image need to be displayed.
2222
WPicture picture = new WPicture(document);
23-
FileStream imageStream = new FileStream(Path.GetFullPath(@"../../../Data/Image.png"), FileMode.Open, FileAccess.ReadWrite);
23+
FileStream imageStream = new FileStream(Path.GetFullPath(@"Data/Image.png"), FileMode.Open, FileAccess.ReadWrite);
2424
picture.LoadImage(imageStream);
2525
//Sets height and width for the image.
2626
picture.Height = 80;
2727
picture.Width = 80;
2828
//Appends the OLE object to the paragraph.
2929
WOleObject oleObject = paragraph.AppendOleObject(fileStream, picture, OleObjectType.ExcelWorksheet);
3030
//Creates file stream.
31-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
31+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
3232
{
3333
//Saves the Word document to file stream.
3434
document.Save(outputFileStream, FormatType.Docx);

Paragraphs/Add-paragraph/.NET/Add-paragraph/Add-paragraph.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
<PackageReference Include="Syncfusion.DocIO.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+


Paragraphs/Add-paragraph/.NET/Add-paragraph/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void Main(string[] args)
1818
//Adds new text to the paragraph.
1919
paragraph.AppendText("Adding new paragraph to the document");
2020
//Creates file stream.
21-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
21+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
2222
{
2323
//Saves the Word document to file stream.
2424
document.Save(outputFileStream, FormatType.Docx);

Paragraphs/Add-svg-image/.NET/Add-svg-image/Add-svg-image.csproj

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

15+
<ItemGroup>
16+
<None Update="Data\Buyers.png">
17+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
18+
</None>
19+
<None Update="Data\Buyers.svg">
20+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
21+
</None>
22+
<None Update="Output\.gitkeep">
23+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
24+
</None>
25+
</ItemGroup>
26+
1527
</Project>

0 commit comments

Comments
 (0)