Spire.Doc for .NET
.NET Word API - Processing Word in C#, VB.NET, ASP.NET
- Overview
- Features
- Examples
- Guideline
- Support
- What's New
- Live Demo
Spire.Doc for .NET is a professional Word .NET library specifically designed for developers to create, read, write, convert, compare and print Word documents on any .NET platform (Target .NET Framework, .NET Core, .NET Standard, .NET 5.0, .NET 6.0, Xamarin & Mono Android) with fast and high quality performance.
As an independent Word .NET API, Spire.Doc for .NET doesn't need Microsoft Word to be installed on neither the development nor target systems. However, it can incorporate Microsoft Word document creation capabilities into any developers' .NET applications.
Spire.Doc for .NET is a proven reliable MS Word API for .NET which enables to perform many Word document processing tasks. It supports C#, VB.NET, ASP.NET and ASP.NET MVC. Spire.Doc supports Word 97-2003 /2007/2010/2013/2016/2019 and it has the ability to convert them to commonly used file formats like XML, RTF, TXT, EMF, HTML, TIFF, Markdown and vice versa. Furthermore, it supports to convert Word to PDF, Excel, images (JPG, PNG, SVG), EPUB, PostScript, XPS and PCL (Printer Command Language), and convert XML/RTF/Markdown to PDF, convert HTML to images/PDF/XPS/XML in high quality.
-
Convert
-
Compare
-
Extract
-
eSign
-
Watermark
-
Replace
-
Mail Merge
-
Highlight
-
Header
-
Form
Convert Word to PDF
PDF files are preferred over Word documents because they are safe, simple to open, and easy to manage on any device. PDF is the most popular file format that users would convert Word to.
Compare Documents
If you receive two nearly-identical Word documents, the ideal way to determine whether there are any differences between them is to compare the two documents.
Extract Text and Images
When you just need to get the information in a Word document regardless of its format and structure, you can simply extract the text and images from the document.
Digitally Sign Documents
A digital signature provides assurances about the validity and authenticity of your Word documents. Once a Word document is digitally signed, any changes to the document will invalidate the signature.
Add a Watermark
A watermark is used to declare confidentiality, copyright, or other attributes of the document, or as a decoration to make the document more attractive. You can add either text or image watermarks to Word documents.
Replace Text
The ability to replace existing text (or placeholders) in a Word document makes it possible for programmers to quickly generate Word reports or documents based on a template.
Mail Merge
Mail Merge is a handy feature that allows you to quickly produce multiple documents, such as letters or emails, using information stored in a list, spreadsheet or database.
Find and Highlight
If you want to emphasize some words, you can find and highlight them in a bright color so that the readers could catch them easily.
Headers and Footers
Headers and footers are useful for including information that you want to appear on every page of a document, such as company logo or page number.
Create a Form
Form fields make it easier to collect information. Users can enter information by choosing an item from a drop-down list, inserting text in a combo box, or checking a check box.
.NET
Standalone .NET API
100% independent .NET Word class library
Doesn't require Microsoft Office installed on system.
VERSION
- Word 97-03
- Word 2007
- Word 2010
- Word 2013
- Word 2016
- Word 2019
OPERATION
Powerful Toolset, Multichannel Support
-
Mail Merge, Create Field, Fill Field, Update Field
-
Protect, Encrypt, Decrypt
-
Create, Modify, Remove hyperlink
-
Insert, Edit, remove bookmark
-
Find Replace Highlight
-
Merge and Split Word document
-
Header and Footer
-
Insert, Reply, remove comment
-
Create & Update Table
-
Print Word Document
-
Image and Shape
-
Digital Signature
CONVERSION
Convert File Documents with High Quality
-
PDF
-
XPS
-
EPUB
-
SVG
-
PCL
-
Image
Doc/Docx
-
ODT
-
XML
-
HTML
-
RTF
-
TXT
-
PNG
-
BMP
-
JPEG
-
EMF
-
TIFF
MAIN FUNCTION
Only Spire.Doc for .NET,
No Microsoft Office Automation
Convert File Documents
with High Quality
Richest Word Document
Features Support
Simple & Easy to Process
Pre-Existing Word Documents
High Performance
- High Quality Conversion.
- High Quality Printing.
- High Processing Speed.
Other Technical Features
By using Spire.Doc, developers can build any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services, WinForms, Xamarin and Mono Android, to create and handle Word documents.Pro Edition $999
Pro Edition supports converting files from Word to PDF, HTML to Word, Word to HTML, Word to XPS, Word to Text, Word to Image, Word to SVG and Word to XML(the Word can be either .Doc or .Docx).
Standard Edition $799
Unlike Pro Edition, the Standard Edition doesn't support appending HTML to Word, print or conversion of any kind mentioned above.
Standard Edition doesn't work on .NET Core, Microsoft Azure.
Free Edition $0
Free version is limited to 500 paragraphs and 25 tables. This limitation is enforced during reading or writing files.
When converting word documents to PDF and XPS files, you can only get the first 3 page of PDF file.
GET STARTED
Free Trials for All Progress Solutions
Here is a brief summary of Spire.Doc for .NET features.
Technical Features
Spire.Doc for .NET enables developers/programmers to build WinForms, Web Services, ASP.NET and other type for .NET applications from version 2.0 to 4.5, .NET 5.0 and .NET 6.0 on 32-bit or 64-bit system.From Spire.Doc v 6.7.4, Spire.Doc starts to support .NET Core, .NET standard, MonoAndroid and Xamarin.iOS.
Generating, Writing, Editing and Saving
Spire.Doc for .NET enables quick generating, saving, writing and editing Word documents.- Generate and save Word documents (Word 97-2003, Word 2007, Word 2010, Word 2013 and Word 2016).
- Load and save document with macros, including .doc (Word 97-2003) document with macros and .docm(Word 2007, Word 2010, Word 2013 and Word 2016) document.
- Write and edit text and paragraphs.
Converting
Spire.Doc for .NET enables converting Word documents to most common and popular formats.- Bi-directional conversion Doc-Docx: Convert .doc document (Word 97-2003) to .docx document (Word 2007, Word 2010, Word 2013 and Word 2016) and vice versa.
- Bi-directional conversion Doc(x)-RTF: Convert .doc(x) document to RTF (Rich Text Format) and vice versa.
- Bi-directional conversion Doc(x)-TXT: Convert .doc(x) document to TXT (Plain Text) and enable to load TXT file and save as .doc(x) document.
- Bi-directional conversion Doc(x)-HTML: Convert .doc(x) document to HTML file and enable to load HTML file and save as .doc(x) document.
- Bi-directional conversion Doc(x)-Dot: Convert .doc(x) document to Dot and vice versa.
- Bi-directional conversion Doc(x)-XML: Convert .doc(x) document to XML and enable to load XML file and save as .doc(x) document.
- Unidirectional Conversion Doc(x)-XPS: Convert .doc(x) document to XPS document.
- Unidirectional Conversion: Doc(x)-EPUB: Convert .doc(x) document to EPUB (Digital Publishing).
- Unidirectional Conversion: Doc(x)-PDF: Convert .doc(x) document to PDF in high quality, including contents and formats.
Inserting, Editing and Removing Objects
Spire.Doc for .NET enables to inserting, editing and removing external objects in Word.- Find and replace specified strings.
- Copy and remove comment, bookmark, table, texts, paragraph or sections.
- Merge multiple Word documents into one.
- Protect documents to prevent from opening, editing, printing etc.
- Open and decrypt documents in protection.
- Extract texts, comments, images etc. from document.
- Load and save document with macros. Remove macros in document.
- Create form field including elements: cells, texts, radio button, dropdown list, checkbox etc.
- Fill form field by connecting data from xml file.
- Create and edit document properties.
- Clear macros in .doc and .docm document.
- Supports adding Latex Math Symbols,MathML Code to Word.
Formatting
Spire.Doc for .NET enables formatting contents in documents, including character, paragraphs, pages and whole document.- Format all characters in document, including fonts, sizes, colors, effects etc.
- Format paragraphs, including built-in styles, indents, spacing, bullets, alignment, headings and number list style etc.
- Format Word tables, including cell fonts and colors, cell background color, cell alignment, cell borders and column width/row height setting.
- Format Word page, including page breaks, border, margins, paper size and orientation.
- View document with different document view types, zoom percent and zoom types.
Mail Merge
Spire.Doc for .NET enables executing mail merge function to create records, orders and reports.- Perform simple mail merge fields (name and value) to create single item.
- Execute mail merge to create a group of data records with connecting customized data source.
- Populate document with data from .NET data source including DataSet, DataTable, DataView or any other files (for example, xml) to create large amounts of records or report by using mail merge.
Feature Details
Support | Word97~2003 | Word2007 | Word2010 | Word2013 | Word2016 | |||||||
Operation | Create New Document | Edit Existing Document | ||||||||||
Save to file | Save to stream | Save as web response | ||||||||||
Document Properties Setup | Document Print Setup | |||||||||||
Multiple Section | Page Break | |||||||||||
Document Copy | Multiple Document Concatenate | |||||||||||
Encrypt Document | Decrypt Document | |||||||||||
Globally Search | Globally Replace | |||||||||||
Mail Merge | Nested Mail Merge | Customize Mail Merge | Fill Field | |||||||||
Format and Style | Font | Color | Highlight | |||||||||
Indent | List | Text Alignment | ||||||||||
Building Style | Named Style | |||||||||||
Content | Image | Hyperlink | Comments | Bookmark | ||||||||
Table | Table of Content | Foot Note | Ole Object | |||||||||
Header (Text/Image/Table) | Footer (Text/Image/Table) | |||||||||||
CheckBoxFormField | DropDownFormField | TextFormField | Textbox | |||||||||
TextWaterMark | ImageWaterMark | Field (91 types) | HTML | |||||||||
Convert | Src Type | Open | Save | Dest Type | ||||||||
Doc | Dot | Docx | Xml | Txt | Html | Rtf | EPUB | |||||
Doc | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
Dot | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
Docx | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
Xml | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
Txt | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
Html | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
× | √ | × | × | × | × | × | × | × | × | × | ||
Rtf | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | √ | |
EPUB | × | √ | × | × | × | × | × | × | × | × | × |
Not supported in Standard Edition |
Request free customized demo just for you. |
High Quality Conversion
Convert Word to PDFTutorials / Live Demo / Orginial Word and PDF file Convert Word to HTMLTutorials / Live Demo / Orginial Word and HTML file Convert Word to ImageTutorials / Live Demo / Orginial Word and Image file Convert Word to XPSTutorials / Live Demo / Orginial Word and XPS fileMail Merge
Mail MergeTutorials / Live Demo / C# CodeSearch and Highlight
Search and HighlightTutorials / Live Demo / C# CodeHeader and Footer
Header and FooterTutorials / Live Demo / C# CodeCreate/Update Table
Create TableTutorials / Live Demo / C# Code
Beginners Guide is the first step towards learning the basic information of Spire.Doc for .NET |
Program Guide lists the detailed features of our Spire.Doc for .NET and you can search for the information you want. |
The Videos give an operation guide by video. You can check the produce step by step. |
|||||||||||
Frequently asked question for Spire.Doc of technical and function issues. |
We guarantee one business day Forum questions Reply. |
We guarantee one business day E-mail response. |
|||||||||||
Free Customized service for OEM Users. |
Skype name: iceblue.support |
Apply for a Free Trial License File. |
|||||||||||
- It relates to our components stored on E-iceblue online store.
- It costs less than 2 hours for us to complete it. If it costs more than 2 hours, please contact our sales@e-iceblue.com
This is the list of changelogs of Spire.Doc New release and hotfix. You can get the detail information of each version's new features and bug solutions.
Hot Fix Version: 12.10.13
Category | ID | Description |
Bug | SPIREDOC-10753 | Fixes the issue that paragraph indentation was lost after replacing paragraph text in bookmarks. |
Bug | SPIREDOC-10764 | Fixes the issue that the program was hanging when converting Word to PDF. |
Bug | SPIREDOC-10816 | Fixes the issue that some parts of the page content were lost after converting Word to PDF. |
Hot Fix Version: 12.10.5
Category | ID | Description |
New feature | - | Adds new methods to track the addition, deletion, and modification of document elements.
public void StartTrackRevisions(string author); public void StartTrackRevisions(string author, DateTime dateTime); public void StopTrackRevisions(); |
New feature | SPIREDOC-10831 | Supports modification of the revision author.
range.InsertRevision.Author = "e-iceblue"; |
Bug | SPIREDOC-9646 | Fixes the issue that the table content was missing when converting Word to PDF. |
Bug | SPIREDOC-10588 | Fixes the issue that the program threw an "ArgumentException" when converting Word to HTML. |
Bug | SPIREDOC-10727 | Fixes the issue of blank content when converting Word to PDF. |
Bug | SPIREDOC-10766 | Fixes the issue that the program threw a "Cannot insert an object of type Paragraph into the Document" exception when loading Word document. |
Hot Fix Version: 12.8.12
Category | ID | Description |
Bug | SPIREDOC-10738 | Fixes the issue that the customXml appeared after replacing text. |
Bug | SPIREDOC-10743 | Optimizes the file size for converting Word to OFD. |
Hot Fix Version: 12.8.2
Category | ID | Description |
Bug | SPIREDOC-10219 | Fixes the issue that extra blank pages are generated when converting Word to OFD. |
Bug | SPIREDOC-10365 | Fixes the issue that the VBA was lost after saving Docm. |
Bug | SPIREDOC-10389 | Fixes the issue that the application threw the exception "Wrong Word version" when loading Word documents encrypted using the WPS tool. |
Bug | SPIREDOC-10425 | Fixes the issue that the application threw the exception 'System. ArgumentNullException' when converting Word to PDF. |
Bug | SPIREDOC-10456 | Fixes the issue that the borderless text boxes added using the WPS tool were not successfully parsed. |
Bug | SPIREDOC-10554 | Fixes the issue that the images didn't display when adding HTML that contains the image paths starting with https. |
Bug | SPIREDOC-10587 | Fixes the issue that the application threw the exception "Unknown boolean value" when converting Word to PDF. |
Hot Fix Version: 12.7.3
Category | ID | Description |
Bug | SPIREDOC-10644 | Fixes the issue that the image data was failed to be filled during mail merge. |
Hot Fix Version: 12.6.10
Category | ID | Description |
New feature | - | Adds the Document.SaveFontFallbackRuleSettings() method to save the XML of the document's default font replacement rules.
Document document = new Document(); document.LoadFromFile(inputFile); document.SaveFontFallbackRuleSettings("FontReplacementRuleSettings.xml"); |
New feature | - | Adds the Document.LoadFontFallbackRuleSettings() method to load custom font replacement rules in XML format for conversion.
Document document = new Document(); document.LoadFromFile(inputFile); document.LoadFontFallbackRuleSettings(“CustomFontReplacementRuleSettings.xml”); document.SaveToFile(outputFile, FileFormat.PDF); |
Bug | SPIREDOC-10425 | Fixes the issue that the program threw "System.ArgumentNullException" error when converting Word documents to PDF. |
Bug | SPIREDOC-10544 | Fixes the issue that the images were not displayed after converting HTML to Word. |
Bug | SPIREDOC-10554 | Fixes the issue that images and hyperlinks were incorrect after converting Markdown to Docx. |
Bug | SPIREDOC-10587 | Fixes the issue that the program threw "Unknown boolex value" error when converting Word to PDF. |
Hot Fix Version: 12.6.1
Category | ID | Description |
New feature | - | Supports AI features: document generation, document polishing, document translation, abstract generation, summary creation, spelling check, object recognition, article continuation, as well as questions and answers. |
Bug | SPIREDOC-10196 | Fixes the issue that the layout was incorrect when printing Word documents. |
Bug | SPIREDOC-10211 | Fixes the issue that the fonts were incorrect after converting Word to HTML. |
Bug | SPIREDOC-10221 | Fixes the issue that the contents were incorrect after converting Word to OFD. |
Bug | SPIREDOC-10353 | Fixes the issue that the program threw a "System.NullReferenceException" when loading a Word document. |
Bug | SPIREDOC-10515 | Fixes the issue that the program threw a "System.NullReferenceException" when converting a Word document to PDF. |
Hot Fix Version: 12.5.5
Category | ID | Description |
New feature | - | Supports preserving FormField (CheckBox, DropDown, TextFormField) and SDT (CheckBox, Text, RichText, DropDownList, ComboBox) data when converting Word to PDF.
ToPdfParameterList.PreserveFormFields = true; |
New feature | - | Supports setting three display modes for comments (Hide, ShowInBalloons, ShowInAnnotations) when converting Word to PDF.
Document.LayoutOptions.CommentDisplayMode = CommentDisplayMode.ShowInAnnotations; |
Bug | SPIREDOC-10152 | Fixes the issue that the table widths and fonts are not correct when converting HTML to Word. |
Bug | SPIREDOC-10363 | Fixes the issue that the program threw "ArgumentOutOfRangeException" when loading Word documents. |
Bug | SPIREDOC-10371 | Fixes the issue that headings were missing after converting Word to HTML. |
Bug | SPIREDOC-10376 | Fixes the issue that table borders were missing after converting Word to HTML. |
Bug | SPIREDOC-10402 | Fixes the issue that tables were missing when converting Word to HTML. |
Bug | SPIREDOC-10421 | Fixes the issue that the program threw "InvalidCastException" exception when comparing Word documents. |
Bug | SPIREDOC-10427 | Fixes the issue that the header was lost after adding a watermark to Word and saving it to PDF. |
Hot Fix Version: 12.3.12
Category | ID | Description |
New feature | SPIREDOC-10091 SPIREDOC-10217 |
Supports loading and manipulating Markdown documents or converting Word documents to Markdown.
Document doc = new Document(); //load .md file doc.LoadFromFile("input.md"); //save to .md file //doc.SaveToFile("output.md", Spire.Doc.FileFormat.Markdown); //save to .docx file //doc.SaveToFile("output.docx", Spire.Doc.FileFormat.Docx); //save to .doc file //doc.SaveToFile("output.doc", Spire.Doc.FileFormat.Doc); //save to .pdf file doc.SaveToFile("output.pdf", Spire.Doc.FileFormat.PDF); doc.Close(); Document doc = new Document(); //load .docx file doc.LoadFromFile("input.docx"); //load .doc file //doc.LoadFromFile("input.doc"); //save to .md file doc.SaveToFile("output.md", Spire.Doc.FileFormat.Markdown); doc.Close(); |
Bug | SPIREDOC-10307 | Fixes the issue that setting Header.LinkToPrevious and Footer.LinkToPrevious did not take effect. |
Bug | SPIREDOC-10316 | Fixes the issue that some contents were lost after converting Word to PDF. |
Bug | SPIREDOC-10328 | Fixes the issue that the bookmarks were incorrect after converting Word to PDF. |
Bug | SPIREDOC-10370 | Fixes the issue that ReplaceInLine method throws "System.NullReferenceException". |
Hot Fix Version: 12.2.10
Category | ID | Description |
New feature | SPIREDOC-10052 | Supports parsing GIF format content in Word documents. |
Bug | SPIREDOC-10154 | Fixes the issue that incorrect bullets were retrieved. |
Bug | SPIREDOC-10160 | Fixes the issue that GIF format was converted to PNG format after mail merge. |
Bug | SPIREDOC-10233 | Fixes the issue that private font embedding failed when converting Word to PDF. |
Bug | SPIREDOC-10234 | Fixes the issue that characters were incorrect when converting Word to PDF. |
Bug | SPIREDOC-10235 | Fixes the issue that reading fonts failed when converting Word to PDF on MAC systems. |
Bug | SPIREDOC-10261 | Fixes the issue that the program threw "System.NullReferenceException" exception when loading a Docx document. |
Bug | SPIREDOC-10295 | Fixes the issue that the table would have extra borders after loading a Docx document and saving it as a new document. |
Bug | SPIREDOC-10305 | Fixes the issue that the program threw "System.ArgumentException" exception when comparing two Word documents. |
Bug | SPIREDOC-10308 | Fixes the issue that the program hung when getting page count. |
Bug | SPIREDOC-10318 | Fixes the issue that the program threw "System.InvalidCastException" when comparing two Word documents. |
Request free customized demo just for you. |
Tab 1
Upload
Convert to
Tab 2
Upload
Convert to
Tab 3
Tab 4
Data
Option
Tab 5
Agreement Start Date: | |
Agreement End Date: | |
Agreement Extension Date: | |
Documentation Start Date: | |
Documentation End Date: | |
downloads
|
Tab 6
Upload
Set text watermark
Text: | |
Font: | |
Font Size: | |
Color: | |
downloads
|
Set image watermark
Image: |
Click here to browse files
|
downloads
|
If you don't find the function you want, please fill in a form to request a free demo from us. Make sure the demo you want meets the following requirements:
- It is a small project that implements a particular scenario.
- It relates to our libraries stored on E-iceblue online store.
- It costs less than 2 hours for us to complete it.
- It is not a bug report.
- It is not a feature request.