Click here to Skip to main content
11,804,574 members (93,545 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET itextsharp

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);
Filepath is the path of the PDF file.

Hope someone will give correct resolution for the problem.

Posted 18-Jun-13 20:44pm
Prasad Shastri at 19-Jun-13 2:54am
As you said it worked in IE8, it seems issue related with setting.
Check this might help...
Mahesh Bailwal at 19-Jun-13 4:03am
Mahesh Bailwal - 1 sec ago
What error are you getting.?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try Following:

1)Go to Internet Options


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

Regards.. Smile | :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 17 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100