Quoting Katharina Garbe <[EMAIL PROTECTED]>:
> I guess I better include the code I
> have written ...
Where is the line that instantiates a new Table-object>
> int groesse= headlines.size();
What is the value of groesse?
Maybe you can instantiate the table here:
Table datatable = new Table(groesse);
> float[] headerwidths= new float [groesse];
> for (int i = 0; i < groesse; i++)
> {
...
> }
>
> datatable.setWidths(headerwidths);
...
> My compiler always gets me the message: "Wrong number of columns."
This is the code responsible for the message:
public void setWidths(float[] widths) throws BadElementException {
if (widths.length != columns) {
throw new BadElementException("Wrong number of columns.");
}
...
So you are passing M columnwidths to a table with N colums
(M not equal to N).
Bruno
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions