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
 Problem redisplaying deleted PDF file in Image EnView1 component
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ali

Iran
112 Posts

Posted - Apr 09 2025 :  09:16:15  Show Profile  Reply
Hello

When we open a folder containing images and PDF files with the following command:
If we delete the image and run the above command again, ImageEnView1 does not bring back the deleted image and there is no problem.
But if we open the PDF file in ImageEnView1 and then delete the PDF file and run the following command again, even though the PDF file does not exist, unfortunately ImageEnView1 still opens the opened PDF file.
We have to close the entire program and reopen it for it to work properly.

ImageEnMView1.Clear;
ImageEnView1.Clear;
ImageEnView_Scan.Clear;
ImageEnMView_Temp.Clear;

if not DirectoryExists(Path_of_Documents1+'\'+DM1.FDMain_Query.FieldByName(Field_name1).AsString ) then
CreateDir(Path_of_Documents1+'\'+DM1.FDMain_Query.FieldByName(Field_name1).AsString );
ImageEnMView1.FillFromDirectory(Path_of_Documents1+'\'+DM1.FDMain_Query.FieldByName(Field_name1).AsString+'\' );

Best Regards

Ali Abbasi

xequte

38958 Posts

Posted - Apr 09 2025 :  22:54:37  Show Profile  Reply
Hi Ali

What is the value of ImageEnView1.PDFViewer.Enabled?

http://www.imageen.com/help/TIEPdfViewer.Enabled.html

If it is Enabled, set Enabled to False to reset the currently loaded PDF.


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

ali

Iran
112 Posts

Posted - Apr 10 2025 :  09:33:31  Show Profile  Reply
Hi Nigel
Thank you.

In ImageEnView1 is ok.
ImageEnView1.PdfViewer.Enabled := False;

But for ImageEnMView1 show The error "undeclared identifier PdfViewer".
I use iepdf.
ImageEnMView1.PdfViewer.Enabled := False;

After the above command my previous problem with ImageEnView1 is solved.
But when I add another pdf file and click on that pdf in ImageEnMView1 I want the pdf file to show in ImageEnView1 it gives the following error in my attachment file:

When

Best Regards

Ali Abbasi

Go to Top of Page

xequte

38958 Posts

Posted - Apr 10 2025 :  18:56:40  Show Profile  Reply
Sorry, I'm not really seeing what you are doing here. Please send me a very simple demo that shows the error.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: