• Overview

    Spire.Doc for .NET is a professional Word .NET library specially designed for developers to create, read, write, convert and print Word document files from any .NET( C#, VB.NET, ASP.NET) platform with fast and high quality performance. As an independent Word .NET component, Spire.Doc for .NET doesn't need Microsoft Word to be installed on the machine. 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 and it has the ability to convert them to commonly used file formats like XML, RTF, TXT, XPS, EPUB, EMF, HTML and vice versa. Furthermore, it supports to convert Word Doc/Docx to PDF using C#, Word to SVG in high quality.

    The Differences between Standard and Pro Edition lie in the feature of Print function and File Conversion: Pro Edition supports converting files from Word to PDF, 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).

    Unlike Pro Edition, the Standard Edition doesn't support print or conversion of any kind mentioned above.

    Spire.Doc Overview
    MainFunctions

    Main Functions

    Only Spire.Doc, No Microsoft Office Automation

    Spire.Doc for .NET is a totally independent .NET Word class library which doesn't require Microsoft Office installed on system. Microsoft Office Automation is proved to be unstable, slow and not scalable to produce MS Word documents. Spire.Doc for .NET is many times faster than Microsoft Word Automation and with much better stability and scalability.

    By using Spire.Doc for .NET, users can save Word Doc/Docx to stream, save as web response and convert Word Doc/Docx to XML, RTF, EMF, TXT, XPS, EPUB, HTML, SVG and vice versa. Spire.Doc for .NET also supports to convert Word Doc/Docx to PDF and HTML to image.
    A common use of Spire.Doc for .NET is to create Word document dynamically from scratch. Almost all Word document elements are supported, including page, sections, headers, footers, footnotes, paragraphs, lists, tables, text, fields, hyperlinks, bookmarks, comments, images, styles, background settings, printing features, document settings and protection. Furthermore, drawing objects including shapes, textboxes, images, OLE objects and controls are supported as well.
    Spire.Doc for .NET enables developers to process pre-existing Word documents. It supports search and replace function, alignment, page break, fill field, document concatenate, document copy, print, complex and deeply nested mail merge, etc.
    By using Spire.Doc, developers can build any type of a 32-bit or 64-bit .NET application including C#, VB.NET, ASP.NET, Web Services and WinForms for .NET Framework version from 2.0 to 4.5.

    High Performance

    High performance for generating Word documents with huge pages. Superior performance support for reading and writing Word documents.

    Effect Screenshots

    • 01.png
    • 02.png
    • 03.png
    • 04.png
    • 05.png
    • 06.png
    • 07.png
    • 08.png
    • 09.png
  • Features

    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 on 32-bit or 64-bit system.

    Generating, Writing, Editing and Saving

    Spire.Doc for .NET enables quick generating, saving, writing and editing Word documents.

    Converting

    Spire.Doc for .NET enables converting Word documents to most common and popular formats.

    Inserting, Editing and Removing Objects

    Spire.Doc for .NET enables to inserting, editing and removing external objects in Word.

    Formatting

    Spire.Doc for .NET enables formatting contents in documents, including character, paragraphs, pages and whole document.

    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
    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 PDF Rtf EPUB
    Doc
    Dot
    Docx
    Xml
    Txt
    Html
    PDF × × × × × × × × × ×
    Rtf
    EPUB × × × × × × × × × ×
    Not supported in Standard Edition
  • Demo
  • Guideline
    Beginners Guide is the first step towards learning the basic information of Spire.Doc for .NET
    Main Functions contain the main features of our Spire.Doc for .NET and you can have brief information of it.
    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.
  • Support
    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 account: iceblue-support
    To ensure our products to be easier to use, we offer free customized demos to our customers. Please contact support@e-iceblue.com for the free demo. Make sure the demo you want meets the below requirements.
    • 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
    If you have tried out Spire.Doc and found it useful, please consider sharing your experience with others. By sharing your testimonial with us, you will not only help others to make the right decision but will also to earn rewards from us. Please send your testimonials to sales@e-iceblue.com.
  • What's New

    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.

    Free Trail to evaluate Spire.Doc here:

    Hot Fix Version:6.0.41

    Bug Fixes:

    • Fixes the issue that the page number was not updated after updating the field.
    • Fixes the issue that caused the process hanging when converting Word to PDF.
    • Fixes the issue that caused ArgumentException when converting to image.
    • Fixes the issue that the picture was shifted after converting to PDF.
    • Fixes the issue that caused NullReferenceException when loading file.
    • Fixes the issue that the color of a TextRange cannot be changed.
    • Fixes the issue that caused NullReferenceException using SaveToStream method after cloning document.
    • Fixes the issue that caused the exception "An item with the same key has already been added." when merging files.

    Hot Fix Version:6.0.315

    Bug Solutions:

    • Fixes the issue that caused the hyperlink on the image lost when using PS conversion method to convert Word to PDF.
    • Fixes the issue that caused "Cannot insert an object of type CustomXml into the Body" error when loading wordxml document.

    Hot Fix Version:6.0.31

    New Features:

    • Exposed the property Paragraph.Format.BeforeAutoSpacing.
    • Exposed the property Paragraph.Format.AfterAutoSpacing.

    Bug Fixes:

    • Fixed the issue that caused list number missing after cloning document.
    • Fixed the issue that caused NullReferenceException when applying the style for table.
    • Fixed the issue that caused wrong result after using table.AutoFit(AutoFitBehaviorType.AutoFitToWindow).
    • Fixed the issue that font cannot be embedded when using PS method to convert Word to PDF on Azure.
    • Fixed the issue that the quality of the image is not as good as original when saving to PDF.
    • Fixed the issue that caused ArgumentOutOfRangeException when using AppendHTML method.
    • Fixed the issue where form fields were overlaid when converting Word to PDF.
    • Fixed the issue that caused an extra chapter number when applying heading.
    • Fixed the issue that caused NullReferenceException when using the method LoadFromStream.
    • Fixed the issue that caused additional picture in INCLUDEPICTURE field after changing the size of picture.
    • Fixed the issue that the method GetText didn't get the text in shapes.
    • Fixed the issue that caused the exception "This is not a structured storage file" when using document.LoadFromStream(stream, FileFormat.Auto) to load a Html file.

    Hot Fix Version:6.0.21

    Bug Fixes:

    • Fixes the issue that the path in INCLUDEPICTURE filed was incorrect after Mail Merge.
    • Fixes the issue that caused ArgumentOutOfRangeException when converting Word to PDF.
    • Fixes the issue that replace OLE data doesn't work.
    • Fixes the issue that caused extra lines when converting Word to HTML.
    • Fixes the issue that caused EndOfStreamException when loading a document.
    • Fixes the issue that caused the process hanging when using document.PageCount.
    • Fixes the issue that caused the text format changed to bold when converting Word to HTML.
    • Fixes the issue that caused extra black shade in table cell when converting Word to HTML.
    • Fixes the issue that caused the "The format of input string was incorrect" exception while loading HTML.
    • Fixes the issue that the list was incorrect after converting HTML to Word.
    • Fixes the issue that caused the style missing when converting HTML to Word.
    • Fixes the issue that caused one line changed to two lines after saving Word to PDF.

    Hot Fix Version:6.0.8

    Bug fixes:

    • Fixes the issue that caused wrong font when converting HTML to Word.
    • Fixes the issue that caused hyperlink and image missing when converting Word to PDF.
    • Fixes the issue that caused the process hanging when getting pages count.
    • Fixes the issue that caused incorrect content after replacing text.
    • Fixes the issue that the image in textbox was stretched when saving to PDF.
    • Fixes the issue that the position of the text changed when converting Word to PDF.
    • Fixes the issue that caused exception "Specified method is not supported" when saving file to .doc format with the method SaveToFile("Sample.doc", FileFormat.Doc, Response, HttpContentType.Attachment).

    Hot Fix Version:6.0.5

    Bug fixes:

    • Fixes the issue that caused extra header and footer in pdf when converting rtf to pdf.
    • Fixes the issue that caused the "ShapePr 391 keys no implementation" exception when saving the file after setting background image.
    • Fixes the issue that only the word ole object can be opened after appending various ole objects.
    • Fixes the issue that the distance between the texts in two adjacent cells was incorrect when saving to pdf.

    Hot Fix Version:6.0.3

    Bug fixes:

    • Fixes the issue that caused additional blank pages when converting to PDF.
    • Fixes the issue where the image is truncated when converting to PDF.
    • Fixes the issue that caused additional border when converting to PDF.
    • Fixes the issue that caused IndexOutOfRangeException when using InsertTextFromFile method.
    • Fixes the issue that caused ArgumentOutOfRangeException when using the html that includes list tag to mail merge.
    • Fixes the issue that caused incorrect values in IF field after mail merge.

    Hot Fix Version:6.0.1

    New feature:

    • Published ShapeGroup class and properties of ShapeObject.

    Bug fixes:

    • Fixes the issue where the layout of paragraphs was wrong when converting to PDF.
    • Fixes the issue that caused text missing when converting Word to PDF.
    • Fixes the issue that caused the exception "Parameter is not valid" when converting Word to PDF on Azure.
    • Fixes the issue that caused the table border lost when converting to PDF.

    Version:6.0

    New feature:

    • DocOleObject, DocPicture and TextBox could inherit from ShapeObject.
    • DocOleObject implements the interface IDocOleObject.

    Table:

    • It need to set both the Width and WidthType when setting the width for Table or TableCell
    • The method table.AutoFitBehavior() is changed to the method table.AutoFit();
    • Publish the property ShapeObject.CharacterFormat
    • Adjusts the values in enum TextDirection.
    • In previous versions, it means text direction, but now it means the row direction. For example, when you set TopToBottom, it means writing row by row (in other words, top to bottom), and the direction TopToBottom is the default value.

    Background:

    • Inheritance relationship of BackgroundGradient changed from DocumentSerializable to VMLFill.
    • Cancel the "set" attribute for Background.Gradient.
    • Cancel the constructor for BackgroundGradient.
    • Cancel the "set" attribute for the format of TextBox.