https://issues.apache.org/bugzilla/show_bug.cgi?id=50071

           Summary: Table.setRowHeight has no effect on row height
           Product: POI
           Version: 3.7-dev
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSLF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


The setRowHeight function does not work in 3.7beta2, nor 3.7beta3.

Sample code (height variable has no effect):

 int height = 135;

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

 Table table = new Table(4, 4);
 int width = 50;
 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");
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to