Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why ExportToStream step takes forever

Status
Not open for further replies.

lifeforest

Programmer
Nov 9, 2006
16
CA
I have this CR connect to Oracle database, it runs okay inside CR2008, but its extremely slow when i run it from .NET by using ExportToStream (PDF) function.

How should i improve the performance? Thanks a lot for any hints/help!
 
By calling ExportToStream, your code is actually doing a couple of things.

1. Running the report and rendering it. This is the only step that happens when you run the report in Crystal.
2. Converting the report to PDF
3. Converting the PDF to a binary stream and sending it to wherever it goes.

If it is a large report that has many pages, then steps 2 and 3 are going to take a while.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top