on 2020 Sep 01 8:07 PM
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?
Request clarification before answering.
PS: Often you can find the recommendation to use Report Application Server(RAS) component(PrintOutputController.PrintReport), instead of PrintToPrinter method.
https://apps.support.sap.com/sap/support/knowledge/en/1729446
For us at the moment no option, because it is not possible to set all printer settings which we are using at the moment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.