The problem I am trying to resolve is to print several different documents to PDF files, and then merge them into one PDF file.
With PDF Printer as the default printer, I set up a loop for Word files, and one for Excel files.
Within each loop, for each CurrentItem, I get the file path name (to name the interim PDF file), and rename each file to one consistent name (e.g., ToPrint.docx or ToPrint.xlsx) so that I can populate the interim filename and save the interim files via the UI element with the same Word and Excel windows
However, after the first run of the loop, I cannot rename the file in the second run of the same loop. The error message is "Can't rename file" because access to path of ToPrint.docx is denied.
Thanks for your advice. However, I still have the following issue to resolve:
Let's say the files may be docx or xlsx or else. If I have set the printer to PDF Printer, after "Print document", I will have to "Populate text field in window" for the "File name" text box. How can I properly identify the window?
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.