Welcome Guest Search | Active Topics | Sign In | Register

Display a loading screen while generating a PDF and writing to the http response stream Options
katie
Posted: Sunday, September 23, 2012 11:39:25 AM
Rank: Member
Groups: Member

Joined: 12/7/2007
Posts: 21
I have looked everywhere and seemed to have tried every solution offered, with no success. Is it possible to display a loading screen when generating a PDF and writing the PDF to the http response stream?
I am using EO.pdf and this is rendering the PDF perfectly, it is just taking a while and I need to let the user know a process is occurring.

I have managed to get the loading screen displaying but then can't hide it once the PDF is generated as I call response.End().

I also tried the code below, but add_endRequest does not fire.

Code: JavaScript
var prm = Sys.WebForms.PageRequestManager.getInstance();
         prm.add_initializeRequest(postbackButtonClick);
         prm.add_endRequest(postbackButtonClose);
         var postBackElement;

         function postbackButtonClick() {
             
             document.getElementById('<% Response.Write(UpdateProgress1.ClientID); %>').style.display = "inline";
         }
         function postbackButtonClose() {
             document.getElementById('<% Response.Write(UpdateProgress1.ClientID); %>').style.display = "none";
         }


Any ideas would be very much appreciated.

Thanks
eo_support
Posted: Sunday, September 23, 2012 8:46:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

I think you are chasing a ghost ---- your response is EITHER a PDF document OR a HTML document (JavaScript goes with HTML document). You can't have both.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.