on ‎2011 Jan 05 3:02 PM
Hi all,
Imagine this simple piece of code:
Dim RptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
RptDoc.Load("C:\Report1.rpt")
RptDoc.PrintToPrinter(1, False, 1, 0)
RptDoc.Close()
RptDoc.Dispose()
Report1.rpt is a simple report with a label and no DB connection (just for a try)
When tryng to process RptDoc.Close system hangs (i always stopped so i don't know how long it can take to close)
Same issue with Using / End Using
Using RptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
RptDoc.Load("C:\Report1.rpt")
RptDoc.PrintToPrinter(1, False, 1, 0)
End Using
I'm woking with VS2010 and CR 13
Normally miy reports have a DB connection to Oracle but wanted to see if the close also fails with a very simple report and it does !
Any ideas ?
Request clarification before answering.
I know exactly where it hangs - on RptDoc.Close - after printing
This happens on any printer
Also tried to add a viewer on a form:
Dim RptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
RptDoc.Load("C:\Report1.rpt")
Dim oFrm As New Form1
oFrm.CrystalReportViewer1.ReportSource = RptDoc
oFrm.ShowDialog()
oFrm.Dispose()
RptDoc.Close()
RptDoc.Dispose()
The report shows correctly but then VS hangs on RptDoc.Close
Edited by: gwadafu on Jan 5, 2011 5:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It might help you to turn on some of the logging to see what the reporting engine is doing when attempting to close the connection. Have a look at the kbase article below for instructions on how to turn on the logging. Analysis of the logs will be up to you though. You'll want to look at the logs backwards though. Check for things that take an extraordinarily long time to complete in the functions log.
This was just published to the public today so it may take 24 - 48 hours to be available in the search.
1470978 - How to enable/disable crpe logging for the Crystal Reports .NET SDK
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.