C#中如何编程实现浏览pdf文件?

njlhb 2007-08-08 10:07:11
C#中如何编程实现浏览pdf文件?给个思路
...全文
572 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yuanzhihua520 2007-09-13
  • 打赏
  • 举报
回复
up
Huster2000 2007-08-09
  • 打赏
  • 举报
回复
用控件WebBrowser也可以直接打开(前提是安装了pdf的阅读软件)
icscs 2007-08-09
  • 打赏
  • 举报
回复
参考一下,向PDF文件写文字,及页面上显示的源代码:

http://bbs.msproject.cn/default.aspx?g=posts&t=258

zhengjuzhuan 2007-08-09
  • 打赏
  • 举报
回复
//web 用一个ABCpdf控件 你参考下看看
//以PDF格式输出合同文档到浏览器
WebSupergoo.ABCpdf3.Doc theDoc;
theDoc.Read("XXXX.pdf"); 读取文件
byte[] theData = theDoc.GetData();
theDoc.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", theData.Length.ToString());
Response.AddHeader("content-disposition", "inline; filename=MyHTPDF.PDF");
Response.BinaryWrite(theData);
Response.End();
zhengjuzhuan 2007-08-08
  • 打赏
  • 举报
回复
//先安装一个pdf阅读器 在.net中com组建里面引用进来,最后在工具栏添加进去 就可以了

110,571

社区成员

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

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

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