Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal report timesout when converting to pdf
Message
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Crystal report timesout when converting to pdf
Miscellaneous
Thread ID:
00725454
Message ID:
00725454
Views:
35
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
Map
View

Click here to load this message in the networking platform