Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal report timesout when converting to pdf
Message
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Crystal report timesout when converting to pdf
Divers
Thread ID:
00725454
Message ID:
00725454
Vues:
36
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
Fil
Voir

Click here to load this message in the networking platform