无法在IE10中打开PDF错误:.pdf无法下载 [英] Unable to open the PDF's in IE10 error : .pdf couldnt be downloaded

查看:656
本文介绍了无法在IE10中打开PDF错误:.pdf无法下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..



我创建了一个ASP.NET站点,最后生成PDF表单并将其显示给用户。

这在IE8版本中运行正常,但它在IE10中不起作用会出现错误.PDF无法下载,即使我使用f12将浏览器模式更改为IE8也会出现相同的错误。



我使用以下代码片段来显示PDF,PDf是使用itextsharp创建的:



Hi..

I have created a ASP.NET site that at the end generates the PDF forms and displays it to the user.
this is working fine in IE8 version but its not working in IE10 gives error .PDF couldnt be downloaded, gives same error even though I change browser mode to IE8 using f12.

I am using following snippet to display PDF and the PDf is created using itextsharp:

Response.ContentType = "application/pdf";
Response.Charset = null;
Response.AppendHeader("Content-Disposition", "attachment; Filename= " + FileName);
Response.TransmitFile(FilePath);
Response.Flush();
Response.Close();



Filepath是PDF文件的路径。



希望有人能正确解决问题。



谢谢,

Janie


Filepath is the path of the PDF file.

Hope someone will give correct resolution for the problem.

Thanks,
Janie

推荐答案

试用以下内容:



1)转到 Internet Options



2)高级 - > 设置



3)在安全标签下,取消选中选项'不将加密的页面保存到磁盘'



问候..:)
Try Following:

1)Go to Internet Options

2)Advanced->Settings

3) Under security tab,uncheck the option 'Do not save encrypted pages to disk'

Regards.. :)


这篇关于无法在IE10中打开PDF错误:.pdf无法下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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