Fabio Alves de Araujo Ebner - Dna wrote:
my rows and columns is vary .. i need to create one label's print.. my user will select how many rows and column he wants to print.. and i need to create one(or more) label in each line from my table to print

Inserting columns into Word tables is a rather complex thing which is not supported by POI-HWPF. (One needs to adjust the properties of the table and its columns and currently there is no interface for that except going for the low level data structures.)

I'm not really sure, whether this is useful: If you have a limited set of different column numbers - maybe 1..20, you could create a document which includes 20 separate tables having 1, 2, 3, ..., 20 columns. When you need to deliver 15 columns, keep that table and remove all the others.

It may be possible to duplicate rows by inserting the "paragraphs" which represent the table in order to make - say - 10 rows out of the single template row. However, this may require some adjustment of the HWPF code.

A quick hack may be this: If you have a maximum row count, insert all those tables for different column counts with the maximum rows. Then to deliver for instance a 15 col x 10 row table: remove all except the 15 col table, fill the 10 rows, remove the rest of the rows.

Best wishes, Rainer
--

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

Reply via email to