🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19758

Re: VB6&ID - Replace function like ImportXML

#19758
From: Olav Kvern
Date: Thu, 21 Nov 2002 03:17
25 lines
1642 bytes
David-- 

Well, I guess the first question is: what sort of PageItem is it that's giving you the problem? Put a Stop on that line in VB and debug--the Watch window or the Locals window can really help out. 

It might be that the PageItem's content type is unassigned--I've seen this, but only in documents converted from PageMaker or QuarkXPress. In that case, you can trap the error using a structure similar to the following: 



Err.Clear 
On Error Goto Next 
myContentType = idPage.PageItems(curPageItem).ContentType 
If Err.Number <> 0 Then 
Rem Do something useful 
Err.clear 
End If 
On Error Goto 0 




I agree that it would be great to have an object model diagram, and will try to get it into the next version of the Scripting Guide. We just don't have one yet. 

Thanks, 

Ole
Technical Details
Message-ID: <1de6b092.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6b092.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,9fb81744ad733cf6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-20 19:37:51 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: VB6&ID - Replace function like ImportXML
Message-ID: <1de6b092.2@WebX.la2eafNXanI>
Date: Wed, 20 Nov 2002 19:17:19 -0800
References: <1de6b092.-1@WebX.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit