pSettings = new PrinterSettings(); pSettings.PrintFileName = "test.xps"; RawPrinterHelper.SendStringToPrinter(pSettings.PrinterName, toSend); spcn = new StandardPrintController(); printDocument1.PrinterSettings.PrinterName = "Microsoft XPS Document Writer"; printDocument1.PrintController = spcn; printDocument1.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage); printDocument1.Print();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)