如何从应用程序文件夹在asp.net页面中显示pdf文件 [英] how to show pdf files in asp.net pages from application folder

查看:83
本文介绍了如何从应用程序文件夹在asp.net页面中显示pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我如何在存储在应用程序文件夹中的asp.net页面中显示上载的pdf.实际上我想在gridview中单击链接后显示我的所有pdf,这将在asp.net页面中显示pdf,请有人帮忙执行此代码...

Pls someone tell that how to show uploaded pdf in asp.net pages which have stored in application folder.Actually i want to show all my pdf after clicking the link in gridview, which will show pdf in asp.net pages, Pls someone help to do this code...

推荐答案

好吧,您只需提供指向与您的网站目录结构相对应的pdf文件的链接,客户端即可看到该文件当他们单击链接时,是否已安装Adobe Reader(或其他pdf阅读器).

但是有更好的方法.您可以在客户端或服务器上未安装Acrobat Reader的情况下显示pdf文件.解决方案就在CodeProject中.阅读本文-
在客户端或服务器上未安装Acrobat Reader的ASP.NET PDF Viewer用户控件 [
Well you can just give a link to the pdf file corresponding to your website directory structure and the clients can see the file when they click the link, if they have Adobe Reader (or other pdf readers) installed.

But there is a better way. You can show pdf files without Acrobat Reader installed on client or server. And the solution is right here in CodeProject. Read this article -
ASP.NET PDF Viewer User Control Without Acrobat Reader Installed on Client or Server[^]

BTW, search Google/Bing for "show pdf file web page" and you will get many examples.


这篇关于如何从应用程序文件夹在asp.net页面中显示pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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