creating PDF using .NET itextsharp component vb NET

To create a PDF file from any .net application is very easy. You just need to use itextsharp component.  You can download this component http://itextsharp.sourceforge.net

Just import this component namespace to your application. Here is the sample code.

Dim doc as New Document

PdfWriter.GetInstance(doc,New FileStream("Sample.pdf",FileMode.Create))
doc.Open()
doc.Add(New Paragraph(" Add the contects",FontFactory.GetFont(FontFactory.TIMES ROMAN,22,iTextSharp.text.Font.BOLD)))
doc.close()
 
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading








Quality & Affordable Web Development | About the Author | Hosted By Windows Hosting | Discuss With Experts At Webmaster Forums