poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxrblind <mxrbl...@gmail.com>
Subject Excel gets stuck with textboxes
Date Fri, 11 Apr 2008 20:29:34 GMT

Hi!! well, I can't insert a HSSFTextbox into a excel File. I can create it
but when I try to open it excel gets frozen. :sleep:

here's my code:

public void testTextBox(){
        HSSFWorkbook hwb = new HSSFWorkbook();
        HSSFSheet sheet = hwb.createSheet("new sheet");
        HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
        HSSFTextbox textbox1 = patriarch.createTextbox
        (new HSSFClientAnchor(0,0,0,0,(short)1,1,(short)2,2));
        textbox1.setString(new HSSFRichTextString("text string") );
        FileOutputStream fileOut = new FileOutputStream
        System.out.println("Your excel file has been generated");
     } catch ( Exception ex ) {System.out.println("Error:

Why is this happening? thanks!!
View this message in context: http://www.nabble.com/Excel-gets-stuck-with-textboxes-tp16628438p16628438.html
Sent from the POI - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message