1218618 - How to upgrade an RDC ASP application to Crystal Reports XI

SAP Knowledge Base Article - Public

1218618 - How to upgrade an RDC ASP application to Crystal Reports XI

Symptom

How do I upgrade your Report Designer Component (RDC) ASP (Active Server Pages) application to Crystal Reports version XI?

Resolution

To upgrade your RDC ASP application to Crystal Reports XI, complete the following steps:

====================

NOTE: It is recommended that you back up your ASP RDC application before upgrading it.

====================

 

1. Search for and download the RDC XI ASP sample collection (aspxmps11.exe) available on the Downloads area of our web site.

2. Extract the aspxmps11.exe file into a temporary directory.

3. Extract the BeginHere.zip file and then copy the following files into your application folder, overwriting any previous versions:

 

  • RDCrptserver11.asp (this file replaces rptserver.asp (pre version 10) or RDCrptserver10.asp (version 10)
  • SmartViewerActiveX.asp
  • JavaPluginViewer.asp
  • Cleanup.asp

 

4. If you have an older version(s) of Crystal Reports on the same computer, then change the line

Set Session("oApp") = Server.Createobject("CrystalRuntime.Application") 

in your RDC ASP application to

Set Session("oApp") = Server.Createobject("CrystalRuntime.Application.11")

5. If you have a COM+ or Microsoft Transaction package that includes an earlier version of the file Craxdrt.dll, delete and recreate the package with version 11.x.x.xxx of this file. To verify the file version, complete these steps:

1. Go to the ...\Program Files\Common Files\Business Objects\3.0\bin folder.

2. Right-click Craxdrt.dll file and then click 'Properties'.

6. Use the following sample code to destroy the Crystal 'oApp', 'oRpt', and 'oPageEngine' objects after the user exits the ASP RDC application:

Session.Contents.Remove("oPageEngine") 
Session.Contents.Remove("oRpt") 
Session.Contents.Remove("oApp")

 

====================

NOTES:

  • Although destroying these objects is not required when using the RDC XI, it is good practice to ensure that these objects are released when they are no longer needed by the application. 
  • Using the 'Session.abandon' method will destroy all objects stored in session, including non-Crystal objects.

====================

 

After these changes are made, your RDC ASP application now runs in a Crystal Reports XI environment.

 

 

See Also

Note 1218609 - "Is the Crystal Reports XI Report Designer Component (RDC) supported in ASP?"

Note 1218451 - "Cannot export to Editable (RTF) export format using RDC for Crystal Reports XI"

Note 1217241 - "Exporting a report from an RDC 10 application generates a zero byte file"

With earlier versions of the RDC, licensing is based on concurrent usage. The script Cleanup.asp destroys the Crystal objects, which in turn decrements the number of licenses used. In Crystal Reports XI, the RDC licensing model is based on processing threads. A license is used only while the user is making a request to the server and not while viewing a page of data.

Keywords

MIGRATE MIGRATING UPGRADE UPDATE UPDATING APPLICATIONS CODE REPORTS SERVER Crystal Reports Report Designer Component Migrating Application Code Web , c2017518 , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem

Product

SAP Crystal Reports XI ; SAP Crystal Reports XI R2