Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Free License could not be obtained in the time allocated?

Posted on 2003-11-07
10
Medium Priority
?
1,380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 101

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
Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

 
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 101

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
 
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 101

Accepted Solution

by:
mlmcc earned 600 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 101

Expert Comment

by:mlmcc
ID: 9768679
Glad I could help

mlmcc
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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