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 / Using a Timer To Delay...
Power Apps
Answered

Using a Timer To Delay for a few seconds before Printing

(1) ShareShare
ReportReport
Posted on by 59
Good morning All,
 
I have an issue that I have job cards that print which is fine but when navigating to the next screen it loads the job card but does not load the contents and displays the next print dialouge.
Ideally I want to press a button and it prints all the job cards but it is a limitation on PowerApps which I understand.
 
Therefore, at the moment when going to the job card, it the user presses print, then it prints and then should navigate to next job card and then print again but it prints before navigating and changes the contents on the job card after displaying the print dialogue.
 
Hope this makes sense?
 
There are multiple job cards that need to be printed and increment the job card value that displays the next job card.
It displays the job card number correctly but not the below contents unless print button is pressed.
 
If(
    !IsBlank(JobCardPage),
    Print()
);
 
Set(
    JobCardPage,
    JobCardPage + 1
);
 
Clear(ProdList);
Set(
    myVariable,
    ""
);
If(
    Label18.Text = "",
    Navigate(
        NoFurtherJobCards,
        ScreenTransition.Fade
    )
);
 
Print()
 
Thanks,
 
O
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
    HI,
     
    Let's assume each screen has a Print button that they COULD print, and also you have the scenario where they want to print them all 
     
    You can use the OnVisible Property, along with a Context Variable to do the printing. 
     
    Also, do you want to block the person from doing anything while its printing??? if so thats another thing secondary.
     
    Steps
    1) They Press Print on Screen 1 (and it's the Print All Option)
     
    Now I don't use Print very much so I am not sure if it Blocks while printing or not. I am guessing Not??? Since its probably Queueing it via the Driver.
     
    2) Kick off Print() for screen one
     
    3) In Screen 2 (and do this for all of them)
     
    In the OnVisible, check for a context variable called _ShouldIPrintOnLoad
     
    in Screen 1, your navigate when you want to tell it to print would be
     
    Navigate(Screen2, Transition.None, {_ShouldIPrintOnLoad: true/false }
     
    When screen 2 loads AND is Visible, it will trigger itself to print
     
    In the OnVisible
     
    If (_ShouldPrintOnLoad, Print());
     
    Or
     
    If(_ShouldPrintOnLoad, Select(PrintButtonOnScreen2);
     
    Cheers
     
     
     
     
     
  • TheBest355 Profile Picture
    59 on at
    Thank you FLMike apologies could not respond earlier had trouble signing into my account.

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