Yes you can insert a paragraph,

Range r = doc.getRange();
Paragraph p = r.insertPargraph(new ParagraphProperties());
p.insertAfter("hell world", new CharacterProperties());

as far as what properties to set, go look at the javadoc of character and
paragraph properties

----- Original Message ----- 
From: "Alexandru, Ionita" <[EMAIL PROTECTED]>
To: "'POI Users List'" <[EMAIL PROTECTED]>; "'Ryan Ackley'"
<[EMAIL PROTECTED]>
Sent: Friday, April 16, 2004 10:30 AM
Subject: RE: Insert formated text!


>
> Very useful. Thanks...
> But Can I insert a paragraph... numbered, with alignament and another
> things like that?
>
> Thanks again :)
>
> And about the exclamation point...I usually use exclamation point after
> mail's subject...I don't know why :)
>
> >
> > CharacterProperties chp = new CharacterProperties();
> > chp.setBold(true); chp.setItalic(true);
> >
> > Range r = doc.getRange();
> > r.insertAfter("hello world!", chp);
> >
> >
> >
> > ----- Original Message ----- 
> > From: "Alexandru, Ionita" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 15, 2004 1:46 PM
> > Subject: Insert formated text!
> >
> >
> > >
> > >     How can I insert in a word document formated text, for example
> > > Bold text, or Italic, or to insert a bullet/numberd
> > paragraph. How can
> > > I do that?
> > >
> > >     Thanks!
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to