Skip to Content
0
Former Member
Mar 17, 2009 at 02:57 PM

A Problem with IBlobFieldObject

153 Views

Hi all,

I am using Crystal Reports version 10.2. I used to work with Crystal Reports XI release 2, but I downgraded it because my application is 64 bit.

When i used the newer version I didn't have any problems loading image files into IBlobFieldObject and presenting them. However, in version 10.2 some files are working fine, and some throw exception. I have noticed that when I take a bmp file and try to load it into IBlobFieldObject I get an exception, but when I convert the file to jpg format it works fine.

My code looks like that:

CrystalReport = new ReportTemplate(); //CrystalReport is a member of type "ReportDocument"

// ReportTemplate is a simple Crystal Report with IBlobFieldObject that is connected to DataSet

CrystalReport.SetDataSource(Data); //_Data is the DataSet that has a table with a byte[] column

***The exception occurs after this line:***

Stream stream = _CrystalReport.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

***The exception message:***

"The request could not be submitted for background processing"

Thanks,

Arik

Edited by: arikm on Mar 17, 2009 3:58 PM