Article View: adobe.scripting.indesign
Article #16431Re: [VB] Ittarate over pageitems won't work
From: Olav Kvern
Date: Sun, 14 Sep 2003 22:02
Date: Sun, 14 Sep 2003 22:02
25 lines
1296 bytes
1296 bytes
Eelko-- Looks like you're on the right track--the Label property is a wonderful way to get at a specific page item. The original problem was that you said: Dim myPageItem As InDesign.PageItem When you get to: myPageItem = myPage.AllPageItems.Item(i) InDesign returns a Rectangle, Oval, Polygon, Line, or TextFrame--*not* a PageItem. At that point, you get a type check error. To get around this, either leave myPageItem undeclared (no "Dim") or use "Dim myPageItem as Object". Thanks, Ole
Technical Details
Message-ID:
<2ccd6887.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd6887.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,434b6b988840c727 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-14 15:08:03 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Ittarate over pageitems won't work Message-ID: <2ccd6887.5@webx.la2eafNXanI> Date: Sun, 14 Sep 2003 15:02:03 -0700 References: <2ccd6887.-1@webx.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit