PDFLibNet 不支持net4.0

fly_flin 2012-05-08 10:41:42
本人用的是vs2010,可是PDFLibNet 不支持net4.0,请问大神们如何解决???
...全文
230 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
test2050 2012-05-09
  • 打赏
  • 举报
回复
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!");
}
test2050 2012-05-09
  • 打赏
  • 举报
回复
自己先网上搜索一番。
fly_flin 2012-05-09
  • 打赏
  • 举报
回复
那麻烦您介绍个支持net4.0的可以用的来读取并搜索pdf的控件。。。谢谢了。。[Quote=引用 1 楼 的回复:]

爲什麽偏偏喜歡它,有很多這類控件
[/Quote]
crackdung 2012-05-08
  • 打赏
  • 举报
回复
爲什麽偏偏喜歡它,有很多這類控件

110,537

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧