🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20657

VB problem with rotate

#20657
From: Gary Dunfield
Date: Sat, 29 Jun 2002 23:15
32 lines
2037 bytes
I am trying to update some scripts that worked fine under 1.5 to 2.0 and I can`t seem to make the following work... 

Private Sub PlacePDF(iPage As Variant, iFile As Variant, xPos As Variant, yPos As Variant, iAngle As Variant) 
myPDFPlacePreferences.PageNumber = iPage 
Set myPDF = myPage.Place(iFile, Array(xPos, yPos)) 
If iAngle = 1 Then 
��������myPDF.Rotate 270, idCenterAnchor 
End If 
If iAngle = 2 Then 
��������myPDF.Rotate 180, idCenterAnchor 
End If 
If iAngle = 3 Then 
��������myPDF.Rotate 90, idCenterAnchor 
End If 
End Sub 

Private Sub PlaceEPS(iFile As Variant, xPos As Variant, yPos As Variant, iAngle As Variant) 
Set myImage = myPage.Place(iFile, Array(xPos, yPos)) 
If iAngle = 1 Then 
��������myImage.Rotate 270, idCenterAnchor 
End If 
If iAngle = 2 Then 
��������myImage.Rotate 180, idCenterAnchor 
End If 
If iAngle = 3 Then 
��������myImage.Rotate 90, idCenterAnchor 
End If 
End Sub 

The two rouintes import a PDF or an EPS, place it at a certain x y position and then (if necessary) rotate the placed image.  The rotate fails.  Message "Object does not support this property or method" The reference claims it does. It used to work - under 1.5.  Can someone please help me out? 

Gary
Technical Details
Message-ID: <ef96730.-1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!wn2feed!worldnet.att.net!206.252.192.28!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,60728864aa6ad5bb,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-06-29 16:37:56 PST
From: "Gary Dunfield" <gdunfield@gaspereau.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!wn2feed!worldnet.att.net!206.252.192.28!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: VB problem with rotate
Message-ID: <ef96730.-1@WebX.aaQKaf7vad4>
Date: Sat, 29 Jun 2002 16:15:24 -0700
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit