I have a VB application that can open multiple reports but it only opens one at a time it waits til the viewer is closed before opening the next. My problem is after doing this several times, I get a VB.exe error, an error log is is being created.
This error does not happen with any one specific error, or at any specific time. Sometimes the viewer will appear but no report. After this happens is usually when it will Crash!
I have provide as much as possible information but I know there is a VB wiz out there that knows what the problem is. If you need to know any thing let me know. VB6 & CR9 was used.
Questions:
1. What do you think is causing this error??
2. Where is the error log being created and how can I read it?
Below is some code.
This is where I open the form with that has the Viewer on it.
-----------------
frmPreviewReport.Show vbModal, Me
While frmPreviewReport.CRViewer1.IsBusy
'frmpreviewreport.CRViewer1
DoEvents
Wend
------------------
the next piece of code is where I am putting the report to the viewer.
------------------
CRViewer1.ReportSource = CrxReport
CRViewer1.ViewReport
Set CrxReport = Nothing
frmPreviewReport.WindowState = vbMaximized
CRViewer1.Zoom 75
------------------
This error does not happen with any one specific error, or at any specific time. Sometimes the viewer will appear but no report. After this happens is usually when it will Crash!
I have provide as much as possible information but I know there is a VB wiz out there that knows what the problem is. If you need to know any thing let me know. VB6 & CR9 was used.
Questions:
1. What do you think is causing this error??
2. Where is the error log being created and how can I read it?
Below is some code.
This is where I open the form with that has the Viewer on it.
-----------------
frmPreviewReport.Show vbModal, Me
While frmPreviewReport.CRViewer1.IsBusy
'frmpreviewreport.CRViewer1
DoEvents
Wend
------------------
the next piece of code is where I am putting the report to the viewer.
------------------
CRViewer1.ReportSource = CrxReport
CRViewer1.ViewReport
Set CrxReport = Nothing
frmPreviewReport.WindowState = vbMaximized
CRViewer1.Zoom 75
------------------