on 04-10-2017 5:05 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.