PrintDialog dlg = new PrintDialog(); XpsDocument xpsDoc = new XpsDocument(PATH_TO_YOUR_XPS_FILE_HERE, System.IO.FileAccess.Read); dlg.PrintDocument(xpsDoc.GetFixedDocumentSequence().DocumentPaginator, "Document title");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)