Ok. I have figured out the first two points. I would
really appreciate if someone can help on the last two
points. I would simplify my questions.

Point 3. I have a nested table. In one of the rows of
this nested table, I have to put in some text followed
by an image and then some text. I am doing it this
way:

        ch = new Chunk("Eve ", new
Font(Font.HELVETICA, 10, Font.NORMAL, Color.BLACK));
        cell = new Cell(ch);
        Image gif = Image.getInstance("i_phone.gif");
        gif.setAlignment(Element.ALIGN_RIGHT);
        cell.add(gif);
        ch = new Chunk(":", new Font(Font.HELVETICA,
10, Font.NORMAL, Color.BLACK));
        cell.add(ch);
       
cell.setHorizontalAlignment(Element.ALIGN_RIGHT);
        cell.setBorder(Rectangle.LEFT);
        cell.setBorderColor(Color.BLACK);
        table.addCell(cell, 3, 0);

Now, this code prints 'Eve' on the first line, moves
to  second line and puts in the image and on the third
line the colon is printed. I need them all in one
line.

Point 4: In the same nested table, I try to set the
widths of the columns. However, the widths don't take
effect in the pdf. If I just have a single standalone
table without nesting, I can see the widths being
displayed as defined. :( 

Thanks.

--- Mirza Abbas Raza <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I need some help on issues I am having with tables.
> 
> 1. How can I draw a table without border but with
> lines between cells?
> 2. And how can I draw a table with border but
> without
> lines between cells?
> 3. In a cell, I have text followed by a small image
> and some text after it. I create the cell with a
> chunk. I do an add on the cell with the image. Then,
> I
> append a chunk. However, all these three don't
> appear
> on one line. They appear on three different lines.
> 4. In each cell of a particular column, I create a
> table. Inside these individual tables, I define the
> widths with table.setWidths(float). I different
> widths
> setup for each individual table. However, all the
> tables finally have the same width ratio.
> 
> Appreciate any help.
> 
> Thanks,
> 
> Abbas
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic
> Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to