.NET component
Read / Write / Convert Word files DOC, DOCX, RTF

Word Textron .NET

• File Formats: Word Document DOC, DOCX, RTF.
• High performance (~50 paragraphs per second).
• Does not require Microsoft Word.
• Royalty-Free. No extra cost for Server license.
• 6 Months: Free Support + Free Updates.
Evaluation Version
Download  |   Online Demo
Developer License - $175
Buy now  |   Price List

Skip Navigation Links

Word Textron .NET component



Learning Resources




FREE version

News & Releases

May 11, 2016
Version 2.4 Update
Word Textron .NET component
January 12, 2016
Version 2.4 Update
Word Textron .NET component
December 13, 2015
Version 2.4 Update
Word Textron .NET component
May 07, 2015
Version 2.4 Update
Word Textron .NET component
May 15, 2013
Version 2.4 Update
Word Textron .NET component
April 23, 2013
Version 2.4 Update
Word Textron .NET component
April 05, 2013
Version 2.4 New Release!
Word Textron .NET component

Save all document Images

"I have a template with form without values. How do I fill it? For example, let it be the list of movies. SKindly send me the code example. Thanks."
Karen Kendall

Here is the sample shows how to work with Form Fields.

  1. // The list of values.
  2. List<Product> Products = new List<Product>()
  3. {    
  4.     new Product() { ProductName = "Forrest Gump", CategoryIndex = 0, IsInStock = true },
  5.     new Product() { ProductName = "Harry Potter", CategoryIndex = 1, IsInStock = false },
  6.     new Product() { ProductName = "Call of Duty", CategoryIndex = 2, IsInStock = true },
  7.     new Product() { ProductName = "Titanic", CategoryIndex = 0, IsInStock = true },
  8.     new Product() { ProductName = "World Of Warcraft", CategoryIndex = 2, IsInStock = false }
  9. };
  10.  
  11. // Open the document with given name and get NodeList of first section
  12. Document Doc = Document.ReadDOC(Form1.SourceFolder + "FormFields - Fill.doc");
  13. NodeList Nodes = Doc.Sections[0].Nodes;
  14.  
  15. // For all products in our database...
  16. for (int i = 0; i < 5; i++)
  17. {
  18.     // Get next paragraph
  19.     Paragraph Par = (Paragraph)Nodes[i+1];
  20.  
  21.     // Search all textruns of this paragraph
  22.     for (int j = 0; j < Par.Textruns.Count; j++)
  23.     {
  24.         // If this textrun is of FormField type...
  25.         if (Par.Textruns[j].Type == TextrunType.FormField)
  26.         {
  27.             FormField FF = Par.Textruns[j].Fields.FormField;
  28.             FF.Textruns.Clear();
  29.  
  30.             // If it's textbox - insert Products[i].ProductName in it
  31.             if (FF.Type == FormFieldType.Textbox)
  32.                 FF.Textruns.Add(new Textrun(Products[i].ProductName));
  33.  
  34.             // If it's a droplist
  35.             // Change its current selected item to value of Products[i].CategoryIndex
  36.             if (FF.Type == FormFieldType.DropDown)
  37.                 FF.DropDown.CurrentItemIndex = Products[i].CategoryIndex;
  38.             
  39.             // If it's a checkbox
  40.             // Change its current state to value of Products[i].IsInStock
  41.             if (FF.Type == FormFieldType.Checkbox)
  42.                 FF.CheckBox.Checked = Products[i].IsInStock;
  43.         }
  44.     }
  45. }