I have a WPF application with a list of documents. I have created a print all button, that sends all documents to my default printer. I want to give the user the ability to select a printer, and then send all documents to that printer.
But how do I show the print dialog and save the printer info? And how can I print to a specific printer after closing the dialog?
I have this in my print function, and that works fine (but for the wrong printer)
var p = new Process
{
StartInfo = new ProcessStartInfo
{
CreateNoWindow = true,
Verb = "print",
FileName = filePath
}
};
p.Start();