Hi,
attached a sample slide generated using aspose slides 1.8.0 fix latest version. I am generating the table with bulleted paragraphs with the margins set at 0. but I find a lot of gaps wthin the cells in the table.
I dont know why this is happening? please suggest.
the sample code is
Table table=slide.getShapes().addTable(xPosition,yPosition,tableWidth,tableHeight,
columns,rows,borderWidth,java.awt.Color.black);
table.setColumnWidth(0,2000);
table.setColumnWidth(1,2000);
while (resultset.next()){
if (count == table.getRowsNumber()){
count =0;
column=1;
}
TextFrame tf3=table.getCell(column,count).getTextFrame();
tf3.setMarginTop(0f);
tf3.setMarginLeft(0f);
tf3.setMarginRight(0f);
tf3.setMarginBottom(0f);
tf3.setWrapText(true);
Paragraph para = tf3.getParagraphs().get(0);
port=para.getPortions().get(0);
port.setFontColor(java.awt.Color.black);
//Setting the font height to 55
port.setFontHeight((short)10);
para.setHasBullet((short) 1);
//Setting the bullets color
para.setBulletColor(java.awt.Color.red);
//Setting the bullet height
para.setBulletHeight( (short) 125);
String value = rset1.getString(2);
port.setText(value);
}
Thanks,
prashanth