0 Replies Latest reply on May 31, 2011 10:30 AM by xmlapi

    Adding textframe to page with content, returns empty string

    xmlapi Level 1

      I'm trying to add a textframe to the first page and some content using c#:

      Page firstPage = document.Pages.FirstItem();

      TextFrame test = firstPage.TextFrames.Add(Type.Missing, Type.Missing, Type.Missing);

      test.Contents = "test";

       

       

      When you try to getthe contents out using firstPage.TextFrames[test.Index].Contents later, it returns an empty string "" when it should've returned "test". Any ideas?