cancel
Showing results for 
Search instead for 
Did you mean: 

Experiencing intermittent slowdowns in production when generating and printing reports

0 Kudos
970

We have a customer who is reporting intermittent longer than acceptable print times for documents. Based on their review of our log files, this occurs on between 15% and 25% of the print jobs that the program automatically starts. Print jobs normally take less than 10 seconds, but affected jobs can take up to 5 minutes to complete.

Based on our review of the log files, these slowdowns can occur in two places:

mDocument.Load(mCriteria.FilePath, OpenReportMethod.OpenReportByTempCopy)

where mDocument is a ReportDocument object, and

Dim printerSetting As New PrinterSettings()
Dim pageSetting As New PageSettings()
Report.ReportDocument.PrintOptions.CopyTo(printerSetting, pageSetting)

with the slowdown occurring in the CopyTo call, Report.ReportDocument is a ReportDocument object.

We develop on and package with the application SP16 of Crystal Reports for Visual Studio. The report files are stored in a network folder, though in this context the network folder is on the same server that is executing the print job.

We have tried updating the customer to use the most recent SP28 of the CR Runtime. We have tried setting the reports to have "No printer" checked.

Updating the runtime had no apparent effect. Changing the reports to have "No printer" checked caused the slowdowns that occur in the .Load call to stop, but they can still occur in the .CopyTo call.

Since checking "No printer" had a positive impact, we believe it is printer related, but we aren't sure what we should be checking. How should we proceed in diagnosing and/or fixing this issue?

View Entire Topic
0 Kudos

Hi Cameron,

we have exactly the same problem special on Terminal Server (RDP).

Report.ReportDocument.PrintOptions.CopyTo(printerSetting, pageSetting)

On a local machine it takes also some time ( 2 sec), but on RDP up to 15 sec.

The same behaviour when printing reports

ReportDocument.PrintToPrinter(printerSetting, pageSetting, false)

At the moment we have no idea, whats the reason for that.

Best,
Gottfried