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

InDesign object reference error in C#

Community Beginner ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

Hi Team,

 

we have developed a Tool using InDesign com object in C#, in the earlier version cc 2017 tool works fine, but in latest version of CC 2022 tool works in few system and in other system tool show object reference error. please guide us to over come this issue

 

3fd1425a-b058-4bdd-b259-810edc95a4eb.jpg

Thanks,

Bala V

TOPICS
How to , Scripting , SDK

Views

141

Translate

Translate

Report

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 ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

You need to upload better screenshot, I can't see a damn thing in it, I surely have a weak eyesight but still it's too bad. However, some pointers that might help are discussed below.

  • I am not sure but this process does need the tlb file, check if it's created or not. It's automatically created at InDesign launch. Try running with Admin priveleges and then see. See this discussion for more details on the path of tlb file etc
  • Secondly if you are using a C++ plugin to expose out some methods and if only those method calls are failing but the native API calls are working then make sure your plugin is loaded properly. To test check if you can call those methods using jsx atleast.

-Manan

Votes

Translate

Translate

Report

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 ,
Jan 20, 2022 Jan 20, 2022

Copy link to clipboard

Copied

Hi Manan,

 

Thanks for the reply, yes i have tried with your suggestion, but still not working in few system, even tried reinstall but still same error is thrown, but same tool works fine in CC2022, only few system facing this issue

 

Thanks 

BalaV 

Votes

Translate

Translate

Report

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 ,
Jan 22, 2022 Jan 22, 2022

Copy link to clipboard

Copied

LATEST

But what eactly is the cause of the issue

  • Missing tlb file?
  • Or failing on some methods exposed by your custom plugin.

We need to identify the cause before thinking on how to solve the issue

-Manan

Votes

Translate

Translate

Report

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
Guide ,
Jan 20, 2022 Jan 20, 2022

Copy link to clipboard

Copied

Maybe versioned scripts also work with C# / COM.

Check your script preferences for the current DOM version.

Votes

Translate

Translate

Report

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