3 Replies Latest reply on Mar 10, 2014 7:20 PM by Kaingz

    Create Indesign.Application CC

    Kaingz Level 1

      It used to be CreateObject(InDesign.Application.CS6). But now i upgraded to Indesign CC i am facing problem in creating the object.

        • 1. Re: Create Indesign.Application CC
          Trevorׅ Adobe Community Professional

          Hi Zaingz


          You meant to say downgraded to cc


          If you are running the vbs from within indesign then you can use just CreateObject(InDesign.Application) or CreateObject(InDesign.Application.CC) but they won't work from outside indesign


          I shall add a post to this tread to ask the question there



          1 person found this helpful
          • 2. Re: Create Indesign.Application CC
            Kaingz Level 1

            Hi Trevor


            Thanks for your advice. I tried to use CreateObject(InDesign.Application.CC) and my scipt actually trigger the indesign.exe but got the following error message.


            System.InvalidCastException Unable to cast Com object of type System.__ComObject to inteface type 'InDesign.Application'.


            The program is run as administrator. I will have to change the reference .dll? Currently i am using Interop.InDesign.dll for CS6. 

            • 3. Re: Create Indesign.Application CC
              Kaingz Level 1

              Issue resolved ! The CC Type library is not correct register.




              C:\Windows\Microsoft.NET\Framework\v4.0.30319\regtlibv12.exe "C:\ProgramData\Adobe\InDesign\Version 9.0\de_DE\Scripting Support\9.0\Resources for Visual Basic.tlb"

              1 person found this helpful