cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Crystal XI for classic ASP

Former Member
0 Kudos

Hi,

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
Next
...
lCrOptions.FormatType = 31 'Format PDF

lCrRpt.Export False
		
ExportRel = True

'END OF CODE
Set lCrRpt = Nothing
Set lCrApp = Nothing


          

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

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.

Don

Answers (0)