on 12-01-2016 8:58 PM
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?
Unfortunately you can't keep all of those reports open. they must be closed and disposed of.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.