Skip to content

Commit 342e304

Browse files
Merge branch 'main' of https://github.com/SyncfusionExamples/DocIO-Examples into Extract-images-from-Word-document-Net
2 parents ebdfe24 + c5955e2 commit 342e304

File tree

1,976 files changed

+81436
-1141
lines changed

Some content is hidden

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

1,976 files changed

+81436
-1141
lines changed

Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Add-bookmark-in-Word-document.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+


Bookmarks/Add-bookmark-in-Word-document/.NET/Add-bookmark-in-Word-document/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void Main(string[] args)
2828
//Adds a text after the bookmark end.
2929
paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data.");
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/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
3232
{
3333
//Saves the Word document to file stream.
3434
document.Save(outputFileStream, FormatType.Docx);

Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Template.docx renamed to Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Data/Template.docx

File renamed without changes.

Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-content/Delete-bookmark-content.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
@@ -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+


Bookmarks/Delete-bookmark-content/.NET/Delete-bookmark-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 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
//Opens an existing Word document.
1515
using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Automatic))
@@ -21,7 +21,7 @@ static void Main(string[] args)
2121
//Deletes bookmark content without deleting the format in the target document.
2222
bookmarkNavigator.DeleteBookmarkContent(false);
2323
//Creates file stream.
24-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite))
24+
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
2525
{
2626
//Saves the Word document to file stream.
2727
document.Save(outputFileStream, FormatType.Docx);

Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Template.docx renamed to Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Data/Template.docx

File renamed without changes.

Bookmarks/Get-an-instance-of-bookmark/.NET/Get-an-instance-of-bookmark/Get-an-instance-of-bookmark.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
@@ -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+


0 commit comments

Comments
 (0)