It may be trivial for someone who knows what they are doing in VB. I am stuck
at a client site and have been asked to code some VB even though I am java
guy...
I have tried the following within my reporting Module
Private WithEvents myEvent As PdfPageEvent ' No errors from this line
Then implement the onEndPage as follows
Private Sub onEndPage( ByVal writer As PdfWriter , ByVal document As
document ) Handles myEvent.onEndPage
'Add text to footer
End Sub
When trying to declare the onEndPage as handling the event I get the
following error
"Event 'onEndPage' cannot be found"
Even though the code assist sugggested it as the proper way to handle said
method.
Is there a sample out there somewhere that uses VB to do this?
Thanks in advance.
Paulo Soares-3 wrote:
>
> Doesn't it work with page events? See
> http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php.
> It should be trivial to convert to C# or VB.
>
> Paulo
>
>> -----Original Message-----
>> From: oggieone [mailto:[email protected]]
>> Sent: Monday, May 04, 2009 3:46 PM
>> To: [email protected]
>> Subject: [iText-questions] PageEvents in VB - Headers and Footers.
>>
>>
>> What is the best way to add headers and footers with iText in VB?
>> I tried this without any success (from a sample on the web).
>>
>> Dim footer As HeaderFooter = new HeaderFooter(new
>> Phrase("This is page: "),
>> true)
>> footer.setBorder( 1 )
>> document.Footer = footer
>>
>> Nothing shows up. I even set all the margins to 0's to see if
>> it was burried
>> somewhere.
>>
>> I know how to do it in Java but I find myself stuck having to
>> do this in VB.
>>
>> Thanks in advance.
>
>
> Aviso Legal:
>
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem.
>
>
>
> Disclaimer:
>
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
--
View this message in context:
http://www.nabble.com/PageEvents-in-VB---Headers-and-Footers.-tp23369955p23372969.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/