Information générale
Titre:
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")
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement