You may exit loading and abort by inspecting the result of the ImageEnView1.IO.Aborting boolean value:
ImageEnView1.IO.LoadFromFile(iFileName);
if ImageEnView1.IO.Aborting then
begin
MessageDlg('The image can not be opened.', mtError, [mbOK], 0);
end;
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development