Article View: adobe.scripting.indesign
Article #18390Re: Duplicate page (VB6)
From: Olav Kvern
Date: Thu, 20 Mar 2003 19:09
Date: Thu, 20 Mar 2003 19:09
11 lines
1436 bytes
1436 bytes
bluelight-- It's likely that the Duplicate method is returning a Spread object, not a Page object, and that that's the cause of your type mismatch. Many of the values returned by InDesign can be of more than one value type--so it's best to either a.) turn Option Explicit off and leave the variables undeclared (i.e., don't use Dim), or b.) declare object variables as Object, rather than as a specific object type (which is what you'll have to do in VB.NET anyway). I'd also note that VBScript doesn't use strong variable typing, and that if you're planning to create a VBScript version of your script it's better to use approach "a." Thanks, Ole
Technical Details
Message-ID:
<1de86047.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de86047.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,529d7e43b4fd8d99 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-20 11:38:23 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!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: Re: Duplicate page (VB6) Message-ID: <1de86047.0@WebX.la2eafNXanI> Date: Thu, 20 Mar 2003 11:09:25 -0800 References: <1de86047.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit