help with tables

View: New views
3 Messages — Rating Filter:   Alert me  

help with tables

by Fabio Alves de Araujo Ebner - DNA Solution :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi. i try do insert a new Row or Cell into a word file table.. but i can't do.. i can got the tabele, row, cel. replace de text inside. but can't insert a new Cell(column) or Row..


help please

Re: help with tables

by Jason Harrop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unless you have to output in the binary doc format, I'd consider doing
this using the XML representation.

You could use try using the recent POI OOXML beta, or you could try
docx4j.  docx4j uses poi's hwpf to convert a binary doc to Java, and
then you have a strongly typed object model with which to manipulate
the table.

Three caveats:

1.  docx4j's code for converting a binary doc works, but doesn't
convert everything that hwpf currently represents (you will need to do
a little work to implement table conversion)

2.  the code is currently only in SVN, so you'd have to build that
(we'll do a release next week)

3.  i'm probably biased, since docx4j is my project.

cheers

Jason

On Sat, Jul 19, 2008 at 4:29 AM, Fabio Alves de Araujo Ebner - Dna
<fabio.ebner@...> wrote:
> hi. i try do insert a new Row or Cell into a word file table.. but i can't do.. i can got the tabele, row, cel. replace de text inside. but can't insert a new Cell(column) or Row..
>
>
> help please

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: help with tables

by Jason Harrop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, docx4j v2 release does a basic conversion of a binary doc table to
OpenXML, using hwpf.

On Sat, Jul 19, 2008 at 10:55 PM, Jason Harrop <jharrop@...> wrote:

> Unless you have to output in the binary doc format, I'd consider doing
> this using the XML representation.
>
> You could use try using the recent POI OOXML beta, or you could try
> docx4j.  docx4j uses poi's hwpf to convert a binary doc to Java, and
> then you have a strongly typed object model with which to manipulate
> the table.
>
> Three caveats:
>
> 1.  docx4j's code for converting a binary doc works, but doesn't
> convert everything that hwpf currently represents (you will need to do
> a little work to implement table conversion)
>
> 2.  the code is currently only in SVN, so you'd have to build that
> (we'll do a release next week)
>
> 3.  i'm probably biased, since docx4j is my project.
>
> cheers
>
> Jason
>
> On Sat, Jul 19, 2008 at 4:29 AM, Fabio Alves de Araujo Ebner - Dna
> <fabio.ebner@...> wrote:
>> hi. i try do insert a new Row or Cell into a word file table.. but i can't do.. i can got the tabele, row, cel. replace de text inside. but can't insert a new Cell(column) or Row..
>>
>>
>> help please
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price