System.outofmemoryexception
Hi,I am having a rpt(crystal report). i should connect the rpt via code(Inputs for rpt) then export as PDF.finally stored in shared location. Its functioning good.
But while export 25 k and above records getting 'System.OutOfMemoryException' OR invalid pointer error. any suggestions???
ReportDocument.export() //here i am getting the following error
An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object. Passing invalid VARIANTs to the CLR can cause unexpected exceptions, corruption or data loss.
catch (Exception ex) //in catch block getting system.outofmemoryexception