web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use PDFViewer in Canva...
Power Apps
Answered

Use PDFViewer in Canvas App to display records from Azure blob storage

(0) ShareShare
ReportReport
Posted on by 17

Hi There,

 

I have a PDF Viewer control in Canvas app. I want to display the document in the preview control from Azure blob storage. I also want to display from SharePoint site. However I get a message "Couldn't open file, open in browser instead". Can anyone has suggestion how to make this work in the preview control?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @geemadhas ,

     

     Could you please share more details about your scenario? Would you like to display PDF file in PDF viewer in Power Apps? Where are those files stored in SharePoint, a library or a list?

     

    If files are stored in a library, please refer to below video and follow the complete steps within it:

    https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/View-PDF-files-from-SharePoint-library-to-PowerAPPS-PDF/td-p/767317

     

    If files are stored in a list as attachments, you could simply use below formula on Document property of PDF viewer control:

    First(Gallery.Selected.Attachments).Value

     Note that you only be able to preview the first file of the attachments from a single record.

     

    Speaking of preview PDF files in Azure, in Azure SQL you could preview PDFs being stored in image column or varchar(Max) column. The following video introduces both methods:

    https://www.youtube.com/watch?v=uDHLzob53oo

     

    Then for Azure Blob Storage, I do not have a license or account to test it with. Based on the official doc below, it introduces how to view files in the storage:

    Connect and upload files to Azure Blob Storage using canvas apps - Power Apps | Microsoft Docs

    So, you could try to set below formula in Document property of the PDF viewer control:

    Gallery2.Selected.value

    The Gallery2 lists all files in the folder selected from Gallery1 which lists all folders.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @geemadhas ,

     

    Have you resolved the issue? 

    If above post helps, then please consider Accept it as the solution to help the other members find it.


    Best regards,
    Community Support Team _ Jeffer Ni

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard