Hi All,
 
I need to add the image in header with text. Text is fine here but once I try to add the image its not taking.
Here is code what I wrote to implement image in header
 
 try{
   jpg = com.lowagie.text.Image.getInstance("c:/Reports/logo.jpg");
  }catch(Exception e){System.out.println(e);}
  Table headtable = new Table(1);
   headtable.addCell(jpg);
   RtfHeaderFooter header = new RtfHeaderFooter(headtable);
   header.setBorder(header.NO_BORDER);
   doc.setHeader(header);
Please someone help me, if possible give me small chunck of example code.
 
Thanks & Regards
Dharmendra Sharma
NextLinx India Pvt Ltd,
NITON, No 11,
Palace Road, Bangalore - 52.
Ph :- 91-80-51131580
 

Reply via email to