ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEDBMultiBitmap exception during fIEMBitmap.GetImageInfo
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jalbrecht

20 Posts

Posted - Apr 25 2024 :  04:35:55  Show Profile  Reply
Hi,

I am using 13.1.0 version of your fantastic tool.

While using TIEDBMultiBitmap, when I have a new query proviging a nex set of records, I have many time a message indicating that IDX in info := fIEMBitmap.GetImageInfo( idx ); is of limits while charging the images.

Project xxx.exe raised exception class EIEException with message 'Index out of bounds (0)'.

Then all images loaded are with a default icon and not the expected thumbnail.

Can you please help ?

My initilisation :

ImageEnView1.SetModernStyling;
fDBMBitmap := TIEDBMultiBitmap.create( udm1.DS_fi_Img , '', 'CHEMIN_CPL', dmAllRecords );
//The file name is complete in field CHEMIN_CPL

fDBMBitmap.ImagePath := '';
fDBMBitmap.FollowDBCursor := True;
fDBMBitmap.AutoLoad := true;
fDBMBitmap.mode := dmAllRecords ;

ImageEnView1.SetExternalMBitmap( fDBMBitmap );
imageEnView1.DefaultTopText := iedtCustom;


Best regards.

jalbrecht

20 Posts

Posted - Apr 25 2024 :  13:44:27  Show Profile  Reply
It seems to be the same problem as Mr ioster.
Go to Top of Page

jalbrecht

20 Posts

Posted - Apr 25 2024 :  13:53:22  Show Profile  Reply
OK that was it.

So what I did, I removed the link in the TImageEnMview in AttachedImageenView.
I replaced the TImageenView that was originaly linked and replace it with a TImageEnDBView.
The TImageEnDBView is linked (Data source and Field name) the same as in my declarations :

ImageEnView1.SetModernStyling;
fDBMBitmap := TIEDBMultiBitmap.create( udm1.DS_fi_Img , '', 'CHEMIN_CPL', dmAllRecords );
//The file name is complete in field CHEMIN_CPL

fDBMBitmap.ImagePath := '';
fDBMBitmap.FollowDBCursor := True;
fDBMBitmap.AutoLoad := true;
fDBMBitmap.mode := dmAllRecords ;

ImageEnView1.SetExternalMBitmap( fDBMBitmap );
imageEnView1.DefaultTopText := iedtCustom;


and It works like a charm.
No ore messages. :-) YaY !!

Go to Top of Page

jalbrecht

20 Posts

Posted - Apr 25 2024 :  14:16:29  Show Profile  Reply
New question with this enviroment, how do I display a specific page in the TImageEnDBView, if in my TIEDBMultiBitmap I have a multi pages PDF file ?
When I had a linked TImageEnMview it was automatic, but now I do not know how to do it.
Go to Top of Page

xequte

38615 Posts

Posted - Apr 25 2024 :  17:47:21  Show Profile  Reply
Hi

You probably should not use TImageEnDBView as it is a deprecated component, instead use a TImageEnView and sets its external bitmap to a TIEDBBitmap:

http://www.imageen.com/help/TIEDBBitmap.html

Regarding the page index, you would set:

https://www.imageen.com/help/TIOParams.ImageIndex.html

But I don't know that it will be honored for database loading.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jalbrecht

20 Posts

Posted - Apr 26 2024 :  03:06:02  Show Profile  Reply
Hi Nigel,
I think that's what I did in the begining.
That was the way I had all the error messages that I don't have with the deprecated component.

Best regards
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: