DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39347>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39347 Summary: Create TextBox failed when define the font bold or italic Product: POI Version: 3.0-dev Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: HSLF AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When you create a ppt, create a slide and add a textbox, define the font bold or italic, the font size will trun to 1. It's too small to seen. Check the below code: public static void test1() { try{ File ppt = new File("D:/temp/a.ppt"); //HSLFSlideShow hshow = new HSLFSlideShow(new FileInputStream(ppt)); HSLFSlideShow hshow = new HSLFSlideShow(); SlideShow show = new SlideShow(hshow); Slide slide = show.createSlide(); TextBox box = new TextBox(); // set box content // box.setItalic(true); box.setText("Text Box!!"); // set the box's size Rectangle rec = new Rectangle(100,100,100,100); box.setAnchor(rec); // set text box's color //box.setFillColor(Color.BLACK); box.setBackgroundColor(Color.BLUE); // set text box's font box.setFontName("Arial", show); box.setFontSize(20); box.setBold(true); box.setFillColor(Color.BLUE); slide.addShape(box); // line shape Line line = new Line(); line.setAnchor(new java.awt.Rectangle(50, 50, 100, 20)); line.setLineColor(new Color(0, 128, 0)); line.setLineStyle(Line.LineDashDotSys); slide.addShape(line); // write the file hshow.write(new FileOutputStream(ppt)); Trace("Export successful! " + ppt.getAbsolutePath()); }catch(Exception e) { e.printStackTrace(); } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/
