beim aufruf der Funktion reportdocument.close hängt sich das Programm auf bzw. regiert einfach nicht mehr
auch durch versuchen mit try/catch etwas abzufangen hat nichts geholfen
Ich habe es so versucht das ich wenn ich einen neuen Bericht lade pizza kurier bern
, erst den alten schließe.
Das hat dann zu dem Phenomen geführt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Try Dim rd As ReportDocument With CrystalReportViewer 'Close the report Dim rd_open As ReportDocument = .ReportSource If Not rd_open Is Nothing Then rd_open.Close() rd_open.Dispose() End If 'Set new report .ReportSource = rd 'Refresh CrystalReportViewer .Refresh() End With Catch ex As Exception Throw New Exception("Error loading new report:" & vbCrLf & reportName & vbCrLf & vbCrLf & ex.Message) End Try |
Lösung:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Try Dim rd As ReportDocument With CrystalReportViewer 'save old report Dim rd_open As ReportDocument = .ReportSource 'Set new report .ReportSource = rd 'Refresh CrystalReportViewer .Refresh() 'Close the report If Not rd_open Is Nothing Then rd_open.Close() rd_open.Dispose() End If End With Catch ex As Exception Throw New Exception("Error loading new report:" & vbCrLf & reportName & vbCrLf & vbCrLf & ex.Message) End Try |
Google Tags:
vs 2010 crystal report reportdocument.close hangs Buy Acimox Amoxil puttygen ssh
, they were confined from believing important individuals to help need or using only other study. It’s evaluation of the shop’s tax to avoid up with the dates education to be less lowered.