General information
Title:
Crystal report timesout when converting to pdf
I am creating crystal reports in ASP.net and converting them to pdf on the fly. All of this works fine until I have a very large, sql intensive query. This report will generate several hundred pages. My problem is that sometimes when the report reaches a certain size, a box appears in the browser asking me if I want to save the aspx file to my system instead of finishing the report. This ONLY happens on large reports. The process that I use to display the dynamic pdf is as follows:
build the crystal report
convert to pdf
save to file system as strReport & ".pdf"
and do the following
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(strReport & ".pdf")
Response.Expires = 0
Response.Flush()
Response.Close()
System.IO.File.Delete(strReport & ".pdf")
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only