Skip to Content
Former Member
Dec 01, 2016 at 08:58 PM

Error when I create a file: CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FileName


Hi I have an error after I create 2400 files,

the error is:

8760331-Object reference not set as an instance of an object. 11/30/2016 07:05:39 p.m. | ERROR | 14 | In CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FileName () In CrystalDecisions.CrystalReports.Engine.ReportClass.Load (String reportName, OpenReportMethod openMethod, Int16 parentJob) In CrystalDecisions.CrystalReports.Engine.ReportClass.Load () In WFGeneraDUA.frmGeneraDUA.PrintFactura (OracleConnection

Exactly I use a ReportDocument which I load once and then I set: ptDocumentFA.SetDataSource(datosDocAutorizado) by each item into the while statement. My code:


Inside: ImprimirFacturaAM

I have the code:


I dont' use dispose by each item beause is very slow. After 40 minutes of the process, I get this error: Object reference not set as an instance of an object

I don't know. what is the error?


1.png (30.6 kB)
2.png (83.3 kB)