Page 1 of 1

setting table columns width manually

PostPosted: Fri Jan 23, 2015 11:53 pm
by ericomtx
Hi

I am creating a table for my docx as follows :

http://blog.iprofs.nl/2012/09/06/creati ... th-docx4j/

when I code the sample => "Adding a table"
the code works fine, the docx is created normally

but when I use the sample "Adding borders to a table" I face an issue
the generated table gets a pretty big width (31,84 cm) -- this using "LibreOffice"

I can change this after the docx is opened but I can't use this way out, I need the table to be fully ok once I open the docx

if I use OpenOffice .. it writes its content but does not recognize the table ... only writes its content as text

my questions are the following please :
1. I'm digging on how to force my table with a specific width

2. Is there a way to configure the docx for having the same layout on all "office" like apps ?

Thks
Érico