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

Server Execution Failed : CreateObject("Acroexch.app")

Community Beginner ,
Nov 15, 2022 Nov 15, 2022

VBA program that uses Acrobat Pro to add pages bookmarks etc, has been running for YEARS. Most recent functioning setup Windows 10 with Acrobat Pro X.

Recently setup a Windows 11 PC and added Acrobat Pro DC 22 via creative cloud and server calls to create object fail.

 

Acrobat Pro X does not appear to be Windows 11 compatible hence the update to Acrobat Pro DC 22

Thank you in advance for any suggestions ?

TOPICS
Acrobat SDK and JavaScript , Windows
1.9K
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

Community Expert , Nov 23, 2022 Nov 23, 2022

In the preferences of Acrobat disable the protection mode.

Translate
Community Expert ,
Nov 22, 2022 Nov 22, 2022

Reset the reference to the "Acrobat.tlb" file. 

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Community Beginner ,
Nov 23, 2022 Nov 23, 2022

Thank you for your reply, I did re-refernce the .tlb file but routines like .addwatermark() which previously ran now throw up an error loading file.    I have googled this without a great deal of success

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
Community Expert ,
Nov 23, 2022 Nov 23, 2022

In the preferences of Acrobat disable the protection mode.

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
Community Beginner ,
Nov 24, 2022 Nov 24, 2022

Thank you, I think this has solved the problem. I did take off enhanced security in case this was also related.

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 ,
Nov 24, 2022 Nov 24, 2022

You say it's a server. Not sure what type. Acrobat must only be used in an interactive session, and does not work in a background task. 

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
Community Beginner ,
Nov 24, 2022 Nov 24, 2022
That is the error message and presumably refers to the acrobat object.

This system has run on Windows from XP without modification
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 ,
Nov 24, 2022 Nov 24, 2022

So, is it running in a normal interactive session? And does Acrobat start and run normally in this same interactive session? Did you also try disabling protected mode as suggested?

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
Community Beginner ,
Nov 24, 2022 Nov 24, 2022
LATEST

Thank you for your assistance, the Protected Mode I think was the resolution.

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