"Metafile is not Valid"???????????????????????

Hi
I use D5 QR to print the JPG picture,
when i show more the picture, Ite has an error message "Metafile is not
Valid", please tell me!
the code follows:   ( e-mail: w.ri...@hongkong.com )

QuickRep1.page.Columns      :=5;
QRImageRef.Height               :=89;
QRImageRef.Width               :=125;

procedure TRefPictureReportF.QRBandDetailBeforePrint(Sender: TQRCustomBand;
  var PrintBand: Boolean);
var w8,w9:string;
begin
   w8:='';   w8:=Trim(TableMaster.fieldbyname('Path_pic').asstring);
//   QRImageRef.Picture:= NIL;
   QRImageRef.Picture.Metafile.Assign(nil);
   if (length(w8)<=60) then
   begin
      if FileExists(w8) then
      begin
//         MessageDlg(w8,mtError,[mbCancel],0);
         try
           QRImageRef.Picture.LoadFromFile(w8);
           PrintBand:=True;
         except
           QRImageRef.Picture.Metafile.Assign(nil);
           PrintBand:=False;
         end;
      end else PrintBand:=False;
   end else PrintBand:=False;
end;