gianluigi
07-09-2004, 06:31 AM
Hi,
I have a problem om use the itextsharp DLL.
I need insert an Header and a footer with table and image. This is possible and on the instruction manual I see I need implement an event on the page (onPageStart e onPageEnd) I find some exemple in C# but when I translate this C# in VB the Visual studio intellisense don't find the method to insert the event in the page.
I find this exemple:
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("c:\\head_foot.pdf"));
writer.setPageEvent(new head_foot());
I translate:
Dim pdfWriter As iTextSharp.text.pdf.PdfWriter
Dim File As FileStream = New FileStream(Server.MapPath("/_Stampe/Test.pdf"), FileMode.Create)
pdfWriter.getInstance(Pdf, File)
Now i need find this method:
pdfWriter.setPageEvent(mioEvento)
but my VS don't find the setPageEvent
May you help me?
Thanks
I have a problem om use the itextsharp DLL.
I need insert an Header and a footer with table and image. This is possible and on the instruction manual I see I need implement an event on the page (onPageStart e onPageEnd) I find some exemple in C# but when I translate this C# in VB the Visual studio intellisense don't find the method to insert the event in the page.
I find this exemple:
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("c:\\head_foot.pdf"));
writer.setPageEvent(new head_foot());
I translate:
Dim pdfWriter As iTextSharp.text.pdf.PdfWriter
Dim File As FileStream = New FileStream(Server.MapPath("/_Stampe/Test.pdf"), FileMode.Create)
pdfWriter.getInstance(Pdf, File)
Now i need find this method:
pdfWriter.setPageEvent(mioEvento)
but my VS don't find the setPageEvent
May you help me?
Thanks