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

Free Support Forum - aspose.com

Table formatting

Hi,


Is it possible to duplicate the below behavior ( defined in ooxml ) in Aspose for creating a table. I was able to deal with the width, indentation, shading but confused about the other properties Borders, TableLayout and TableLook.

Table tblScheduleDetails = new Table(
new TableProperties(
new TableWidth() { Width = “10100”, Type = TableWidthUnitValues.Dxa },
new TableIndentation() { Width = 108, Type = TableWidthUnitValues.Dxa },
new TableBorders(
new TopBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U },
new LeftBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U },
new BottomBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U },
new RightBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U },
new InsideHorizontalBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U },
new InsideVerticalBorder() { Val = BorderValues.Single, Color = “auto”, Size = (UInt32Value)4U, Space = (UInt32Value)0U }
),
new Shading() { Val = ShadingPatternValues.Percent5, Color = “auto”, Fill = “F3F3F3” },
new TableLayout() { Type = TableLayoutValues.Fixed },
new TableLook() { Val = new HexBinaryValue() { Value = “01E0” } }));

Thanks,
Neha
Hi Neha,

Thanks for your inquiry. Please refer to the following article to work with table's border and formatting. Hope this helps you.

Applying Formatting to Table, Row and Cell