Article View: adobe.scripting.indesign
Article #19714Error whilst setting Image properties after calling link.Update
From: David Ames
Date: Mon, 25 Nov 2002 22:19
Date: Mon, 25 Nov 2002 22:19
17 lines
1381 bytes
1381 bytes
Hey All, I have a pageItem with a TypeName of "Image". I want to replace the image with another file, then scale the image to fit the frame using my own scaling method. However, it would appear that after calling link.Update, every call to the image fails with: Automation error The object invoked has disconnected from its clients. My code is as follows: Set idImage = idDocument.AllPageItems(curPageItem) Set idLink = idImage.Link idLink.Relink NewTagContent idLink.Update msgbox (idImage.ID) < Is there any way that I can change the link of an image then adjust it's properties?
Technical Details
Message-ID:
<1de6c15f.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.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,a7e500809f7dde6b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-25 14:37:53 PST From: "David Ames" <davida@in-site.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Error whilst setting Image properties after calling link.Update Message-ID: <1de6c15f.-1@WebX.la2eafNXanI> Date: Mon, 25 Nov 2002 14:19:10 -0800 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit