The following header prints me "[EMAIL PROTECTED]" string instead of the image
protected HeaderFooter getHeader() throws Exception
{
javax.swing.ImageIcon ii = new javax.swing.ImageIcon("jg.JPG");
com.lowagie.text.Image i =
com.lowagie.text.Image.getInstance(ii.getImage(),null);
Table headerTable = new Table(3);
headerTable.addCell("");
headerTable.addCell("");
Cell imageCell = new Cell();
imageCell.add(i);
headerTable.addCell(imageCell);
HeaderFooter hf = new RtfHeaderFooter(headerTable);
hf.setAlignment(Element.ALIGN_RIGHT);
return hf;
}
Whats going wrong here?
Thanks
<<winmail.dat>>
