Skip to main content
Participant
December 31, 2017
Answered

Waht is AcroAVDoc.Open function's Exception ???

  • December 31, 2017
  • 2 replies
  • 2105 views

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 ~~~~~

This topic has been closed for replies.
Correct answer Test Screen Name

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.

2 replies

Legend
January 1, 2018

To answer would be to repeat myself.

Test Screen NameCorrect answer
Legend
December 31, 2017

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.

Participant
January 1, 2018

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 !