PDA

Click to See Complete Forum and Search --> : Cancel long running Crystal report


vkuzmich
Jun 23rd, 2005, 02:45 PM
Hi,
I am using Crystal XI and .NET.
Is there any way to cancel long running report in my program?

Thanks.
Victor

Hack
Jun 24th, 2005, 08:02 AM
Is it the printing that you want to cancel or the creation of the report?

vkuzmich
Jun 24th, 2005, 08:06 AM
Creation of report.

Hack
Jun 24th, 2005, 08:22 AM
How does the report get created? Is it based on a SQL query that builds a recordset, and feeds the recordset to Crystal?

vkuzmich
Jun 24th, 2005, 09:08 AM
No, the report itself is a stand alone file .rpt. I am loading it and then run it:

report.Load(rptPath);

crViewer.ReportSource=report;//this one freezes up everything. I want to cancel running somehow after this line of code started to execute