net打开pdf文件下载|怎么在aspnet中点击一个链接下载一个准备好的pdf文件

Ⅰ ASP.NET中如何在网页上打开PDF格式的文件,最好能给出代码。

如果客户机安装了PDF阅读器的话,把超链接指向PDF文件,自然会调用PDF阅读器,并嵌入网页的,如果没有安装那个阅读器就不知道怎么办了。

Ⅱ pdf格式文件需要下载什么软件才能打开

PDF文档由Adobenbsp;Reade打开nbsp;Adobenbsp;Readernbsp;7.07nbsp;简体中文版:http://bj.onlinedown.net/soft/2696.htmnbsp;PDF文件转换为word文档(DOC文档)的方法:Solidnbsp;Converternbsp;PDF是一套专门将PDF文件转换成DOC的软件,除了转换成DOC文件外,还可以转换成RTF以及Wordnbsp;XML文件。nbsp;下载地址:http://nj.onlinedown.net/soft/37438.htm

Ⅲ asp.net怎么打开PDF,本地已安装PDF阅读器

上传的附件可存在数据库中,也可存在目录下以 下代码为从数据库中导出数据的程序,可参考:If Not oRpt Is Nothing Then Dim exptype As ExportFormatType Dim cttype As String Dim stm As Stream Dim fname As String = "fname" Dim fext As StringSelect Case ddlfiletype.SelectedIndex 'case 0: ' exptype=ExportFormatType.Excel; ' cttype="application/msexcel"; ' fext=".xls"; ' break; ' Case 0 exptype = ExportFormatType.PortableDocFormat cttype = "application/octet-stream" fext = ".pdf" Exit Select Case 1 exptype = ExportFormatType.WordForWindows cttype = "application/msword" fext = ".doc" Exit Select Case 2 exptype = ExportFormatType.Excel cttype = "application/msexcel" fext = ".xls" Exit Select Case Else exptype = ExportFormatType.RichText cttype = "text/plain" fext = ".rtf" Exit Select End Select fname = fname & fext stm = oRpt.ExportToStream(exptype) ' If Not (InlineAssignHelper(stm, oRpt.ExportToStream(exptype))) Is Nothing Then If Not stm Is System.DBNull.Value Then '!!!### Dim FileSize As Long FileSize = stm.Length Dim Buffer As Byte() = New Byte(CInt(FileSize) – 1) {} stm.Read(Buffer, 0, CInt(FileSize)) stm.Close() ''常见文件的MIME类型 ''GIF文件 "image/gif" ''BMP文件 "image/bmp" ''JPG文件 "image/jpeg" ''zip文件 "application/x-zip-compressed" ''DOC文件 "application/msword" ''文本文件 "text/plain" ''HTML文件 "text/html" ''一般文件 "application/octet-stream" ' ' ' '读取数据库中保存的内容 Response.Clear() Response.Expires = 0 Response.Buffer = True Response.ContentType = cttype Response.AddHeader("Content-Length", FileSize.ToString()) Response.AddHeader("Content-Disposition", "attachment;filename=" & fname) Response.BinaryWrite(Buffer) Response.Flush() Response.Close() Else lblstatus.Text = "导出失败!" End If Else lblstatus.Text = "没有符合条件的数据!" End If

Ⅳ asp.net打开pdf文件

pdf转swf,然后用flexpaper展示

Ⅳ 怎么在asp.net中点击一个链接下载一个准备好的pdf文件

最简单复的没有安全控制制的方式:<a href='/苍老师全集.pdf'> 中日交流电子书</a> 如果需要权限控制的话,可以做成用一个ashx来处理的方式,在这个ashx的作用就是读取对应的的电子书文件,供下载。实现方式你可以找对应的代码,这里我就不列出了。

Ⅵ .net怎样在网页中打开pdf格式文件,不允许下载,只能在网页中浏览,求大神

page.Response.AddHeader("Content-Disposition", "attachment;filename=" + downLoad + ".xls"); while (dataLength > 0 && page.Response.IsClientConnected) { int lengthRead = fs.Read(buffer, 0, Convert.ToInt32(ChunkSize)); page.Response.OutputStream.Write(buffer, 0, lengthRead); page.Response.Flush(); dataLength = dataLength – lengthRead; } page.Response.Close();这是导出xls的 "attachment;filename=" + downLoad + ".xls" 这是以附件的形式 所以代开的时候是以下载流打开的你不要用 附件的形式,那么它就不会允许下载PDF document <% response.ContentType ="application/pdf" %> <!–#i nclude virtual="/myfile.pdf" –> 这是网页显示pdf的网页内容头还有以后问问题 请上代码

Ⅶ PDF文件应该用什么软件打开

pdf是portabledocumentformat的缩写,译为可移植文件格式。pdf阅读器adobereader专门用于打开后缀为.pdf格式的文档。pdf阅读器(adobereader)是adobe公司开发的一种电子文档阅读软件,adobe公司免费提供pdf阅读器下载。http://get.adobe.com/cn/reader/

Ⅷ 后缀是pdf的文件用什么打开 在哪下载

PDF格式阅读器 Adobe Reader7.05 简体版 软件名称 Adobe Reader 版本 7.05 简体版 版权所有 软件发行商 软件平台 Win9X WinNT Win2000 WinME WinXP 整理日期 2005-11-08 软件授权 免费 软件大小 30000 K Adobe Reader 是一款可以用来查看和打印 Adobe 便携文档格式 (PDF) 文件。 您可以在大多数主要的操作系统上查看通过 Adobe Acrobat、Adobe Photoshop Album 2.0 以及更多应用程序创建的 Adobe PDF 文件。 最新版本的7.0提高了pdf文件打开的速度,和实时浏览文件的速度,并配合Adobe Acrobat 7.0 Professional有了多项改进。 http://download.adobe.com/pub/adobe/reader/win/7x/7.0.5/chs/AdbeRdr705_chs_full.exe


赞 (0)