ppImage1.Picture.LoadFromStream ??
(D7, RB 7.04, SQL2K)
In BeforePrint, I need to load an image from a stream but the following
gives me a syntax error on "LoadFromStream".
Can someone tell me how to do this?
tia
procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
var BlobStream: TStream;
begin
BlobStream := CreateBlobStream(q.FieldByName('BlobImage'), bmRead);
ppImage1.Picture.LoadFromStream(BlobStream);
BlobStream.Free;
end;
In BeforePrint, I need to load an image from a stream but the following
gives me a syntax error on "LoadFromStream".
Can someone tell me how to do this?
tia
procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
var BlobStream: TStream;
begin
BlobStream := CreateBlobStream(q.FieldByName('BlobImage'), bmRead);
ppImage1.Picture.LoadFromStream(BlobStream);
BlobStream.Free;
end;
This discussion has been closed.
Comments
The TppImage.Picture property is a TPicture object that does not have the
LoadFromStream method available. You will need to use the TPicture.Bitmap
or TPicture.Graphic properties to get at this routine.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com