Make sure you are using a PdfContentByte obtained from the current writer.  Something 
like:
PdfContentByte cb = writer.getDirectContent();

See the Example Chap1001.java in the tutorial at
:http://www.lowagie.com/iText/tutorial/ch10.html#simplegraphics

If your trying to have a line below your header, you would probably be better off just 
setting the
bottom border on the header cells.

Good luck.
----- Original Message ----- 
From: "Kim, Glen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 08, 2004 10:13 AM
Subject: [iText-questions] Adding Horizontal Line to Table


> Apologies if this was asked and answered before.
>
> I am trying to add a horizonal line to a table as a delimiter for my table
> header.
>
> Here is the code snippet that I used but is not working for me:
>
> Graphic grx = new Graphic();
>      grx.setHorizontalLine(100,100);
>      Cell lineCell = new Cell(grx);
>      lineCell.setColspan(16);
>      lineCell.setBorderWidth(15);
> aTable.addCell(lineCell,new Point(3,0));
> aTable.endHeaders();
>
> Any help or alternative suggestions would be greatly appreciated.
>
>




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to