For a better understanding of problem there is a part of code in ppt, how to implement it on PPTX
public void export( TableComponent table )
{
int slideWidth = slide.getBackground().getWidth() - AsposeUtility.DEFAULT_LEFT_MARGIN * 5;
int slideHeight = slide.getBackground().getHeight();
int columnCount = 1;
int rowCount = 7;
float border = 0;
int x = AsposeUtility.DEFAULT_LEFT_MARGIN * 2;
int y = 1700; //slideHeight - slideHeight / 3;
int width = slideWidth;
int height = 0;
try
{
Table aTable = slide.getShapes().addTable( x, y, width, height, columnCount, rowCount, border,
java.awt.Color.WHITE );
Row row;
for( int i = 0; i < table.getRowCount(); i++ )
{
row = table.getRow( i );
final Cell cell = row.getCell( 0 );
if(i>=rowCount-1)
{
addCell( new CellImpl() {
@Override
public Object getValue()
{
return "...";
}
@Override
public Style getStyle()
{
return cell.getStyle();
}
}, aTable, rowCount - 1 );
break;
}
addCell( cell, aTable, i );
}
aTable.setColumnWidth( 0, slideWidth );
for( int i = 0; i < aTable.getRowsNumber(); i++ )
{
aTable.setRowHeight( i, 10 );
}
}
catch( AsposeLicenseException exception )
{
log.error( exception.getMessage(), exception );
return;
}
}
private void addCell( Cell cell, Table aTable, int rowIndex )
{
Style style = cell.getStyle();
com.aspose.slides.Cell aCell = aTable.getCell( 0, rowIndex );
Paragraph paragraph = aCell.getTextFrame().getParagraphs().get( 0 );
paragraph.setText( cell.getValue().toString() );
paragraph.setAlignment( com.aspose.slides.TextAlignment.RIGHT );
Portion port = paragraph.getPortions().get( 0 );
port.setFontBold( false );
if(style != null){
port.setFontColor( style.getFontColor() );
port.setFontHeight( style.getFontHeight() );
port.setFontIndex( AsposeUtility.getFontIndex( presentation, style.getFontName() ) );
}else{
style = new Style();
style.setFontName( AsposeUtility.FONT_NAME_SEGOE );
port.setFontColor( Color.BLACK );
port.setFontHeight( (short)10 );
port.setFontIndex( AsposeUtility.getFontIndex( presentation, style.getFontName() ) );
}
}