I have reached a wall concerning file size and IE7.x. I am allowing users to select files to be combined into one larger file. As soon as I cross the 20Mb threshold the web page will not open and show the pdf file. This is not an issue with corrupted files as I have tried them in different combinations and they all work. This is definitely associated with the size of the file and IE7.x. This is a deal killer. I am running WinXP Pro 64 bit with 2GB of RAM. I am using IE7.x with VS2008 and framework 3.5 SP1.
As I step through the code I execute:
document.Draw("//server/PI_" + Uname.Replace(" ", "_") + ".pdf");
document.DrawToWeb(false, "//server/PI_" + Uname.Replace(" ", "_") + ".pdf", true);
document = null;
Response.End(); << fails here and hits catch()
When I enter the catch I cannot access the error message. It tells me:
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
The file is writing to disk as expected and I can go to the file, right-click and then open it with IE7. It just won't do it as part of the normal process of my program.
It works with Firefox. Do you have any idea why IE7 is having a problem? Thanks.
IE7 issue
Re: IE7 issue
Support · Oct 28, 2008Hello,
We are not aware of any issues with streaming larger file sizes using our product in IE7. It may be a setting in IE or IIS or your machine that is preventing larger PDF files to be streamed in the browser.
Can you please try this on a different machine and see if you experience the same behavior?
Thanks,
ceTe Software Support Team.
Re: IE7 issue
Forum member · Oct 28, 2008I have found a solution:
document.Draw("//server/lps/PDFbuilds/PI_" + Uname.Replace(" ", "_") + ".pdf");
Response.ClearHeaders(); // << added this
document.DrawToWeb(false, "//server/lps/PDFbuilds/PI_" + Uname.Replace(" ", "_") + ".pdf", true);
This works for images so I figured what the heck.