E
Endo
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TFrmPict.bbtnPrivewRoomClick(Sender: TObject);
Var
aImg : TRMPictureView;
begin
aImg := TRMPictureView(rptRoomInfo.FindObject('Picture'));
if aImg = nil then
Exit;
DrawHxToReport(aImg);//画入线条到图片容器中 可以正常执行
rptRoomInfo.ShowReport;
//执行到这预览的时候出错
end;
procedure TFrmPict.DrawHxToReport(aImg: TRMPictureView);
begin
//......
DrawToCanvas(aImg.Picture.Bitmap.Canvas);//可以正常执行
end;
Var
aImg : TRMPictureView;
begin
aImg := TRMPictureView(rptRoomInfo.FindObject('Picture'));
if aImg = nil then
Exit;
DrawHxToReport(aImg);//画入线条到图片容器中 可以正常执行
rptRoomInfo.ShowReport;
//执行到这预览的时候出错
end;
procedure TFrmPict.DrawHxToReport(aImg: TRMPictureView);
begin
//......
DrawToCanvas(aImg.Picture.Bitmap.Canvas);//可以正常执行
end;