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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEDBMultiBitmap exception during fIEMBitmap.GetImageInfo

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jalbrecht Posted - Apr 25 2024 : 04:35:55
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.
5   L A T E S T    R E P L I E S    (Newest First)
jalbrecht Posted - Apr 26 2024 : 03:06:02
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
xequte Posted - Apr 25 2024 : 17:47:21
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
jalbrecht Posted - Apr 25 2024 : 14:16:29
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.
jalbrecht Posted - Apr 25 2024 : 13:53:22
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 !!

jalbrecht Posted - Apr 25 2024 : 13:44:27
It seems to be the same problem as Mr ioster.