🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19998

Re: Page Size and Orientation NOT working

#19998
From: Olav Kvern
Date: Mon, 11 Nov 2002 21:10
20 lines
1487 bytes
Bill-- 

Interesting. Looks like any trip back to DocumentPreferences after setting the page orientation will reset the orientation to landscape. So you can either reset the orientation after adding the pages, or you can use Document.Pages.Add, which does not cause the problem. 

By the way--instead of checking for the state of optPortraitValue and optLandscapeValue separately, you can simply say: 



If optPortrait.Value = True Then  
   myDocumentPreferences.PageOrientation = idPortrait  
Else 
   myDocumentPreferences.PageOrientation = idLandscape  
End If  




Thanks, 

Ole
Technical Details
Message-ID: <1de67ce8.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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-11 15:36:00 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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.4@WebX.la2eafNXanI>
Date: Mon, 11 Nov 2002 13:10:44 -0800
References: <1de67ce8.-1@WebX.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit