Skip to Content

Error in Crystal XI for classic ASP

Apr 10, 2017 at 04:05 PM


avatar image
Former Member


I have a ASP classic application that uses Crystal Reports XI. After a time, the ASP application begin to show a error message:

A Crystal Reports job failed because a free license could not be obtained..

How I resolve this error? Is it necessary to clean the variables? In my code, I set Object oApp e oCrpt as "nothing" in the end of code

Dim lCrApp, lCrRpt, lCrOptions, lCrTblCollection, lCrSubTblCollection, lCrTable, lCrSubRel

Set lCrApp = Server.CreateObject("CrystalRuntime.Application.11")

Set lCrRpt = lCrApp.OpenReport (namefile)

With lCrRpt
	.MorePrintEngineErrorMessages = False
	.EnableParameterPrompting = False
	   With .ParameterFields
           End With
End With

Set lCrTblCollection = lCrRpt.Database.Tables

For Each lCrTable in lCrTblCollection
	With lCrTable.ConnectionProperties
 	End With
lCrOptions.FormatType = 31 'Format PDF

lCrRpt.Export False
ExportRel = True

Set lCrRpt = Nothing
Set lCrApp = Nothing

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Apr 10, 2017 at 04:08 PM

Hi Claudio,

XI is very old and no longer supported. Time to get off of the RDC ( craxdrt.dll ) and update VS to 2010 -> 2015 and start using CR for VS .NET which you can get from here:

R1 is not supported on any current OS and I believe Microsoft no longer supports IIS 6...

The is no direct conversion from the RDC to .NET so have a look at the Samples on the download page above to get you started.


10 |10000 characters needed characters left characters exceeded