cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GauravG
Continued Contributor
Continued Contributor

Opening the Word (.docx) file within Power App and giving an export option of the file too

Hi All,

I have a word document in SP Library.

The issue with using Launch is that it opens in the new window and also is editable.

We just want the form to be non-editable and be available for download so that people can download this template and create their own file rather than changing the original template.

Additionally, if we can make the word file open within Power Apps- that would be great.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@GauravG 

You can attempt to use the Download function for this, but essentially it will produce similar results as the action of what happens to files is governed by the browser and device, not by PowerApps.

As for the editing...not much that I am aware of to resolve that as again.  A document library is a library where users can edit files...so, that editing would be available.  You could probably restrict by permissions, but you'd have a pretty poor experience for the users.

 

Really the only ways (at least that I am know of) to deal with it are to not work with "raw" formats like word and excel documents, but to instead store as PDF.  The next step from that would be to have the app initiate a flow to send the doc as an attachment in email.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

4 REPLIES 4
RandyHayes
Super User III
Super User III

@GauravG 

How a file link is handled is really more of the browser settings than anything to do with PowerApps.  PowerApps can launch a url...what happens to it after that is completely up to the browser.

 

If you just want to view it in the PowerApp, you can put an Image control in the App and set it to the Tumbnail  (.Small, .Medium, or .Large) column in the record of the library item.  You will not get much control over it, but you will be able to view it.

 

Your only real option for taking control of the process beyond that is limited as, again, PowerApps will only launch to a url - the browser takes it from there, would be to utilize PowerAutomate to email either the actual doc or a PDF of the doc - depending on the needs.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes
GauravG
Continued Contributor
Continued Contributor

@RandyHayes Is it possible to embed this document within Power Apps. So, that whenever anyone clicks it- it downloads on their desktop? Exporting it from within Power Apps would be great.

Additionally, we don't mind the link opening on another tab- the issue is that the doc file opens in edit mode and allows the user to make changes. We don't want any changes on that file.

RandyHayes
Super User III
Super User III

@GauravG 

You can attempt to use the Download function for this, but essentially it will produce similar results as the action of what happens to files is governed by the browser and device, not by PowerApps.

As for the editing...not much that I am aware of to resolve that as again.  A document library is a library where users can edit files...so, that editing would be available.  You could probably restrict by permissions, but you'd have a pretty poor experience for the users.

 

Really the only ways (at least that I am know of) to deal with it are to not work with "raw" formats like word and excel documents, but to instead store as PDF.  The next step from that would be to have the app initiate a flow to send the doc as an attachment in email.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

GauravG
Continued Contributor
Continued Contributor

The download function works as expected and allows the file to be downloaded to the local desktop. Thanks!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (36,646)