Hi..
Anybody please tell me why this error occurs. This is encountered when running the set up. The application has VB 6, SQL 2000 & Crysatl Report 7.0.
The same report can only have 20 instances open in preview, before the above error occurs if the report is opened exclusively. In the OpenReport method of the Application object set the second parameter to 1. This opens the report as a temporary copy and can be opened as many times as needed.
Dim crpReport as Crpeauto.Report
Dim crpApplication as New Crpeauto.Application
Set crpReport = crpApplication.OpenReport("c:\test\test.rpt", 1)
Note:
This applies to the Report Design Component (Version 6 and higher) as well. The code for opening an RPT file is as follows:
Dim crxReport as Craxdrt.Report
Dim crxApplication as New Craxdrt.Application
Set crxReport = crxApplication.OpenReport("c:\test\test.rpt", 1)
Hello,
Thanks for the response. I have already started using RDC since I felt using the crystal OCX control, we might not be able to view more than 20 instances.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.