Hi,
I have a page running a generated Crystal Report which is producing a PDF file. I then display this using the following code:
This works fine when the page does not use Ajax, but as soon as I add Ajax to it an error gets thrown. I would like to Ajaxify the page so I can show a progress spinner as the report is generated, rather than leave a few seconds when it looks like nothing is happening.
If I remove Ajax from the page thie code works fine.
Add Ajax and it stop working.
Is there an alternative, or better method of showing the PDF (I also show a Word or Excel document, depending on the selection the user has made)
Dave Penny
I have a page running a generated Crystal Report which is producing a PDF file. I then display this using the following code:
Using client As System.Net.WebClient = New System.Net.WebClient() HttpContext.Current.Response.ContentType = "application/pdf" HttpContext.Current.Response.WriteFile(FileName) HttpContext.Current.Response.Flush() HttpContext.Current.Response.Close() HttpContext.Current.Response.End() End Using This works fine when the page does not use Ajax, but as soon as I add Ajax to it an error gets thrown. I would like to Ajaxify the page so I can show a progress spinner as the report is generated, rather than leave a few seconds when it looks like nothing is happening.
If I remove Ajax from the page thie code works fine.
Add Ajax and it stop working.
Is there an alternative, or better method of showing the PDF (I also show a Word or Excel document, depending on the selection the user has made)
Dave Penny
