G
Guest
I have a crystal report that is being displayed on the web (asp.net – VS
studio 2003).
I use a wait page, a very simple one, to tell the user to wait until the
report is displayed, simply text, no graphics or animation at all.
I use the location.replace in the wait page just as you recommend in a msdn
article. It works fine as long as it redirects to an asp.net page.
But I use the following function to display a pdf file and then it stops
working, so if I press the back button it takes me back at the wait page
again.
Private Sub showReport(ByVal filename As String)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(filename)
Response.Flush()
Response.Close()
Response.End()
System.IO.File.Delete(filename)
End Sub
How can I fix this problem ?
Thank you
studio 2003).
I use a wait page, a very simple one, to tell the user to wait until the
report is displayed, simply text, no graphics or animation at all.
I use the location.replace in the wait page just as you recommend in a msdn
article. It works fine as long as it redirects to an asp.net page.
But I use the following function to display a pdf file and then it stops
working, so if I press the back button it takes me back at the wait page
again.
Private Sub showReport(ByVal filename As String)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(filename)
Response.Flush()
Response.Close()
Response.End()
System.IO.File.Delete(filename)
End Sub
How can I fix this problem ?
Thank you