Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET 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 is the path of the PDF file.
 
Hope someone will give correct resolution for the problem.
 
Thanks,
Janie
Posted 18-Jun-13 21:44pm
Comments
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...
 
http://answers.microsoft.com/en-us/ie/forum/ie10-windows_8/unable-to-open-pdf-files-in-internet-explorer-10/ef3be169-6beb-472f-b9b0-4bd004e65b4d
Mahesh Bailwal at 19-Jun-13 4:03am
   
Mahesh Bailwal - 1 sec ago
What error are you getting.?

1 solution

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

Solution 2

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.. Smile | :)
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Richard MacCutchan 145
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,712
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 17 Jul 2013
Copyright © CodeProject, 1999-2014
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