>>myInDesign = CreateObject("InDesign.Application.CS3") >>myDocument = myInDesign.Documents.Add >>myTextFrame = myDocument.Pages.Item(1).TextFrames.Add >>myTextFrame.GeometricBounds = Array("6p", "6p", "24p", "24p") >>myTextFrame.Contents = "Hello World!" >>>
>DECLARE myArray[4] >myArray[1] = "6p" >myArray[2] = "6p" >myArray[3] = "24p" >myArray[4] = "24p" >myTextFrame.GeometricBounds = myArray >same error
OLE IDispath exception code 30477 from InDesing.exe: Invalid value for set property 'GeometricBounds'. Expected Array of 4 Units (Doubles or String), but received "6p"