The setRowHeight function is not working for me.  I have looked over
the forums and have found that Yegor suggests putting it at the very
end.  Still no effect for me on 3.7beta2, nor 3.7beta3.

Sample code (height var has no effect):

 SlideShow ppt = new SlideShow();
 Slide slide = ppt.createSlide();

 Table table = new Table(4, 4);
 int width = 50;
 int height = 135;
 TableCell cell = null;
 for (int i = 0; i < table.getNumberOfRows(); i++) {
     for (int j = 0; j < table.getNumberOfColumns(); j++) {
         cell = table.getCell(i, j);

         RichTextRun r = cell.getTextRun().getRichTextRuns()[0];
         r.setText("helloworld");
         r.setFontName("Arial");
         r.setFontSize(10);
         r.setTextOffset(0);    
     }
 }
 table.setAllBorders(new Line());
 slide.addShape(table);

 //set table dimensions         
 for (int i = 0; i < table.getNumberOfRows(); i++)
table.setRowHeight(i, height);
 for (int i = 0; i < table.getNumberOfColumns(); i++)
table.setColumnWidth(i, width);
 table.moveTo(50,50);


//save changes in a file
try {
        FileOutputStream out = new FileOutputStream("test.ppt");
                ppt.write(out);
                out.close();
} catch (IOException ex) {
                System.out.println("Trouble writing or closing out file!\n");
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to