Article View: adobe.scripting.indesign
Article #14857Visual Studio won't read InDesign CS (3.0) "Type library"
From: Jim_Schuyler
Date: Wed, 14 Jan 2004 19:49
Date: Wed, 14 Jan 2004 19:49
9 lines
2255 bytes
2255 bytes
I have a Visual Basic (Visual Studio .NET) app which works perfectly with PhotoShop 7.0 and with InDesign 2.0 "Trial" edition. There's a linkage file called a "type library" that allows Visual Studio to see the types/classes/methods available for scripting, and you must add this file to the VS/VB project using "Add Reference" in order to write VB programs which communicate with InDesign. I just installed InDesign CS (and PhotoShop CS) and there's a new "Adobe InDesign 3.0 Type Library" to replace the old 2.0 trial version I had. The process of adding references is described in the InDesign CS Scripting manual supplied on the CD, and is basically the same as adding references for the old trial version. In Visual Studio, when I try to "Add Reference" to this new file, Visual Studio reports "A reference to 'Adobe InDesign 3.0 Type Libary' could not be added. This is not a COM component." I have also tried adding the file using the "Browse" mode, but get the same result. It is a file with an RPLN extension, which I have not seen before - I am able to add the PhotoShop scripting references, which are of type TLB. And the PhotoShop scripting works with the CS version of the program. But, I cannot add InDesign's reference information. Adobe installation support says this is beyond their capabilities. Adobe Developer Network (by phone) says Adobe no longer supports VB scripting (this CAN'T be true). So Adobe resources don't seem to know. Anyone know how to get around this? Or to find a corrected version of this file? Or another way to connect InDesign CS to Visual Basic?
Technical Details
Message-ID:
<2ccf5e3b.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!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,205054a4c19bb487,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-14 12:08:31 PST From: Jim_Schuyler@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Visual Studio won't read InDesign CS (3.0) "Type library" Message-ID: <2ccf5e3b.-1@webx.la2eafNXanI> Date: Wed, 14 Jan 2004 11:49:50 -0800 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit