Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Error #20544 - Acces to Report File Denied

Status
Not open for further replies.

meetcck

Programmer
Sep 24, 2002
5
JP
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.

Thanks in advance.
CCK
 
From the Crystal site:

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)

Hopefully this will help.

-k kai@informeddatadecisions.com
 
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.

CCK

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top