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
Miscellaneous
Thread ID:
00725454
Message ID:
00725819
Views:
11
Here is something to try to see if it fixes your problem.
Alter the maxRequestLength attribute in the httpRuntime element in your web.config file. It defaults to 4096. Change it to 10000 and see if that fixes your problem.


>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")
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform