We are using itextsharp in our reporting architechture. Now i 
am creating a report in RTF.
 
I have found following problems
 
1. I want to show Page number  as  'Page n of m' in footer in rtf Report.
  
      Please suggest can we add page number (in 'Page n of m' 
      format) using RtfPageNumber.cs or  RtfTotalPageNumber.cs.
 
2. When i add table in footer of document it's not show properly
 
The code for attached table for footer
 
Table headerTable = new Table(3);
headerTable.AddCell("Document header");
Cell pageNumberCell = new Cell();
pageNumberCell.Add(new iTextSharp.text.rtf.RtfPageNumber("Page", this.DefaultFont));
pageNumberCell.Add(new Chunk(" of "));
pageNumberCell.Add(new iTextSharp.text.rtf.field.RtfTotalPageNumber());
headerTable.AddCell(pageNumberCell);
headerTable.AddCell("Company Name");
headerTable.AbsWidth = _pageFooter.CommonTable.AbsWidth;
HeaderFooter header = new iTextSharp.text.rtf.RtfHeaderFooter(headerTable);
_reportDocument.RtfDocument.RtfWriter.Footer = header;
  
but it the result looks like
 
Rectangle: 0x0 (rot: 0 degrees)
 
Please suggest how i add table in pagefooter and how i add pagenumber in RTF Report
 
  
Anjana
Software Engineer



How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to