DBImage issue - ignoring GraphicType
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
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
This discussion has been closed.
Comments
Be sure you add ppJPEG to your 'uses' clause to enable jpeg support in
ReportBuilder.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thanks Nico.