pbs wrote:
> Hi.
>
> I am trying to se the first column in a table to a different width. The
> table can have a different number of columns each time the program is run,
> for example it may have 5 columns one time, then depending on the date it is
> presenting it may have 7.
>
> This works fine using by passing the number of columns while creating the
> table object as follows :
> PdfPTable table = new PdfPTable(intColumns);
>
> All columns are of the same width. However, I would like the first column to
> be narrower. If I always knew the number of columns I could use this
> PdfPTable table = new PdfPTable (new float [] { 1.0f, 2.0f, 2.0f, 2.0f, 2.0f
> });
>
> Is there a way around this?
Why do you use a hardcoded float[]?
If you can create a table with intColumns,
surely you can create a float array like this:
float[] columns = new float[intColumns];
and then fill that float.
Questions like this are off-topic on the list.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/