Copy link to clipboard
Copied
Hi,I am writing a vba code, and need use AcroAVdoc.Open,but if no file exit , Acorbat application will show a Dialog ,it say" no file exit " and I need to use manual click the "OK" button to close the Dialog, anyone know how to control let the Dialog not show or auto click the "OK" button ??? I know AcroPDDoc.Open can do the same thing open file , I just want to know how to Control the AcroAVdoc.Open's Exception about open file failed, thanks ~~~~~
If it's showing a dialog there is no exception and therefore you cannot trap it. You can test for file existence first, you could try opening PDDoc first too. Plug-ins can generally get more control.
Copy link to clipboard
Copied
If it's showing a dialog there is no exception and therefore you cannot trap it. You can test for file existence first, you could try opening PDDoc first too. Plug-ins can generally get more control.
Copy link to clipboard
Copied
yes, I am using Dir() function to test for file existence, ask this questtion is just try to know if I can control the exception Dialog , AcroExch.AVDoc: Open メソッド | PDF ,this Japan web is using the same way , Thanks for your answer !
Copy link to clipboard
Copied
To answer would be to repeat myself.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now