Canvas App: View PDF stored in SharePoint Document Library | No Flow
HTML-код
- Опубликовано: 30 июл 2024
- Display PDF in Canvas App from SharePoint without using any flow.
Support me by SUBSCRIBING and LIKING this video.
THANK YOU!
Related Searches
1. Power Apps View A PDF Stored In A SharePoint Document Library
2. Super easy method to Display PDF Files Stored in SharePoint in Power Apps PDF Viewer
3. PowerApps document viewer
4. PDF viewer control (experimental) in Power Apps
5. How do I open a PDF in PowerApps PDF viewer?
6. PowerApps PDF Viewer SharePoint Document Library without flow
7. How to view PDF files using PDF Viewer in PowerApps
Image Code Below
If(
// checks the file extension
EndsWith(ThisItem.'File name with extension', "pdf"),
// pdf icon
"data:image/svg+xml;utf8, %3Csvg%20%20viewBox%3D%270%200%202048%202048%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M1920%201664h-128v384H128v-384H0V640h128V0h1243l421%20421v219h128v1024zM1408%20384h165l-165-165v165zM256%20640h1408V512h-384V128H256v512zm1408%201024H256v256h1408v-256zm128-896H128v768h1664V768zM448%20896q40%200%2075%2015t61%2041%2041%2061%2015%2075q0%2040-15%2075t-41%2061-61%2041-75%2015h-64v128H256V896h192zm0%20256q26%200%2045-19t19-45q0-26-19-45t-45-19h-64v128h64zm448-256q53%200%2099%2020t82%2055%2055%2081%2020%20100q0%2053-20%2099t-55%2082-81%2055-100%2020H768V896h128zm0%20384q27%200%2050-10t40-27%2028-41%2010-50q0-27-10-50t-27-40-41-28-50-10v256zm384-384h320v128h-192v128h192v128h-192v128h-128V896z%27%20fill%3D%27%23d13438%27%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
// file icon
"data:image/svg+xml;utf8, %3Csvg%20%20viewBox%3D%270%200%202048%202048%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath%20d%3D%27M1243%200l549%20549v1499H128V0h1115zm37%20219v293h293l-293-293zM256%201920h1408V640h-512V128H256v1792zm256-896V896h896v128H512zm0%20256v-128h896v128H512zm0%20256v-128h896v128H512z%27%20fill%3D%27%237a7574%27%3E%3C%2Fpath%3E%3C%2Fsvg%3E"
)
#sharepoint #canvasapps #pdf #microsoftpowerapps #powerapps #microsoftpowerplatform #developer #powerplatformdeveloper #powerappsdeveloper #canvasapp #sharepoint #sharepointonline Наука
Nice one, your guide helped me figure out a problem.
@@PapaUsman great✅
Very interesting. Thank you so much.
Great job!...Have you found a way to reduce the loading time?
Thanks for the video!
Thank you very much for this method. It works really well. But it can show on Android system and iOS can't work. Is there a way to make it display on iPhone or iOS?
Super Cool technique… Exciting… However, I followed your steps and I do see the transformation of the url but the “Couldn’t Open PDF file” is still happening where I have not copied the url to the blob data column. Does this require pasting the URL for in every record in my library? Please advise… thanks
Thankyou 💫....
Sometime pdf opening take time.
You can mail me where you are facing issue at lastminutescode@gmail.com
*Please attach screenshots*
No you don't have to paste URL for every record.
THAAAAAAAAAAAANK YOU!!!
Most welcome 💫
Thanks Vinay for this video. How about attachment viewer?. Kindly, do video on that too.
Most welcome!
Thank you, it is a good idea, but..... I have 3 users with different rights for the SharePoint library (all can read, and some can edit) however, the "appres"... part is slightly different in one place for each of them.
I do not know how to handle this...
Has anybody already tackled this obstacle?
Most welcome..... Will look into it
in reza video, we can read that :
"
The problem is, as someone mentioned, that the appres string that is generated includes a unique user code embedded within the string. So while the hard coded appres string will work for the developer all day, it will not work for anyone else, as they will have a different string generated/required for them. SO....the solutions is to grab the appres code dynamically, for each user.
This is what I used.
On-select of the gallery, grab a variable
Then in the Documents property for the PDFviewer split and append string as follows: (replacing the hardcoded appres string)
First(Split(appresValue,"path=%252f")).Value&"path=%252f"&EncodeUrl(gallery.Selected.'Folder path' & gallery.Selected.'File name with extension')
This solved it for me.
"
but still, I don't understand how to apply this solution
Thank-you for the tip...I have a doubt
Does this way of viewing pdf will work when our app is published for users?
Do we have to do any additional steps for working the same for them?
Bcoz for me ...this method works only in my machine and not able to view pdfs when my app is published..
Welcome💫...
Does your users have read write access to the SharePoint?
@@lastminutecoders - yes they do but still it only works on my acc and not in any other acc.
@@AsadRajput I tested and it is working with other acc as well...... you can mail your error at lastminutescode@gmail.com
u find a solution for that ?
@@AsadRajputplease help me
hi, my pdf viewer comes out blurry do you have a solution for that?
In play mode also it's blurry
@@lastminutecoders yes, do you have a solution for that?
@@rayana5062 no there isn't any solution it should go away on its own