Article View: adobe.scripting.indesign
Article #10121Re: Placing Images in InDesign Documents
From: Kanagaraj
Date: Thu, 06 Jul 2006 06:18
Date: Thu, 06 Jul 2006 06:18
17 lines
1216 bytes
1216 bytes
Hi,
Instead of using textFrame itself to place an image it is better to use rectange. Here is the code.
Dim myInDesign As InDesign.Application
Dim myDocument As InDesign.Document
Dim MyRectangle As InDesign.Rectangle
Dim myFont As InDesign.Font
myInDesign = CreateObject("InDesign.Application.CS")
myInDesign.Activate()
myDocument = myInDesign.ActiveDocument
MyRectangle = myInDesign.ActiveDocument.Rectangels.Add
MyRectangle.GeometricBounds = New Object() {"10p0", "10p0", "40p0", "40p0"}
MyRectangle.Place("c:\apple.tif", False)
Regards,
Easwaran Paramasivam
Technical Details
Message-ID:
<3bc0a58f.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0a58f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7733bbfe5b65ce99,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Kanagaraj@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Placing Images in InDesign Documents Message-ID: <3bc0a58f.2@webcrossing.la2eafNXanI> Date: Wed, 5 Jul 2006 23:18:45 -0700 References: <3bc0a58f.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing