hi everyone

,
i've just started working with ASP.NET and i really appreciate if you will help me with some code :
http://www.dotnetspark.com/kb/Content.aspx?id=654
i've created a file : itextsharp.aspx and i've placed this code :
Code:
Protected Sub btnGeneratePDF_Click(ByVal sender As Object, ByVal e As EventArgs)
'Create Document class obejct and set its size to letter and give space left, right, Top, Bottom Margin
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
Try 05 Dim wri As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("c:\Test11.pdf", FileMode.Create))
'Open Document to write 07 doc.Open 08 09 'Write some content
Dim paragraph As New Paragraph("This is my first line using Paragraph.")
Dim pharse As New Phrase("This is my second line using Pharse.")
Dim chunk As New Chunk(" This is my third line using Chunk.")
' Now add the above created text using different class object to our pdf document 14 doc.Add(paragraph)
doc.Add(pharse)
doc.Add(chunk)
Catch dex As DocumentException
'Handle document exception
Catch ioex As IOException
'Handle IO exception
Catch ex As Exception
'Handle Other Exception
Finally
'Close document
doc.Close()
End Try
End Sub
then downloaded itextsharp.dll and placed it in the same directory of itexsharp.aspx and here what i got :
Code:
Message d'erreur du compilateur:
BC30002: Type 'Document' is not defined.
Erreur source: Ligne 3 : Protected Sub
btnGeneratePDF_Click(ByVal sender As Object, ByVal e As EventArgs)
Ligne 4 : Ligne 5 : Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35) Ligne 6 : Ligne 7 : Try Fichier source: c:\inetpub\wwwroot\ing2010\ing_scripts\fr\itextsharp.aspx Ligne: 5
will be pleased if you guys give me a hand
