| Author | 
                
                  Topic   | 
                  | 
              
              
                | 
                 jalbrecht 
                  
                 
                
                22 Posts  | 
                
                  
                    
                      
                       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.
  | 
                     
                   
                 | 
              
              
                | 
                 jalbrecht 
                  
                 
                
                22 Posts  | 
                
                  
                    
                      
                       Posted - Apr 25 2024 :  13:44:27
                        
                        
                      
  | 
                     
                    
                      |  It seems to be the same problem as Mr ioster. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 jalbrecht 
                  
                 
                
                22 Posts  | 
                
                  
                    
                      
                       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 
                  
                 
                
                22 Posts  | 
                
                  
                    
                      
                       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. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 xequte 
                      
                 
                
                39222 Posts  | 
                
                  
                 | 
              
              
                | 
                 jalbrecht 
                  
                 
                
                22 Posts  | 
                
                  
                    
                      
                       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 | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                |   | 
                
                  Topic   | 
                  |