Hi All,
I have a piece of code that exports the the report as PDF to email, and I am getting the following error while doing so.
"Attempted to read or write protected memory this is often an indication that other memory is corrupt"
I am using Windows 2008 R2 and windows 7
the problem is happening in the Export function of ReportDocument class.
Sample Code here:
ReportDocument rptDocument = new ReportDocument();
rptDocument.Export()
and I am getting the System.AccessViolationException for this error.
Here are the details of .NET and Crystal version:
.NET version : Crystal Report for .NET Framework 4.0
Crystal Report version : Crystal report for Visual Studio 2010 (SP8)
Any suggestion would be greatly appreciated.
Thanks.