Jump to content

Recommended Posts

Posted

Hi,

I have an unimdbgrid (mobile version) with dataset and 10 rows for page. I load into a column the path ed the relative image. I use grid.fieldimage to load the image:

Quote

 

procedure form.<unimdbgrid>FieldImage(const Column: TunimDBGridColumn;
  const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean;
  var ATransparent: TUniTransparentOption);
var outimageBMP:TBitmap;
begin  

if Column.FieldName='path_immagine' then
  begin
    if ( (afield.AsString<>'')) then //(the complete path)
    begin
      outimageBMP := TBitmap.Create;
      try
        OutImage := TBitmap.Create;
        imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',60,60);
        OutImage.Assign(outimageBMP);
      finally
        outimageBMP.Free;
      end;
    end
  end;
end;

 

This is the problem:

I have a dataset with more than 2600 records, if I set imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',60,60), after some seconds I recive the message "connection error comunication failure: ", but if I set, for example, imgfiletobmp(afield.Value,outimageBMP,false,'AUTO',40,40), it works correctly.

Someone can explain me why?

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...