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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal report is not defined

Status
Not open for further replies.

adalli

Programmer
Feb 8, 2005
44
MT
Hi,

I included a Crystal Report in my VB.Net solution called crCreateTest.rpt. When I try to amend the report file (the RPT) through the studio, I am getting the error that "crCreateTest" is not defined.

It appears that everytime I make a change the file crCreateTest.vb gets corrupted.

Can anyone please help?

Thanks
 
How do you define your report? Could you show some code?



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Hi,

It appears that I run into a common problem. This is the error I am getting:-

D:\Hardware Control\HardwareControl\crCreateContract.rpt(1): Custom tool error: "Code generator 'ReportCodeGenerator' failed. Exception stack = System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x800002AD): Error in File C:\DOCUME~1\NICOLA~1\LOCALS~1\Temp\{C4105445-ADB4-44BA-A05C-156B5C40F929}.rpt:
The request could not be submitted for background processing.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top