none
Open local file in edit mode in ms-office application for Android RRS feed

  • Question

  • Hi,

    I am developing an Android app from which I want to launch MS office apps to view and edit office files. For example, open a docx stored locally in the device for editing.

    Previously we were opening such file with a file URI passed in an intent with e.g. the "com.microsoft.office.word" package name. The file would open in Word for Android and the user could edit it and save it. No problem.

    Now we had to change so that we use the FileProvider class of Android with the permissions for reading and writing (https://developer.android.com/reference/android/support/v4/content/FileProvider.html). With this implementation other apps can edit the files but Microsoft Office apps for Android are opened in read-only mode with no option to change it.

    This seem to be a common issue that happens to others too, as seen in stackoverflow: [https://stackoverflow.com/questions/40157389/when-using-android-file-provider-files-dont-have-correct-permissions-despite-f] and [https://stackoverflow.com/questions/42252933/xamarin-forms-android-fileprovider-grantwriteuripermission-not-always-working].

    I have also found this link with information about how to invoke the office apps in msdn [https://msdn.microsoft.com/EN-US/library/mt238280.aspx], but it seems quite incomplete and I haven't been able to make it work with an intent and a local file.

    Is there a way to open a local file in edit mode from an android app in microsoft office for Android? Is a fix coming for Office where the official FileProvider method will be correctly supported?

    Thursday, August 3, 2017 7:28 AM

Answers

  • Hello,

    MSDN doesn't have any specific forum for Office for Android Development. There are no other related documents in MSDN except Integrate with Office from Android applications. So I suggest you post on StackOverflow forum or Xamarin forum.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by joravasal Wednesday, August 9, 2017 8:04 AM
    Monday, August 7, 2017 7:57 AM
    Moderator

All replies

  • Hello,

    Thanks for posting here. However this forum is for issues related to MS Access tables, forms, query etc. I suggest you post on stack overflow or android dev forum for your issue about opening office document in android apps. Sorry for any inconvenience and have a nice day! 

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, August 4, 2017 7:39 AM
    Moderator
  • Thanks for notifying me, I kind of misunderstood the term "Access".

    I'll try to find some other forum to post it. I guess there is none official for Office mobile apps for Android?

    Kind regards,
    Jorge.

    Friday, August 4, 2017 10:52 AM
  • Hello,

    MSDN doesn't have any specific forum for Office for Android Development. There are no other related documents in MSDN except Integrate with Office from Android applications. So I suggest you post on StackOverflow forum or Xamarin forum.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by joravasal Wednesday, August 9, 2017 8:04 AM
    Monday, August 7, 2017 7:57 AM
    Moderator
  • Thanks Celeste, I have posted the question here: https://stackoverflow.com/questions/45505243/opening-local-files-in-edit-mode-with-microsoft-office-mobile-app-using-android

    Just in case someone stumbles upon this topic here.

    Wednesday, August 9, 2017 8:09 AM
  • Hi @joravasal,

    I've the same problem in editing office documents from my Android app.

    Would you be kind to share your experience?

    Did you have any luck with this one?

    Monday, June 3, 2019 2:16 PM
  • You should be following joravasal in StackOverflow, not here.

    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

    Tuesday, June 4, 2019 7:52 PM