Solved

Free License could not be obtained in the time allocated?

Posted on 2003-11-07
10
1,313 Views
Last Modified: 2007-12-19
"Free License could not be obtained in the time allocated" is the error message I receive when trying to run one of my reports on a client's machine.

I am using CR9 Developer with Visual Basic 5.  I have 30+ reports that I distribute with the program and all but one of them works great.  The one that I get the error message on is the only one that contains subreports.  It is one report wit 4 sub reports in it.  When I click the button to start the reports generating it looks like it is working, but it takes a little whiel to generate all the data and part way through that error pops up on the screen.

Has anyone else run into this error?  Is there some setting when I can tell it to wait longer before timing out?  Am I missing some kind of licence info on the client's machine that would fix this?  Any suggestions would be appreciated.

/<evin
0
Comment
Question by:kkonkle
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 9704186
See: http://support.crystaldecisions.com/library/kbase/articles/c2012601.asp or
http://support.crystaldecisions.com/library/kbase/articles/c2012716.asp

It appears that you may have an invalid license key.  The second article contains references to the proper steps to distribute a CR9 application.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9704227
Which dlls are you distributing with the application?

If you are using CRAXDDRT you may have inadvertently used a feature that requires additional licenses for that one report.

mlmcc
0
 

Author Comment

by:kkonkle
ID: 9704295
DRRYAN,
  Those articles appear to be for VB.NET, which I am not using.  I said above it is VB 5, but it is actually VB 6 SP5.  Some of the things they suggest in their solutions do not apply to my IDE.  I did a search on the Crystal Reports site and it seems all their article assume VB.NET.  So nice of them. :)

mlmcc,
  I imported the VB project into WISE.  There are a large number of files it included.  I made sure it included CRAXDRT and CRVIEWER9, but not CRAXDDRT.  That one is for creating reports during runtime, correct?  All my program needs to do is show reports and then print them, or export them.  

The only difference with the one report that does not work is that it has sub-reports.  Do you think that would require additonal licenses?  Is there a particular license file you know of I could try including with my project?  I am not familiar with which CR files are the license files.

/<evin
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 9704471
I posted the links primarily because of their link to the distribution information and dependency information.  I knew you were not using vb.net.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9705953
There are numerous articles and samples for VB 6.  Just need to know where t find them on the Crystal site.  There main emphasis right now is .Net and CR9 but the others are still there.

I don't know of any particular files you might be needing.
http://support.crystaldecisions.com/library/kbase/articles/C2012421.asp?ref=devzone_comaspzone_gettingstarted

What database are you using?

Here is a sample using VB6
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/SimpleDemo.zip.asp

http://support.crystaldecisions.com/communityCS/FilesAndUpdates/FirstClassHotels.zip.asp

With subreports
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/SCR8_VB_RDC_Subreports.exe.asp

mlmcc
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 13

Expert Comment

by:EwaldL
ID: 9735770
Could it be that you are creating a new Application object for each subreport? This would then require 5 licenses for the craxdrt9, the standard install only has 3 licenses though and the license error would make sense. If that's the case then make sure you only create an application object for the main report
0
 

Author Comment

by:kkonkle
ID: 9739968
Great idea EwaldL!  I really thought you had it, but I've been playing with it all morning and that is not the case.  I create one application object, use it to open the main report, then loop through the main report assigning recordsets to the various subreports.  Once a recordset has been assigned to a subreport I call the ViewReport method of the CRviewer91 object for that subreport.  Once all the subreports have been taken care of I call the ViewReport method for the main report, at which time the entire, complete report should show up.

During my testing I slowly scaled down the report until it had only one subreport on it.  When I call this report on my test machine it starts to load but gives me the license error.  It then displays the CRviewer91 object with a blank copy of the subreport in it.  

When I had all 4 subreports in there it would seem like it was loading the first 3 or so and then it would give me the license error.  Once I clicked okay it would bring up the CRviewer91 window with a gray screen and another error would come up: "Not supported".

Does anyone have any other ideas?  Does anyone know any licensing files I might need?  And yes, I've looked at the examples above, and I've looked at the runtiome distribution list of files.

A tech at crystal reports suggested that I might need to use the merge modules.  I looked at the merge module named "license.msm", but it just contains a few dlls I am already including in the project.  I tried including the msm file in my project anyway, but I don't know that it executed, or whatever it does to do its thing.  Does anyone have experience with crystal reports merge modules in WISE 9.0?

/<evin
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 200 total points
ID: 9744703
I am not familiar with CR 9 but I don't think you need to call the viewer for all the subreports.  In previous versions of Crystal you simply viewed the main report which then opened the subreports.

mlmcc
0
 

Author Comment

by:kkonkle
ID: 9766007
I finally got this working.  

I tried just cutting all my subreport code out, but then when I ran the report on a client machine it said it couldn't find the database.  So I put the code back in that would set the source of the subreport, but not the code that would read the records in and show the report. (The viewReport method of the CRviewer91 object)

Thank you mlmcc and EwaldL, you both got me pointed in the right direction.

/<evin
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9768679
Glad I could help

mlmcc
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now