You are here: Re: PHP & Crystal Reports - Can't quit ActiveX Designer session « PHP Programming Language « IT news, forums, messages
Re: PHP & Crystal Reports - Can't quit ActiveX Designer session

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация