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 8.5 and releasing licenses

Status
Not open for further replies.

GoLeafs

Programmer
Jan 16, 2003
6
US
Hi Folks

I've install Crystal 8.5 on our Server and I'm using an asp page to show and print web reports from the browser.
That works great. I'm having problem releasing licenses. I am using the ONUNLOAD="CallDestroy()" which calls the cleanup.asp page and that is supposed to kill the session and release the corrisponding license but that is not happening. I notice that when Crystal was installed it created three folders in the default web site that called Crystal_License, Viewer and srcsamples. The problem is we are not using that site and it is currently stopped. Could this be part of the problem? And if so what do I do to change where these folders reside?
Thanks in advance for any help.
 
Hi

In Crystal from the web server you can only have 5 session at on time since crystal 8.5 comes with a five user licence.
I you want more you have to sett the time out on the webserver to kill the session id the user is inactive

pgtek
 
I have the session timeout set to 20 minute I thing that's the default. Could the sessions be getting killed but the licenses is not releasing?
 
hi
try this

-------------------------------------
Licenses are released from a Crystal Reports ASP application by removing the Report Designer Component session objects from memory. It is the existence of these objects in memory that consume a license. Crystal Decisions sample applications call the file Cleanup.asp, which contains the code needed to remove these objects from memory, when the application is navigated away from or closed.

NOTE: =====
Reference the white paper, "Managing RDC Licenses within your ASP Applications" (cr85_asp_licensing.pdf) for more information on releasing licenses from your ASP applications.
===========

Cleanup.asp is not called automatically by the HTML viewers when a report is closed or if a user navigates away from it so it is necessary to add code to the application to specifically call the "clean up" code.

In order to release licenses using the HTML viewers, create a frameset file with a hidden frame that will initialize the Cleanup.asp page. The following sample is based on the BeginHere sample ASP application contained in the downloadable file, Aspxmps85.exe (from
The frameset file should contain the following code:

<HTML>
<TITLE>HTML Viewer Cleanup Sample</TITLE>
<FRAMESET ROWS=&quot;100%,*&quot;>
<FRAME NAME=&quot;SimplePreview&quot; src=&quot;SimplePreviewReport.asp&quot;>
<FRAME NAME=&quot;Cleanup&quot; src=&quot;Cleanup.html&quot;>
</FRAMESET>
</HTML>

The visible frame runs the SimplePreviewReport.asp file and displays the report. The hidden frame refers to the Cleanup.html page that contains the following code:

<HTML>
<HEAD></HEAD>
<BODY ONUNLOAD=&quot;CallDestroy();&quot;>

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
function CallDestroy()
{
window.open(&quot;Cleanup.asp&quot;);
}
</SCRIPT>
</BODY>
<HTML>

NOTE: *****
The Cleanup.asp file must be in the same directory as the other HTML files for this application to function correctly. Once the browser navigates to another page or is closed the report is unloaded and the Cleanup.asp script is called releasing the license.
***********

Now if you are using the HTML viewers in your Crystal Reports ASP application licenses will be released as soon as a user exits the application.

LIMITATION: *****
The &quot;cleanup&quot; frame will not work with Netscape browsers. In this case the &quot;OnUnload&quot; event will not execute when a Netscape browser is closed and only when the user navigates away from the application.
****************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top