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 / Want to Build a Button...
Power Apps
Unanswered

Want to Build a Button for printing to PDF

(0) ShareShare
ReportReport
Posted on by 9

I need to create a button to print a list I have in Sharepoint or to print a Table View I have in PowerApps. Try with the Print() function, but it only makes me a Print Screen I need all the data that is in the list

 

This is the Screen

eperezo_0-1695158295783.png

This is What the User sees

eperezo_1-1695158327189.png

 

This is the SharePoint List 

eperezo_2-1695158382981.png

 

 

 

Categories:
I have the same question (0)
  • gcmfaizan Profile Picture
    1,022 on at

    @eperezo Print function like a screenshot function which only take the print of only viewing content.
    I recoment you this post in this documentation he explain a new PDF function in PowerApps in Detail.
    Work with the PDF function .

    Althouh you can utilise the Power of Power Autmate to generat a PDF based on your query or condition. here is the general steps:

    Trigger (from Power Apps)
     |
     V
    Get items from SharePoint
     |
     V
    Create HTML table
     |
     V
    Convert HTML to PDF (OneDrive)
     |
     V
    Send email with PDF attachment

     

    Also have  look on this  Create a flow to use in your app to generate PDF .

     

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

  • reyaldi7 Profile Picture
    72 on at

    Hi @eperezo 

     

    You could use Power Automate for this case,
    but if you want it directly from PowerApps without triggering any flows, you could use PDF() function, but you have to take a note that this function is experimental.

     

    First thing you should do is enabling this function in settings > upcoming features.

    reyaldi7_0-1695179514309.png

     

    To create pdf, the button onselect this function should be in the same screen with the control you are going to print.

     

    For example you're going to print Screen1 as pdf and send it to your email, you can use this formula:

     

    Office365Outlook.SendEmailV2(User().Email,"This is the subject","This is body",
    {Attachments:Table(
     {Name:"printed.pdf",
     ContentBytes:PDF(Screen1,{ExpandContainers: true })})})

     

     

    If this post answers your question, please mark is as solved and if possible leave a like.

     

    thanks

  • eperezo Profile Picture
    9 on at

    Awesome, thanks a lot, going to try right now. Good Morning. Question? What Can I do with Powerautomate ? 

    Note: I just try this and the outcome is just a print screen

    eperezo_0-1695218815280.png

     

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard