I'm developing with VS2008 and Crystal Report for VS2008.
There is a report that includes an image object, which shows a JPG file stored as a blob field in Oracle database.
Most of the times that report exports to PDF correctly, but some times returns error:"The request could not be submitted for background processing" and crashes completely CR.
I realized that it crashes depending on the JPG file that has to show, but I can't determine what feature of the JPG file is making it to crash.
I have already installed this Service Pack but no change at all:
Crystal Reports Basic for VS 2008 – Service Pack 1
Extract of my code:
Try
Dim oRpt As New cr_my_report
oRpt.SetDataSource(dt) ' dt is a datatable filled from an Oracle database query
Dim exportOpts As ExportOptions = oRpt.ExportOptions
oRpt.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
oRpt.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
oRpt.ExportOptions.DestinationOptions = New DiskFileDestinationOptions
CType(oRpt.ExportOptions.DestinationOptions, DiskFileDestinationOptions).DiskFileName = Server.MapPath("../Temp/" + PDFName)
oRpt.Export() ' here it crashes
Catch ex As Exception
Finally
oRpt.Close()
oRpt.Dispose()
End Try
Best Answer
After many days, finally I discovered what is the root of problem. The thing is that CR for VS2008 or later versions, can’t handle jpg files in CMYK mode. CR only can handle jpg files in RGB mode.
It’s funny that lower versions of CR (the one that came with VS2003) could handle any kind of jpg files. Thanks, Crystal.