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 / Download PDF on Local ...
Power Apps
Unanswered

Download PDF on Local Machine

(0) ShareShare
ReportReport
Posted on by 986

Hi everyone,
I had a screen in which I was storing the data in a collection (Timesheet), and I wanted to provide a PDF Download option at the top

Sidhant_02_0-1678688682635.png

So when a user clicks on the button all the data that is present on the screen should be saved in the PDF. I have come across some videos like Rezza's where he has explained on how to export data in PDF through HTML format and then email them as well (but in that he given the basic information but not demonstrated on how to save the file on local like desktop, laptop). Is there any solution for it, do let me know.

This is the collection that contains the data:

Sidhant_02_0-1678691130754.png

 



 Power Apps PDF Function Introduction by Rezza 
So I check the above video and used to export to PDF using SharePoint List with Power Automate, but in this case the file will be saved in my SharePoint list directory and if other user wants to download it I will need to provide/share it with them. So instead I want every user to have option to download the data displayed in PDF format (or Excel) which they can refer to from their won laptop/desktop
PDF OnSelect:

Sidhant_02_0-1678698060664.png

 

Power Automate:

Sidhant_02_1-1678698113425.png

 



 Also if possible, it would be great if anyone can help me with my another query which was regarding incorrect attempts while logging in, the link for which is:
 Password Screen 

Regards,
Sidhant

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

    Hi @Sidhant_02 ,

     

    Actually, you can leverage the Print() function to print current screen and save as PDF.

    Print function in Power Apps - Power Platform | Microsoft Learn

     

    Best regards,

  • Sidhant_02 Profile Picture
    986 on at

    Hi @v-jefferni ,
    If possible could you just provide me with the example (using the above information). Also could you also have a look at my second query which is Password Screen (which is mentioned at the end: It will redirect you to the question)
     
    Regards,
    Sidhant

  • v-jefferni Profile Picture
    on at

    Hi @Sidhant_02 ,

     

    I just edited my post as I have attached wrong link. There is an example in the link of MS official document.

     

    Best regards,

  • Sidhant_02 Profile Picture
    986 on at

    Hi @v-jefferni ,
    I will using the print function, but there are some limitations that it does not allow to print SharePoint Forms (so for that is there any solution). Also please do have a look at this: Password Screen 

    Regards,
    Sidhant

  • v-jefferni Profile Picture
    on at

    Hi @Sidhant_02 ,

     

    It's not supported to use in a Customize form in SharePoint, but is supported to print forms that connect to SharePoint list. 

     

    For another question, you have not posted codes in text so it's difficult for me to type them all. Also, I don't think a column to save attempts is required. Simplified code for your reference:

    If(
     !IsBlank(LookUp(...).Title),
     Update(badPasswordCount, First(badPasswordCount), {Value: 0});
     SaveData(badPasswordCount,"Attempts");Navigate(Home),
     IsBlank(LookUp(...).Title) && First(badPasswordCount).Value < 10,
     Update(badPasswordCount, First(badPasswordCount), {Value: Value+1});
     SaveData(badPasswordCount,"Attempts");Navigate('Incorrect details'),
     IsBlank(LookUp(...).Title) && First(badPasswordCount).Value = 10,
     SaveData(badPasswordCount,"Attempts");Navigate('Freezing Screen')
    )

     

    OnStart:

    If(1=0, ClearCollect(badPasswordCount,{Value:0}), LoadData(badPasswordCount,"Attempts"))

     

    Best regards,

     

  • Sidhant_02 Profile Picture
    986 on at

    Thanks @v-jefferni 😊,
    For the expression I will try it out and let you if there any further issues. Also if a user exceeds the limit then as you have given a Freezing screen is there a way that the user cannot navigate to any other screen for a time period like 5 minutes or login-in again if they try to for a certain period.
    This the expression on my Login page for Submit button:

    f(
    !IsBlank(
    LookUp(
    'Login List',
    Title = TextInput1.Text And Password = TextInput2.Text
    ).Title
    ),
    Navigate(Home),
    Set(badPasswordCount,badPasswordCount+1),
    Navigate('Incorrect Deatils')
    );
    Reset(TextInput1);
    Reset(TextInput2);

    //If User enters wrong password 3 times then navigate to Jail screen: to be created
    If(badPasswordCount=3,
    Navigate(Home)
    )
    So the code that you have mentioned, where should it be placed?

    Regards,
    Sidhant.

  • Sidhant_02 Profile Picture
    986 on at

    Hi,
    I did try your expression but have some issues:
    On-Start:

    Sidhant_02_0-1678870696556.png

    And when I used your expression on Login button by removing my previous expression (which I have shared recently)

    Sidhant_02_1-1678870778681.png

    Could you just explain the working of expression that you have shared (for understanding)

    Also do have a look at: Query 2 (I have tagged you in it as well, so you can reply there)

    Regards,
    Sidhant.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard