FileFormat.Words.Examples.Test 23.12.0

dotnet add package FileFormat.Words.Examples.Test --version 23.12.0
NuGet\Install-Package FileFormat.Words.Examples.Test -Version 23.12.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FileFormat.Words.Examples.Test" Version="23.12.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FileFormat.Words.Examples.Test --version 23.12.0
#r "nuget: FileFormat.Words.Examples.Test, 23.12.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FileFormat.Words.Examples.Test as a Cake Addin
#addin nuget:?package=FileFormat.Words.Examples.Test&version=23.12.0

// Install FileFormat.Words.Examples.Test as a Cake Tool
#tool nuget:?package=FileFormat.Words.Examples.Test&version=23.12.0

C# Word Document API Examples

FileFormat.Words.Examples - C# code examples using FileFormat.Words for .NET - A versatile API for creating, loading, and modifying MS Word documents.

Table of Contents

Create Word Document Paragraphs in C#

  • Creates a new Word Document with structured content using FileFormat.Words
  • Generates paragraphs with heading styles defined by the Word document template.
  • Adds normal paragraphs under each heading paragraph.
  • Includes text runs with various fonts as per the template.
  • Saves the newly created Word Document.
  • Click here to explore gist.

Read Word Document Paragraphs in C#

  • Loads an existing Word Document with structured content using FileFormat.Words
  • Traverses paragraphs and displays associated styles as defined by the Word document template.
  • Traverses through each run (text fragment) within each paragraph and displays fragment values.
  • Click here to explore gist

Modify Word Document Paragraphs in C#

  • Loads an existing Word Document with structured content using FileFormat.Words
  • Modifies paragraphs by prepending 'Modified Heading :' for styled paragraphs and 'Modified Run :' for each run within normal paragraphs, preserving the existing format.
  • Saves the modified Word Document.
  • Click here to explore gist

Create Word Document Images in C#

  • Creates a new Word Document with structured content using FileFormat.Words
  • Loads images from the specified diretory and decodes using SkiaSharp.
  • Creates a word document and appends loaded images to it.
  • Saves the newly created Word Document.
  • Click here to explore gist

Read Word Document Images in C#

Modify Word Document Images in C#

  • Loads an existing Word Document with structured content using FileFormat.Words
  • Gets images from the word document. Decodes image using SkiaSharp and encode to JPG.
  • Resize image to 250(height) and 200(width).
  • Saves the modified Word Document.
  • Click here to explore gist

Create Word Document Tables in C#

  • Creates a new Word Document with structured content using FileFormat.Words
  • Generates 5(rows) x 3(cols) tables with table styles defined by the Word document template.
  • Appends each table to the body of the word document.
  • Saves the newly created Word Document.
  • Click here to explore gist

Read Word Document Tables in C#

  • Loads an existing Word Document with structured content using FileFormat.Words
  • Traverses tables and displays associated styles as defined by the Word document template.
  • Traverses through each row and then traverses columns within the row.
  • Traverses through paragrpahs within each cell and displays paragraph plain text
  • Click here to explore gist

Modify Word Document Tables in C#

Multiple Word Documents Concurrent Updating in C#

Resources

System Requirements

Quick Start

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
23.12.0 1 12/21/2023