|
Posted by NC on 09/20/06 15:07
MartyInOz wrote:
>
> "Warning: Invoke() failed: Exception occurred. Source: Crystal Reports
> ActiveX Designer Description: There are not enough Concurrent Access
> Licenses to log you on. This system has 5 Concurrent Access
> Licenses."..etc..etc..
What version of PHP are you using?
> Now I know why this is happening. I assume it is because I am not
> closing the COM instances of 'Crystal Reports ActiveX Designer'. I am
> setting the '$crapp' object to null but I guess this still leaves the
> actual App instantiated. However, I can't find out how to
> programmatically close the App. I have tried:
>
> $crapp->Close();
> $crapp->Quit();
>
> Does anyone know either the command(s) I require to cleanup my 'Crystal
> Reports ActiveX Designer' session, or if not, can you suggest a good
> reference for the Crystal 8.5 COM commands because I can't find one.
Not really, but here are two possibilities:
1. Try to enumerate the CrystalRuntime.Application object
and see if anything has a name that sounds usable in
your situation:
$crapp = new COM ("CrystalRuntime.Application")
or die ("Error on load");
echo "<p>Enumerating CrystalRuntime.Application object:</p>";
$crapp->Reset();
while ($e = $crapp->Next()) {
echo "<p>$e</p>";
}
Obviously, this is a development-time hack; you should
put the code above into a separate script and delete the
script when you no longer need it.
2. If all else fails, use $crapp->Release() to force unloading
of the CrystalRuntime.Application object.
Cheers,
NC
Navigation:
[Reply to this message]
|