locked
Some quick questions regarding "Apps For Office" API features RRS feed

  • Question

  • Hi,

    Is it possible for an "app for office" (specifically a task pane app) to change the mode of the open document from write to read by a click of a button?

    is it possible to trigger a refresh by a click of a button?

    thanks, Gil.

    Tuesday, November 12, 2013 3:21 PM

Answers

  • Gil, the short answer to your question is no, Office.js don't have the functionality to change the mode of the document or trigger a refresh od the page by clicking a button.  Would be great to know the details of your scenario and why you need this functionality. thanks! Juan.

    Friday, November 15, 2013 6:32 PM

All replies

  • Hi,

    >> Is it possible for an "app for office" (specifically a task pane app) to change the mode of the open document from write to read by a click of a button?
    <<
    No, we can only get the document mode through Document.mode property.
    >>is it possible to trigger a refresh by a click of a button?<<
    No.

    Task pane apps work side-by-side with an Office document, and let you supply contextual information and functionality to enhance the document viewing and authoring experience. For example, a task pane app can look up and retrieve product information from a web service based on the product name or part number according to current selection. You can see difference between VSTO and Apps for Office from the table below:

    Comparison   Dimensions

    Apps for Office

     

    VSTO

     

    VBA

    Automation and   interaction with the host computer

     

    a

     

    a

    Interaction with the   web

    a

     

    a

     

     

    User Interface   customization

    partial *

     

    a

     

    partial

    Interaction with the   Office client object models

    partial *

     

    a

     

    a

    Offline Availability

    partial **

     

    a

     

    a

    Support for latest   tools and technologies

    a

     

    a

     

     

    Support for team   development and source-control

    a

     

    a

     

     

    Ability to target   multiple host applications with one codebase

    a

     

     

     

    Ability to run code at   application-level, across documents

     

    a

    partial

    Security and sandboxed   environment

    a

     

     

     

    Ease of distribution,   lifecycle, and telemetry

    a

     

     

     

    Built-in monetization   opportunity

    a

     

     

     

    Cloud and Desktop   Compatibility

    Office 2013+, and web-based O365 clients

     

    Office 2007+
      (desktop only)

     

    Office 2000+ (desktop only)

    *: Indicates a dimension where support might be partial today, but where future investments are expected to be made.
    **: Relies on standard web offlining capabilities (for example, AppCache, Web Storage, page caching) supported by the browser.

    You can get more information from link below:
    Roadmap for Apps for Office, VSTO, and VBA

    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.

    Thursday, November 14, 2013 2:40 AM
  • Gil, the short answer to your question is no, Office.js don't have the functionality to change the mode of the document or trigger a refresh od the page by clicking a button.  Would be great to know the details of your scenario and why you need this functionality. thanks! Juan.

    Friday, November 15, 2013 6:32 PM