locked
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++) { 
    doc.NewPage(); 
    .....

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

     

    Sunday, February 26, 2012 4:28 AM

All replies

  • User197322208 posted

    http://stackoverflow.com/questions/2598917/itextsharp-is-missing-headerfooter-class

    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 4.1.2.0

    Hope your issue solve

     

    Tuesday, May 22, 2012 1:51 AM