Problem with Builder.insertHtml and tables

When I insert html into the document and then created a table, this table has the properties with the values of html table to be created in the document and thus loses the style that I gave.
For example, insert a simple table where the cells have an area of approximately 2 pixels, this is reflected in the table that I manually with the Builder.

I use aspose 4.0.

Example:

Builder.insertHtml("<table><tr><td>aaaaa</td><td>bbbbb</td></tr><tr><td>ccccc</td><td>ddddd</td></tr></table>")

' Here has the style of the other table
Builder.StartTable()
Builder.InsertCell()
Builder.write("GGGG")
Builder.EndRow()
Builder.EndTable()

Hi

Thanks for your inquiry. When you insert HTML into a document using DocumentBuilder, it inherits formatting of the HTML nodes and all following nodes inserted by DocumentBuilder will have the same formatting.
So, you should set formatting before starting the table.
Best regards.

ok, but I tried to do that, but could not find the right properties, and that I was the table with the wrong format.

Example:

Builder.CellFormat.ClearFormatting()
Builder.CellFormat.BottomPadding = 0
Builder.CellFormat.TopPadding = 0
Builder.CellFormat.LeftPadding = 0
Builder.CellFormat.RightPadding = 0

and don’t work, anyway have spaces between cells

Hi

Thank you for additional information. Have you tried also clearing RowFormat?

builder.RowFormat.ClearFormatting();

I think this should help you.
Best regards.

Thanks… now works