Hello
Is it possible to mix bulleted text with no-bulleted text in one TextRun?
Such as :
- my sample paragraph
with bullet
my sample paragraph
without bullet
I have tried something but it does not work.
Sample code :
SlideShow ppt = new SlideShow();
Slide s = ppt.createSlide();
TextBox tb = new TextBox();
tb.setAnchor(new Rectangle(10,10,500,300));
tb.setText("my sample paragraph with bullet");
RichTextRun rtr = tb.getTextRun().getRichTextRuns()[0];
rtr.setFontName("Times New Roman");
rtr.setFontSize(12);
rtr.setBullet(true);
rtr = tb.getTextRun().appendText("\n");
rtr.setFontName("Times New Roman");
rtr.setFontSize(12);
rtr = tb.getTextRun().appendText("\n");
rtr.setFontName("Times New Roman");
rtr.setFontSize(12);
rtr = tb.getTextRun().appendText("my sample paragraph without bullet");
rtr.setFontName("Times New Roman");
rtr.setFontSize(12);
rtr.setBullet(false);
s.addShape(tb);
FileOutputStream out = new FileOutputStream("report/slideshow.ppt");
ppt.write(out);
out.close();
Thanks and regards
MG
--
View this message in context:
http://www.nabble.com/HSLF-need-help-for-bullet-in-RichTextRun-tp17650104p17650104.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]