You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by smer4 <ch...@web.de> on 2011/05/13 20:22:48 UTC

how to set a CTText with xml:space?

I need to set a strukture like that:

w:r
w:t
xml:space
#significant-whitespace 

this is a CTR element what contains a one space. What are the syntax to do
that? I try someth. like that:

CTText t = r.addNewT();

t.setSpace??? seemd so be someth different...
and i dont find any dokumentation bekause the ooxml.jar is "automated
generated"
who knows, please answer with the correct code pls!

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/how-to-set-a-CTText-with-xml-space-tp4393882p4393882.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


Re: how to set a CTText with xml:space?

Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 13 May 2011, smer4 wrote:
> I need to set a strukture like that:
>
> w:r
> w:t
> xml:space
> #significant-whitespace
>
> this is a CTR element what contains a one space. What are the syntax to do
> that? I try someth. like that:

Your best bet firstly is to try to create a file using office that has the 
bits in you want, and then see what gets written to the xml. Then create 
equivalent xmlbeans objects for those entries.

Nick

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