Free Support Forum - aspose.com

Problem in tables

Hi Guys,



I am trying to create one table with ths peace of code



//Setting table parameters

int xPosition=100;

int yPosition=100;

int tableWidth=1000;

int tableHeight=0;

int columns=18;

int rows=1;

float borderWidth=1;



Table table = slide.getShapes().addTable(xPosition,yPosition,tableWidth,tableHeight,columns,rows,borderWidth,Color.BLACK);







here u can see i have taken table height as 0 but still getting one default height but i want to reduce height table so how i can reduce the height.



Thanks

luvy

Dear luvy,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You cannot make the table height smaller than its minimum height.

For illustration purpose, create a table in MS-PowerPoint, and try to reduce its height, you will see, you are unable to reduce height further after its minimum height has reached.

In order to reduce it further, you need to reduce font height inside the table cells. And this holds for Aspose.Slides too.

hey thanks man its working fine