none
format Word file from office app RRS feed

  • Question

  • Hello

    I'm searching a way to format and save a word file from an office app as HTML using javascript.

    Can someone help me with this?

    Thanks Emiel

    Monday, July 13, 2015 3:50 PM

Answers

  • Hi Emiel,

    >> I'm searching a way to format and save a word file from an office app as HTML using javascript.

    What do you mean by format and save? If you want to save the word file as HTML with app for office, I am afraid that it is impossible. There is no such API. If you want to save the content of the word as HTML, I suggest you use “Document.getSelectedDataAsync” with “Office.CoercionType.Html” to achieve your requirement.

    # Document.getSelectedDataAsync method (JavaScript API for Office)
    https://msdn.microsoft.com/en-us/library/office/fp142294.aspx?f=255&MSPPError=-2147217396

    If this is a feature you want to include in future versions of Office Javascript API, please submit a feedback to Office Development Platform Uservoice.
    http://officespdev.uservoice.com

    Best Regards,

    Edward


    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.


    • Marked as answer by beemihae Thursday, July 16, 2015 8:55 AM
    Wednesday, July 15, 2015 8:04 AM