Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

License Exception

Status
Not open for further replies.

Terran23

Programmer
Apr 14, 2003
8
US
Here's what I've got on my dev machine:

Visual Studio.NET 2002
Visual Studio .NET 2003
Crystal Reports 9 Advanced Edition
MSDE as my Database Engine

I'm writing an app in C# (in VS.NET 2003) and I'm trying to print a report. I get "CrystalDecisions.CrystalReports.Engine.OutOfLicenseException." The error says "A Crystal Reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store."

I also have a VB.NET app (in VS.NET 2002) that prints reports. This app prints just fine.

Also worthy of note: the C# app prints the report in the same way that the VB.NET app does.

So what could be causing this error? Do I need to put my CR9 key into my app somewhere? Point VS.NET 2003 to the CR9 app?

I have CR9 set as my default Crystal Report editor in VS.NET 2003.

Thank you for any information you can give.

-Adam-
 
I did download the patches, but it still doesn't work.

As much as I wish that were a simple "multiple instances" case, I highly doubt it. It's a one-click/one-print kinda thing. I press the print button, it creates the one report and sends it to the printer...no print-previews, no loops of any kind, etc.

Aside from a refresh of my DataSet immediately beforehand, this is the entirety of my Print code:

--begin code--

//Create new instance of RideSchedule Report
// assign it to a Crystal ReportDocument object
// attach the DataSet as its DataSource
// and send it to the printer.
RideSchedule schedReport = new RideSchedule();
ReportDocument repDoc = new ReportDocument();
repDoc = schedReport;
repDoc.SetDataSource(Globals.rideSchedule);
repDoc.PrintToPrinter(1, true, 0, 0);

--end code--

So unless I'm misunderstanding your meaning of "creating multiple instances," then I don't know what else to try.

Any other thoughts?

Thanks for the help.

-Adam-
 
Have you found a solution yet to the Outoflicense error. I am getting that too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top