PDFLibNet 不支持net4.0
本人用的是vs2010,可是PDFLibNet 不支持net4.0,请问大神们如何解决???
------解决方案--------------------
Download the dll of itextSharp.dll
http://sourceforge.net/projects/itextsharp/
and try this code
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.IO;
private void btnExport_Click(object sender, EventArgs e)
{
Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35);
PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream("d:\\Test.pdf", FileMode.Create));
doc.Open();//Open Document to write
Paragraph paragraph = new Paragraph("data Exported From DataGridview!");
doc.Add(paragraph);
doc.Add(t1);
doc.Close(); //Close document
//
MessageBox.Show("PDF Created!");
}