Skip to content

Documentation and code examples for IronWord (ironsoftware.com/csharp/word/)

Notifications You must be signed in to change notification settings

iron-software/IronWord.Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Version Installs Build Status Windows Support macOS Support Linux Support Docker Support AWS Compatibility Microsoft Azure Compatibility Live Chat

IronWord - Your C# Word Processing Library

IronWord NuGet Trial Banner Image

IronWord is a robust tool developed by Iron Software that enhances C# developers' capabilities in creating, editing, and storing Word documents within .NET frameworks and websites.

Outstanding Features of IronWord:

  • Comprehensive management of Word and DOCX files.
  • PageSetup: Setting up page sizes, orientations, margins, and background colors.
  • TextRun: Manipulating text by edging, fine-tuning styles, appending images, and more.
  • TextStyle: Managing font type, size, colors, and text attributes like bold, italic, underline, etc.
  • Paragraph: Assembling text runs, imagery, alignments, and sessioning lists and bullets.
  • Table: Robust table constructions, with capabilities to add, modify, or merge table elements.
  • Image: Integrating images with customization of dimensions and text wrapping.
  • Shape: Inserting different shapes with adjustable text wrap, size, and rotation.

Explore these and more on our features page and see our extensive code library.

Cross-Platform Support From IronWord:

IronWord supports a variety of environments and frameworks:

  • .NET 8, .NET 7, .NET 6, .NET 5, Core 2x & 3x, Standard 2, and Framework 4.6.2+
  • Compatible with Systems including Windows, macOS, Linux; and Deployable via Docker, Azure, and AWS

IronWord Cross Platform Support

Click this link to access API reference materials and comprehensive licensing guidelines.

Installing IronWord

To use IronWord in your project, initiate the installation with this command in your package manager console:

PM> Install-Package IronWord

Then, incorporate these using statements at the beginning of your C# application:

using IronWord;
using IronWord.Models;
using IronSoftware.Drawing;

// Create or load documents
var existingDoc = new WordDocument("existing.docx");  // Loading an existing document

var newDoc = new WordDocument();  // Creating a new document

// Adding textual content
var textParagraph = new Paragraph();
textParagraph.AddText(new Text() { Text = "Hello IronWord!" });
existingDoc.AddParagraph(textParagraph);

// Incorporating images
var img = new Image("example.jpg") { Width = 200, Height = 200 };
var imageParagraph = new Paragraph();
imageParagraph.AddImage(img);

existingDoc.AddParagraph(imageParagraph);

// Saving documents
existingDoc.Save("updatedExisting.docx");  // Saving modifications
existingDoc.SaveAs("newDocument.docx");  // Saving as a new file

Feature Summary

IronWord Feature Overview

Comprehensive Support & Licensing

For a full suite of code examples, licensing details, and documentation, make sure to visit us: https://ironsoftware.com/csharp/word/

Contact us for support at: [email protected]

Helpful Documentation Links

About

Documentation and code examples for IronWord (ironsoftware.com/csharp/word/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages