Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

DBImage issue - ignoring GraphicType

edited June 2003 in General
Hi,
I am currently evaluating version rb 7.02 professional, running in
Delphi 6 update 2.

Trying to get a report with a DBImage to display a JPEG out of a blob field,
via ADO (SQL Server, using Delphi's TADOQuery)

Set it up in the report designer, previews correctly in the preview pane,
shows correctly in the design pane.
At run time I get the following error:

EInvalidGraphic - 'Bitmap image is not valid'
This is being raised inside TBitmap.ReadStream, originally called from
TPicture.Assign.

This causes RB to report EPrintError - 'Cannot generate report.' + CRLF +
CRLF + 'Invalid Image'

Although the dbImage.GraphicType is set to JPEG at design time, at run time
is seems to reset to 'Bitmap'. Setting this property at runtime seems to
have no effect and is not reflected in the properties value.

Is this a bug or a restriction in the demo version of report builder ?

Regards,
David

Comments

This discussion has been closed.