I have a problem in the designer of Crystal report under C#(2005).
All worked ok until a certain point where i add a section and when i
save it cannot run anymore and give me this error
==========================================
Error 1 Custom tool error: "Code generator 'ReportCodeGenerator'
failed. Exception stack = System.Exception: Load report failed. --->
System.Runtime.InteropServices.COMException (0x80000206):
Error in File C:\DOCUME~1\[username]\LOCALS~1\Temp\SpecMasterReport
{66EFA376-D451-4A3B-B4C8-62921FC7BE56}.rpt:
Invalid section.
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)" C:\Documents and Settings\
[username]\My Documents\Visual Studio 2005\Projects\Customers
\ListViewApplication\Reports\SpecMasterReport.rpt 1 1
CustomersApplication
================================================
when check at the report it is ok, but the class it create by default
behind is now empty. To fix this i have to delete the last section i
made and copy paste the .cs file i have in backup in the one in my
project. If i save from there the report work but i don't have my new
section. If i recreate it and save it does that again. So i seems that
i can't add another section. Is there any maximum section amount ???
if i don't add any new section i can even see the report in my form
with the report viewer.
i just have 86 section so far. if i would be able i would need about
450-500 sections.
|