Plans | Login    

Briefing Search
Keyword:
Category:

       

    
Author Details
zarfishan zahid
seo@aspose.com
aspose.com

C# Code to Build Table inside MS Word by Applying Table Styles


This Tip shows how .net developers can Build a New table inside MS Word by applying Table style & Expand the formatting from Styles onto to Rows & Cells of the Table using C# & VB.NET.

BriefingWire.com, 11/06/2013 - This technical tip explains how developers can build a table with applying Table Style & expand styles to rows & cells of the table. A table style defines a set of formatting that can be easily applied to a table. Formatting such as borders, shading, alignment and font can be set in a table style and applied to many tables for a consistent appearance. Aspose.Words supports applying a table style to a table and also reading properties of any table style. Table styles are preserved during loading and saving in the following ways:

- Table styles in DOCX and WordML formats are preserved when loading and saving to these formats.

- Table styles are preserved when loading and saving in the DOC format (but not to any other format).

- When exporting to other formats, rendering or printing, table styles are expanded to direct formatting on the table so all formatting is preserved.

In Aspose.Words you can apply a table style by using any of the Table.Style, Table.StyleIdentifier and Table.StyleName properties.

To view the code and more details visit the following page:

http://docs.aspose.com:8082/docs/display/wordsnet/Working+with+Table+Styles

More about Aspose.Words for .NET

Aspose.Words is a word processing component that enables Java & .NET applications to read, write and modify Word documents without using Microsoft Word. Other useful features include document creation, content and formatting manipulation, mail merge abilities, reporting features, TOC updated/rebuilt, Embedded OOXML, Footnotes rendering and support of DOCX, DOC, WordprocessingML, HTML, XHTML, TXT and PDF formats (requires Aspose.Pdf). It supports both 32-bit and 64-bit operating systems. You can even use Aspose.Words to build applications with Mono.

More about Aspose.Words for .NET

- Homepage of Aspose.Words for .NET: http://www.aspose.com/.net/word-component.aspx

- Download Aspose.Words for .NET: http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

- More Technical Tips about Working with Tables: http://docs.aspose.com:8082/docs/display/wordsnet/Working+with+Tables

Contact Information

Aspose Pty Ltd,

Suite 163, 79 Longueville Road

Lane Cove, NSW, 2066

Australia

http://www.aspose.com/

sales@aspose.com

Phone: 888.277.6734

Fax: 866.810.9465

 
 
FAQs | Contact Us | Terms & Conditions | Privacy Policy
© 2026 Proserve Technology, Inc.