如何使用ASP.net打开PDF文件 [英] How to open a PDF file using ASP.net

查看:247
本文介绍了如何使用ASP.net打开PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是使用ASP.net开发简单程序的新手。我想查看存储在(1)本地计算机(2)Web服务器中的PDF文件。编程网站中列出了一些建议和答案,但我似乎无法在我的程序中应用它。请帮我。在此先感谢。

Hi,

I'm a newbie in developing a simple program using ASP.net. I want to view a PDF file that is stored in (1) local machine and (2) web server. Several suggestions and answers were listed in programming sites, but I can't seem to apply it in my program. Please help me. Thanks in advance.

推荐答案

如果用户在他的机器上安装了PDF阅读器,他可以直接查看您的pdf链接。对于前 http://www.cheat-sheets.org/saved-copy /aspnet-life-cycles-events.pdf [ ^ ]

您可以打开这个安装了pdf阅读器的人。如果您需要一个自定义查看器,即使没有安装PDF阅读器的客户端也应该可以工作,您将不得不编写代码来实现它。网上已经有很多关于如何实现它的例子 - Google搜索 - 显示PDF文件asp.net [ ^ ]。不知道你怎么找不到任何东西。
If a user has PDF reader installed in his machine, he can directly view your pdf link. For ex - http://www.cheat-sheets.org/saved-copy/aspnet-life-cycles-events.pdf[^]
You will be able to open this of you have pdf reader installed. If you need a custom viewer which should work even without client having PDF reader installed, you will have to write code to implement one. There are already lot of examples on web how to implement it - Google search - Show PDF file asp.net[^]. Not sure how you couldn't find anything.


这篇关于如何使用ASP.net打开PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆