🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17420

Re: [VB] Placing library Item on a specific page

#17420
From: roberto soto
Date: Tue, 10 Jun 2003 14:45
19 lines
1234 bytes
Hi maxdunn,

Try this:

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

'Assuming that each spread have only one page
    'Go to the page #3
    Set mySpread = myDocument.Spreads.Item(3)

Set MyWindows = myIndesign.Windows.Item(1)
    MyWindows.ActiveSpread = mySpread

Set myLibrary = myIndesign.open("C:\myLibrary.indl")
    Set myAsset = myLibrary.assets.Item(1)
    myAsset.Place myDocument

Roberto
Technical Details
Message-ID: <1de97996.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de97996.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8418d6f487902b6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-10 08:07:55 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-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Placing library Item on a specific page
Message-ID: <1de97996.0@WebX.la2eafNXanI>
Date: Tue, 10 Jun 2003 07:45:36 -0700
References: <1de97996.-1@WebX.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit