10 Replies Latest reply on May 12, 2008 3:18 AM by (suresh_devarajan)

    page frame

      Hi Friends,

      I am new to indesign scripting (vb.net). I want to add a page with frame content "hello world" from page 2 to 5.

      This is the code i have used

      For i = 2 To 5
      mypage = mydoc.Pages.Item(i)
      myframe = mypage.TextFrames.Add
      myframe.GeometricBounds = arr
      myframe.Contents = "Hello world"

      The above code adds 2 frames in 2nd and 4th page instead of adding it to the 3rd and 5th page.