Free Support Forum -

Add a Style to an entire Table

Hi guys

In our application we insert tables using the HTML format to a document using builder.InsertHtml. When the insertion is completed the table is created and stored in the document using the Table Web table style and text set as normal.

What I would like to be able to do is change the style of the entire table to a new style so that it is formatted in one go (The web style is not formal enough for the documents we produce)

Eg the code


" & htmlTableString & "


Dim table As Aspose.Words.Table = CType(builder.CurrentParagraph.PreviousSibling, Aspose.Words.Table)

'Do something on the Table onbject to change the complete style of the table

I searched the forum but didn't find any clues, is this functionality possible?



Dear Andrew,

Table styles are not yet supported by Aspose.Words but will be available a bit later. Other types of styles are supported and you can manipulate them as you need.