none
Clear Whole Document using Javascript Office API RRS feed

  • Question

  • Hello,

    Would you help me how to clear or select all text in document word using javascript Office API?

    Thanks before..

    Friday, May 16, 2014 3:01 PM

Answers

  • Hi Rony,

    As far as I know, there is no such method in JavaScript API for Office. It is different with Office object model. We can read and set the data from selection or binding object in apps for Office.

    You can get more detail about apps for Office from link below:

    Overview of apps for Office

    I suggest you creating add-in for Word application. You can use Document.Content.Delete  or Document.Content.Select to delete/select all text in document.

    Link below may also helpful:

    Getting Started Programming Application-Level Add-Ins

    Document.Content

    Best regards

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, May 19, 2014 9:10 AM
    Moderator