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

    page frame

    Level 1
      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
      mydoc.Pages.Add()
      mypage = mydoc.Pages.Item(i)
      myframe = mypage.TextFrames.Add
      myframe.GeometricBounds = arr
      myframe.Contents = "Hello world"
      Next

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