You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Alexandru, Ionita" <ga...@cstdev.cst.ro> on 2004/04/15 19:46:27 UTC
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!
RE: Insert formated text!
Posted by "Alexandru, Ionita" <ga...@cstdev.cst.ro>.
Ok! Thanks...
sorry, but every time when I'm writing a new mail, and after I send it,
I remember that the mail is not complete...
Also in previous mail I should ask you about creating a table...how can
I do that?
Thanks again :D
>
> 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" <ga...@mail.cst.ro>
> To: "'POI Users List'" <po...@jakarta.apache.org>; "'Ryan
> Ackley'" <sa...@apache.org>
> 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" <ga...@mail.cst.ro>
> > > To: <po...@jakarta.apache.org>
> > > 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: poi-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org
Re: Insert formated text!
Posted by Ryan Ackley <sa...@cfl.rr.com>.
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" <ga...@mail.cst.ro>
To: "'POI Users List'" <po...@jakarta.apache.org>; "'Ryan Ackley'"
<sa...@apache.org>
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" <ga...@mail.cst.ro>
> > To: <po...@jakarta.apache.org>
> > 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: poi-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org
RE: Insert formated text!
Posted by "Alexandru, Ionita" <ga...@cstdev.cst.ro>.
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" <ga...@mail.cst.ro>
> To: <po...@jakarta.apache.org>
> 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: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org
Re: Insert formated text!
Posted by Ryan Ackley <sa...@cfl.rr.com>.
CharacterProperties chp = new CharacterProperties();
chp.setBold(true);
chp.setItalic(true);
Range r = doc.getRange();
r.insertAfter("hello world!", chp);
----- Original Message -----
From: "Alexandru, Ionita" <ga...@mail.cst.ro>
To: <po...@jakarta.apache.org>
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: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org