Hi Good Day!
I have problem in delphi i cannot load image (jpeg) into QRDBImage on Quick Report, I used memdata and data source,
code:
procedure TfrmEntityModule.actCOPExecute(Sender: TObject);
var
frm: Trep_EDR;
OrganizedGroup: TRoOrganizedGroup;
begin
frm := nil;
OrganizedGroup := nil;
frm := Trep_EDR.Create(Self);
OrganizedGroup := sMainApp.MCISService.GetOrganizedGroup(txtEntityNo.Text);
try
frm.mds2.Close;
frm.mds2.Open;
frm.mds2.Edit; frm.mds2PICTURE.LoadFromStream(OrganizedGroup.OrganizedGroupDetailInfo.Image_OG_Specimen_Signature);
frm.mds2.Post;
end;
frm.qr_COP.Preview;
finally
frm.Release;
FreeAndNil(frm);
FreeAndNil(OrganizedGroup);
end;
end;
I obtain this error:
EInvalidGraphic with message 'Bitmap Image is not valid'
Please help! Thanks...