🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16816

Scripting InD from Visual Foxpro (VFP6)

#16816
From: Krell
Date: Wed, 30 Jul 2003 19:11
30 lines
1628 bytes
I am attempting to "script" the operations of InDesign 2.x using Visual Foxpro 6 (in Windows 2000). Everything I have tried works fine, except for the GeometricBounds object property.

The following code segement executes without error:

oi=CreateObject("Indesign.application.2.0")
ComArray(oi,10)
od1=oi.Documents.Add()
oTF1=od1.TextFrames.Add()
DIMENSION ab(4)
ab(1)='6'
ab(2)='6'
ab(3)='12'
ab(4)='12'
lu=oTF1.GeometricBounds(@ab)

But the text frame remains unchanged.

Other property and methods that pass an array parameter (e.g. Move and Resize) work fine.

DIMENSION am(2)
am(1)=12
am(2)=12
lu =oTF1.Move(@am)

Several hours of Googling turned up a number of discussions of similar problems, but no definitive solutions.

Can anyone who is using VFP shed any light on the situation?

Thanks,
Gary
Technical Details
Message-ID: <1dea220d.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1447ddc90afa10db,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-30 12:40:01 PST
From: Krell <fox2gary@netscape.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Scripting InD from Visual Foxpro (VFP6)
Message-ID: <1dea220d.-1@WebX.la2eafNXanI>
Date: Wed, 30 Jul 2003 12:11:45 -0700
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit