Printing MULTIPLE pdf documents from an ASP.NET CORE 5.0 webserver

I have hundreds of documents stored on the file system on a webserver. How can I access them and print them inside a loop in C#? Currently, I am getting an error saying “printer not found”. Can I not set the printer to the local client printer, is this possible?
Thanks, Luke

@Bokkie1

Are you using Aspose.PDF to print the PDF documents? Please note that you can print the PDF files using a local print as well as one that is shared over the network. Please make sure that the printer you want to use is accessible with the name that you are specifying in the code snippet. In case you still notice any issue, please share a sample code snippet that you are using so that we can test the scenario in our environment and address it accordingly.