🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16490

Re: [VB]Place a Frame on the current page

#16490
From: roberto soto
Date: Wed, 10 Sep 2003 14:49
15 lines
1289 bytes
Hi Eelko,

You need to use the Active Spread from Active Windows from your document:

Set myIndesign = CreateObject("InDesign.Application.2.0")
    Set myDocument = myIndesign.ActiveDocument
    Set mySpread = myIndesign.ActiveWindow.ActiveSpread

Set myPage = mySpread.Pages.Item(1)

Set myTextFrame = myPage.TextFrames.Add
    myTextFrame.GeometricBounds = Array("5p", "4p", "18p", "22p")

Roberto
roberto1soto@yahoo.com
Technical Details
Message-ID: <2ccd6297.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd6297.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,309e8a3ae2f5388b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-10 08:08:15 PST
From: "roberto soto" <roberto1soto@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB]Place a Frame on the current page
Message-ID: <2ccd6297.1@webx.la2eafNXanI>
Date: Wed, 10 Sep 2003 07:49:49 -0700
References: <2ccd6297.-1@webx.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit