Hmm.  But shouldn't the following add a cell with border around it, whether
or not the autoFill has been set? (it doesn't.)

Cell emptyCell = new Cell(" ");
emptyCell.setBorderWidth(1);
emptyCell.setBorder(Cell.TOP | Cell.BOTTOM | Cell.LEFT | Cell.RIGHT);
table.addCell(emptyCell);

    John

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "John Watson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 09, 2002 12:25 AM
Subject: [iText-questions] Re: table problems with the latest release


> John Watson writes:
>
> > With the latest release, empty cells in tables seem to never get borders
> > around them.  I have tried everything that I can think of to make
borders
> > appear around them, but they never show up.  How can I do this?
>
> I made a design choice.
> There is a parameter in class Table mAutoFillEmptyCells.
> It was true by default, I changed it to false, increasing
> performance. I documented this in the tutorial:
> http://www.lowagie.com/iText/tutorial/ch05.html#nested
>
> As you can see we have to set a parameter 'AutoFillEmptyCells'
> to true. This automagically fills the empty cells with a cell that
> follows the default cell layout. If we forget to do this (as in
> the second table in the example), there will be no extra cells added
> and rows that don't contain any cells will be omitted. In the example,
> the first row is not shown, because it is empty.
>
> Remark: this will only fill cells that weren't added to the
> table. Maybe I should add something to the autoFillEmptyCells
> method to replace empty cells without layout with an empty
> cell with layout.
>
> kind regards,
> Bruno
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to