Why is it that I'm only permitted to use a fraction of the export types that are obviously available to me? Take note of the following code (Windows app written in VB.Net via Visual Studios 2008):
Dim crxApp As new CRAXDDRT.Application()
Dim crxRpt As CRAXDDRT.Report
crxRpt = crxApp.OpenReport("D:\MyReport\HANSCOM-PHReBills.rpt")
With crxRpt.ExportOptions
'.FormatType = CRExportFormatType.crEFTText
.FormatType = CRExportFormatType.crEFTRichText
.DiskFileName = "D:\MyReport\Exports\MyExport.rtf"
End With
crxRpt.Export(False)
It works if I use crEFTRichText but I get the following error if I use crEFTText.
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
If I alter crxRpt.Export(False) to crxRpt.Export() the system will prompt me with only a handful of export options. But I can tell from the code in the application that I've inherited, it has not always been this way. This used to export using crEFTText (as CSV). Now I can't do that. Please advise.
Note: I'm using craxddrt.dll version 10.5.0.1943
Dim crxApp As new CRAXDDRT.Application()
Dim crxRpt As CRAXDDRT.Report
crxRpt = crxApp.OpenReport("D:\MyReport\HANSCOM-PHReBills.rpt")
With crxRpt.ExportOptions
'.FormatType = CRExportFormatType.crEFTText
.FormatType = CRExportFormatType.crEFTRichText
.DiskFileName = "D:\MyReport\Exports\MyExport.rtf"
End With
crxRpt.Export(False)
It works if I use crEFTRichText but I get the following error if I use crEFTText.
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
If I alter crxRpt.Export(False) to crxRpt.Export() the system will prompt me with only a handful of export options. But I can tell from the code in the application that I've inherited, it has not always been this way. This used to export using crEFTText (as CSV). Now I can't do that. Please advise.
Note: I'm using craxddrt.dll version 10.5.0.1943