iTextSharp and VBnet question about headers

Posted by bpSz on Stack Overflow See other posts from Stack Overflow or by bpSz
Published on 2010-03-17T00:31:35Z Indexed on 2010/04/04 15:03 UTC
Read the original article Hit count: 602

Filed under:
|
|
|
|

Hello!

I'm wondering how can I put a header into my pdf file, cause i've tried the tutorials from here:

http://itextsharp.sourceforge.net/tutorial/ch04.html

And it have not worked.

Ive done this:

Dim head As New HeaderFooter(New Phrase("This is page: "), False) head.Border = Rectangle.NO_BORDER document.Header = head

But VS2008 says that HeaderFooter it's not defined (line 1), and Footer it's not a member of "iTextSharp.text.document" (line 3).

I've already included the imports at the begining of my code and i don't have any other problems with the iTextsharps (i mean that it is working apart of the header problem):

Imports iTextSharp.text Imports iTextSharp.text.pdf Imports System.Data.SQLite Imports System.IO

So please, can anyone explain to me how can i set a header for my pages?

Regards

© Stack Overflow or respective owner

Related posts about itextsharp

Related posts about pdf