We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem of Tables 2 images

I cought something interesting while using Aspose.Word to convert tables to images.

images processed by the solution following:

<A href="https://forum.aspose.com/t/51698</A></P> <P>but the line in the left side of the tables dissappeared.</P> <P>Anybody knows how to resolve this problem?</P>

Hi Stephen,

Thanks for your inquiry. You can achieve table's border setting like this:
Document doc = new Document(MyDir + "Table.EmptyTable.doc");
Table table = (Table)doc.GetChild(NodeType.Table, 0, true);

// Clear any existing borders from the table.
table.ClearBorders();

// Set a green border around and inside the table.
table.SetBorders(LineStyle.Single, 1.5, Color.Green);

doc.Save(MyDir + “Table.SetAllBorders Out.doc”);


Follow up the link for further details:
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.tables.table.setborders.html

Hi
Stephen,


Thanks for your inquiry. I managed to reproduce this issue on my side. In case your input document is in OOXML format, the only work around I can see here is to manually set the Indent From Left to greater than 0.0" as can be seen here:



I hope, this will help.

Best Regards,