Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4b7jneJXf2QOt2Do+6kyct
Power Pages - Power Apps Portals
Answered

PowerApps Portal: Is it possible to print the entity record displayed on web page as a PDF?

Like (2) ShareShare
ReportReport
Posted on 16 Jul 2020 05:24:58 by

Hello Community,

 

I have a client requirement where the client would like to be able to print either the entity record displayed on the portal web page entity form or web form as PDF. Is this possible, and how can this be achieved?

 

So for example, when viewing the entity record on the portal web page, how can we provide users with the ability to print the record to a PDF?

 

Any pointers are appreciated.

 

Thanks!

  • Verified answer
    v-xida-msft Profile Picture
    on 16 Jul 2020 at 09:42:48
    Re: PowerApps Portal: Is it possible to print the entity record displayed on web page as a PDF?

    Hi @Anonymous ,

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

    10.JPG

    Please check if you have selected proper editable component from your Portal Design.

     

    In addition, you could also consider go to your Portal Management, then find your Web Page you want to put the "Print" button under the Web Pages Menu, and open it:

    11.JPG

    Then click the Content Page under the "Localized Content" section for your opened Web Page:

    12.JPG

    then go to the "Copy (HTML)" part, switch to "HTML" tab, type the related HTML code and JavaScript code there:

    13.JPG

    then click "Save" button. After that, go to your Portal Design, click "Sync Configuration" button-> "Browse website", then check if the issue is solved.

     

    Best regards,

  • Verified answer
    oliver.rodrigues Profile Picture
    9,266 Most Valuable Professional on 16 Jul 2020 at 08:12:54
    Re: PowerApps Portal: Is it possible to print the entity record displayed on web page as a PDF?

    Hi

    in this post I talk about printing exactly a part of the page, in my example an entity list, with also an option to add a logo to your printable version: http://oliverrodrigues365.com/2018/04/25/dynamics-365-portals-exporting-content/

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    on 16 Jul 2020 at 08:07:13
    Re: PowerApps Portal: Is it possible to print the entity record displayed on web page as a PDF?

    Hi @hardikv ,

     

    Yes, I have read the blog (https://readyxrm.blog/2020/05/07/adding-a-print-button-to-a-power-apps-portal-page/) and tried to follow the same steps as suggested in the blog to add the following in the source code editor of the web page. 

     

    Paste in the following code:

    1
    2
    3
    4
    5
    6
    7
    <button onclick="PrintFunction()">Print</button>
     
    <script>
      function PrintFunction() {
        window.print();
      }
    </script>

     

    However, when I do that, the "save" button on my source code editor is greyed out and basically it's not allowing me to save the above changes.

     

    Would you have any ideas as to why it's happening like that?

     

    Thanks!

  • H V Profile Picture
    1,510 on 16 Jul 2020 at 05:38:30
    Re: PowerApps Portal: Is it possible to print the entity record displayed on web page as a PDF?

    Hi @Anonymous 

    You can print the web page in PowerApps Portal.

    Please refere below blogs for Print the WebPage:

    https://readyxrm.blog/2020/05/07/adding-a-print-button-to-a-power-apps-portal-page/

    https://www.engineeredcode.com/blog/power-apps-portals-print-invoices

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started