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 Automate / Save Print Output As D...
Power Automate
Answered

Save Print Output As Dialog Box - Unable to Spy

(0) ShareShare
ReportReport
Posted on by 94

I have an external excel macro that has a button control which opens a "Save Print Output As" dialog box on click.

 

Once this popup appears control works except the "Save Print Output As" foreground window. At times , there are more than one "Save Print Output As" window. 

 

Now, desktop automation is not working as I cannot identify the control. So I tried using title and class properties and send keys later but it does not work as well. 

 

Is there any script or other way to wait for popup and then save file.

 

Neha2904_0-1664224426626.pngNeha2904_1-1664224455650.png

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Is the macro done when the Save As window opens?

  • Neha2904 Profile Picture
    94 on at

    Yes.

    The catch is that there is a button to be clicked. If I run the macro behind it, the macro will keep running till someone fills in the Save as dialog.

    So, I used UI Automation to identify and click on the button that initiates the macro and generates the "Save as" popup that needs to be populated.

  • Neha2904 Profile Picture
    94 on at

    It is not able to identify window if there are more than one window with same title "Save Print Output as". Works fine with single popup window.

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Okay good; that's what I was concerned about - that you were using UIs to initiate so it wasn't locked out.  In that case, does the proper save as window always open with focus, because if so, then instead of using Wait for Window to Open, I would pick an element on the window, so Wait for windows element "filename" to exist in focused window.  That way, if there is another SaveAs window open in the background, it won't matter.  This new one will come into focus and it will move on when it sees that element.

  • VJR Profile Picture
    7,635 on at

    Hi @Neha2904 

     

    Could you help me clarify a bit about the windows? There is a mention about a "Save as" window which is to save a file. And also you have mentioned about "Save Print Output As" window which is to print a file. Hope you are giving the right window titles.

     

    I didn't fully understand the requirement but if you just want to trigger the Print save as window can you do a Send Keys of Ctrl P on the Excel to bring up the Save Print Output as window in the foreground?

  • Neha2904 Profile Picture
    94 on at

    The problem is if I try to record or identify the UI element, it does not work as once the popup appears, it becomes the foreground window and doesn't allow PAD to interact with it. Hence, I had to go for "Wait for Window" with class and title.

  • Neha2904 Profile Picture
    94 on at

    Yes, the window is titled "Save Print Output As" and I am using the same. It is to print the file. Will correct the question.

  • VJR Profile Picture
    7,635 on at

    Alright, and also try the sendkeys alternative I have shared to bring up the Print box.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard