Using VB6 SP6
This was working fine until this morning. If I step through it in the IDE, it works, but if I just run it in the IDE or run the .exe it closes without displaying the report. When running the exe on a customer's server it closes. No errors are displayed in any case. The only thing that I know that changed, was an appearent Windows Update last night.
<code>
Private Sub Form_Load()
Dim strErrorMsg As String
10 On Error GoTo Form_Load_Error
20 frmReportView.Height = Screen.Height
30 frmReportView.Width = Screen.Width
40 Set crxReport = crxApp.OpenReport(ReportsPath & "\" & ReportNameChosen)
50 CRViewer9.EnableExportButton = True
'CRViewer9.
60 CRViewer9.GetCurrentPageNumber
70 CRViewer9.EnableGroupTree = False
'here
80 CRViewer9.Height = frmReportView.Height * 0.75
90 CRViewer9.Width = frmReportView.Width * 0.98
100 CRViewer9.ReportSource = crxReport
110 CRViewer9.ViewReport
120 CRViewer9.ShowFirstPage
130 On Error GoTo 0
140 Exit Sub
Form_Load_Error:
'sbLogEntry "errormessage", "fileproc"
150 Select Case Err.Number
Case -2147206453
160 strErrorMsg = "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form frmReportView at line: " & Erl & Chr(10)
170 strErrorMsg = strErrorMsg & "Report: " & ReportsPath & "\" & ReportNameChosen
180 MsgBox strErrorMsg
190 Close
200 End
210 Case Else
220 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form frmReportView at line: " & Erl
230 Close
240 End
250 End Select
End Sub
</code>
I'm at a loss, any suggestions?
This was working fine until this morning. If I step through it in the IDE, it works, but if I just run it in the IDE or run the .exe it closes without displaying the report. When running the exe on a customer's server it closes. No errors are displayed in any case. The only thing that I know that changed, was an appearent Windows Update last night.
<code>
Private Sub Form_Load()
Dim strErrorMsg As String
10 On Error GoTo Form_Load_Error
20 frmReportView.Height = Screen.Height
30 frmReportView.Width = Screen.Width
40 Set crxReport = crxApp.OpenReport(ReportsPath & "\" & ReportNameChosen)
50 CRViewer9.EnableExportButton = True
'CRViewer9.
60 CRViewer9.GetCurrentPageNumber
70 CRViewer9.EnableGroupTree = False
'here
80 CRViewer9.Height = frmReportView.Height * 0.75
90 CRViewer9.Width = frmReportView.Width * 0.98
100 CRViewer9.ReportSource = crxReport
110 CRViewer9.ViewReport
120 CRViewer9.ShowFirstPage
130 On Error GoTo 0
140 Exit Sub
Form_Load_Error:
'sbLogEntry "errormessage", "fileproc"
150 Select Case Err.Number
Case -2147206453
160 strErrorMsg = "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form frmReportView at line: " & Erl & Chr(10)
170 strErrorMsg = strErrorMsg & "Report: " & ReportsPath & "\" & ReportNameChosen
180 MsgBox strErrorMsg
190 Close
200 End
210 Case Else
220 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form frmReportView at line: " & Erl
230 Close
240 End
250 End Select
End Sub
</code>
I'm at a loss, any suggestions?