🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1141

Re: CS4 fails to Relink images

#1141
From: Sheldon_Zacharias
Date: Tue, 17 Feb 2009 22:52
19 lines
1629 bytes
I'm using VB.Net, and as I indicated earlier this code works 100% using InDesign Server CS3. Here is a simplified version of the code I am using to relink a image.

For X As Integer = 1 To InDesignServerPublication.Document.Links.Count
	Dim Link As InDesignServer.Link = InDesignServerPublication.Document.Links.Item(X)

	'I pulled the code that determines the new file name for simplicity
	Dim strFile as String = "SomeImage"

	If Not Link.Status = InDesignServer.idLinkStatus.idNormal Then
		If strFile <> Link.FilePath.ToString Then
			Link.Relink(strFile)
			Link.Update()
		End If
	End If
Next

When the code gets to the Link.Relink(strFile) line it errors out with the following error: �HRESULT E_FAIL has been returned from a com component.�

I have not had a chance to try this code with CS4 Desktop, I had to unistall it to get the Server Version installed. I was told by Adobe support that the two can not co-exist on the same machine.
Technical Details
Message-ID: <59b7e4e5.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b7e4e5.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e0a4293cc33906b2
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Sheldon_Zacharias@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS4 fails to Relink images
Message-ID: <59b7e4e5.4@webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 14:52:37 -0800
References: <59b7e4e5.-1@webcrossing.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit