PDA

View Full Version : itextsharp pdf


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

balu_dotnet
05-12-2009, 08:46 AM
i am also working on itextsharp.dll, but i am not able to register this dll in my project. can u help me in how u registred that in ur project?

balu_dotnet
05-12-2009, 08:49 AM
Hi, i am using itextsharp.dll to write data into .pdf file.
so i downloaded this dll (version 4.1.2) but i am not register this .dll in my project to use this namespace. any help?

raymondp
05-12-2009, 09:15 AM
It appears that this assembly has to be fully installed on the server. Unfortunately because of security and standardization concerns we cannot install 3rd party components directly on the server.

balu_dotnet
05-12-2009, 09:55 AM
so how can i use itextsharp.dll in my project? is there any alternate?

actuall this was i want..

i am working on project which is related to schools. all the schools have some contracts with Mississippi state. our bussiness rule is they can Amend their contact info at any time.

my task is i have a link with name "Printable version", once they click on link, they should be able save as file on their desktop(/or selected path) , in pdf format.

i have to go with any tool or thru the qry get all the school info and write into pdf file?

i know how to do in .txt file, but my client wants in pdf file.

any help?

raymondp
05-12-2009, 02:14 PM
Have check on ABCpdf.Net. This is a component that creates PDF files on the fly.


https://support.discountasp.net/KB/a123/websupergoo-abcpdfnet-information.aspx?KBSearchID=34261