5 Replies Latest reply on Mar 23, 2012 9:33 PM by Green4ever

    Knowledge Sharing: Scared...! table.duplicate() is not avalible in DOM

    Green4ever Level 3

      Hi All,


      Recently I have a case that I need to duplicate the table as like paragraph.duplicate(). But I wondered it is not available in DOM. To achieve this I done with the following code,


              var tablePara = myTable.storyOffset.paragraphs[0];
              pastedObj = tablePara.duplicate(LocationOptions.AT_END, contentStory);


      Note: This is code snippet will not work. This Just for showing purpose.


      Do you think is there any other way to do this in a better manner?