| aleatprog | Posted - Apr 22 2021 : 04:44:59 Hi,
 
 using ImageEnMView with AttachedImageEnView the following code works fine but deleting the first Bitmap it generates the error "List index out of bounds (-1)":
 
 ImageEnView1.PdfViewer.DeletePages(ImageEnMView1.MultiSelectedImagesList);
 
 Deleting a different Bitmap, e.g. pageindex 3, the page is deleted correctly and the previous page is selected, e.g. pageindex 2. Probably, deleting pageindex 0 the function searches the previous page, thus evoking the out of bounds error.
 
 Is there any workaround?
 
 Ale
 |