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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem Print PDF FILE...
Power Automate
Unanswered

Problem Print PDF FILE from web page

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I try to print the information from web page with command print button that the web page have, but I can not make the action, I try to use: Web recorder, UI Elements but it is  not working

How to do that?

Thanks a lot for the help

Regards
Roberth

 

Page1.JPG

Page2.JPG

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Send Keys {Control}(p) should bring up the browser print dialogue, then Send Keys {Return}.

    or

    Send Keys {Control}({LShiftKey}(p)) will bring up the Windows Print Dialogue Box and Send Keys {Return}.

     

    Good luck!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Michael, good idea, let me to try, thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry Michael, but is not working with Chrome o Edge, Another idea?, thanks

     

    Capture.JPG

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Move mouse to image is always a last resort. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I was tried use some actions, Mouse, Image capture, Focus windows, desktop recorder with bad result, however and by the moment I use this option with Chrome "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk-printing for resolve the problem, the flow is working.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

    This worked with Edge:

    1. 'Launch new Edge' and open your URL

    2. 'Get window', Foreground window. %AutomationWindow% as variable produced

    3. 'Focus window':  By window instance/handle, %AutomationWindow%

    4. 'Send keys': {LControlKey}({P})

    5. (If your print is already selected to save pdf, then 'Send keys' Enter. Or define commands with UI automation)

    When sending keys you always have to focus window first. Also, use desktop recorder to get the correct syntax of keys.     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard