Error: 544 Error in File UNKNOWN.RPT
I have an application that is still running Crystal 8.5 Reports.
I periodically get the following error:
Error: 544 error in file unknown.rpt.
Access to report file denied. Another program may be using it.
Open print job <PEOpenPrintJob>.
There does not seem to be any consistency to when it happens.
The reports reside on a server and the runtime application uses a.rpt on a shared directory.
I can identify the last user to successfully print the report, have them logout of the application and the error goes away for a while. Different users can continue to print using the same .rpt. Then the problem comes back a little while later.
It only appears to happen to one of the reports
If I reboot the server the problem goes away for a couple of days. Then it comes back again.
I have verified and reverified the report and all seems to be OK.
Any suggestions are appreciated.
Don Williams replied
Moved to Legacy Developer forum
On your open method try adding the AsTempCopy option. this way the report uses a copy of the original and it doesn't get locked by the OS. You'll have to download any patch, it was about the same time Microsoft changes the way files opened so CR added a new member to use the temp copy.
To verify try opening any file more than 20 times and it will be locked by the OS.
Also a word of warning. As of CR 9 crpe32.dll is no longer supported nor is anyone licensed to use it as a report engine. Your best option is to upgrade to CR 2008 and move to Visual Studio .NET 2008.
To find all patches click on businessObjects tab above and then Downloads and CR link in the middle of the page and filter on your version.