🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20021

Re: Page Size and Orientation NOT working

#20021
From: Olav Kvern
Date: Tue, 12 Nov 2002 23:43
36 lines
1270 bytes
Bill-- 

I didn't suggest: 



myDocument.Pages.Add = myNumberOfPages 




...that makes no sense. The Add method for pages looks like this: 



Function Add([LocationOptions As idLocationOptions], [beforeOrAfterThisPage As Object]) As Object 




Each "Add" adds one page. If you want to add myNumberOfPages - 1 (because we know that the document always has at least one page) to the document, try: 



For myCounter = 1 to myNumberOfPages - 1 
myDocument.Pages.Add 
Next 




Hope this helps! 

Thanks, 

Ole
Technical Details
Message-ID: <1de67ce8.9@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de67ce8.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e817c558ea6d46ce
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-12 19:14:01 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Page Size and Orientation NOT working
Message-ID: <1de67ce8.9@WebX.la2eafNXanI>
Date: Tue, 12 Nov 2002 15:43:36 -0800
References: <1de67ce8.-1@WebX.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit