Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Dec 30, 2017 Dec 30, 2017

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

TOPICS
Acrobat SDK and JavaScript
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 31, 2017 Dec 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.

Translate
LEGEND ,
Dec 31, 2017 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 31, 2017 Dec 31, 2017

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 !

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 01, 2018 Jan 01, 2018
LATEST

To answer would be to repeat myself.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines