Article View: adobe.scripting.indesign
Article #20887InDesign 2.0 and C#
From: Joel Neubeck
Date: Wed, 22 May 2002 21:40
Date: Wed, 22 May 2002 21:40
13 lines
1407 bytes
1407 bytes
Has anyone had any luck using InDesign 2.0 Scripting from within a application written in C#? I currently have an app written in VB6 and would like to convert it to C#. Unfortunately, I am having some difficulty in getting the type library to be accessible from C#. InDesign requires that the application be running
Set object = CreateObject("Indesign.Application.2.0")
I have attempted to create the managed metadata format using "Tlbimp.exe" but when referencing a class I get the following
error CS0144: Cannot create an instance of the abstract class or interface 'InDesign.Application'
Any Ideas? Does anyone know the name of the Type Library that InDesign 2.0 scriting uses?
-Joel
Technical Details
Message-ID:
<ef8b07d.-1@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,b70a3c6e4b5df212,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-22 15:07:39 PST From: "Joel Neubeck" <joel@neubeck.net> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: InDesign 2.0 and C# Message-ID: <ef8b07d.-1@WebX.aaQKaf7vad4> Date: Wed, 22 May 2002 14:40:56 -0700 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit