CS0246: The type or namespace name 'HeaderFooter' could not be found RRS feed

  • Question

  • User-415289486 posted
    @using iTextSharp.text; 
    @using iTextSharp.text.pdf; 
    @using iTextSharp.text.html; 
    HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true); 
    doc.Footer = footer; 
    HeaderFooter header = new HeaderFooter(new Phrase("Image scanned on " + DateAndTime.Now.ToString("dd/MM/yyyy")), false); 
    doc.Header = header;  
    for (int i = 1; i <= 2; i++) { 

    How does one implement a header/footer on a pdf?


    Sunday, February 26, 2012 4:28 AM

All replies

  • User197322208 posted


    Sunday, February 26, 2012 4:34 AM
  • User-415289486 posted

    Thanks for your response. but i thought i had posted this quetion on webmatrix forum, Or am i being redirected to this "component discussion" forum?

    Now the link that you have just given is in VB. how do i use it in C#?

    Monday, February 27, 2012 3:09 AM
  • User-1977040121 posted

    Use iTextSharp.dll version

    Hope your issue solve


    Tuesday, May 22, 2012 1:51 AM