LocalPrintServer localPrintServer = new LocalPrintServer(); PrintQueue defaultPrintQueue = LocalPrintServer.GetDefaultPrintQueue(); //Set the correct printer pname = this.listBox1.SelectedItem.ToString(); //Gather print jobs GetPrintJobsCollection(defaultprinter); //this is working RedirectPrintJobs(pname); //not sure how //Cancel old jobs on the old printer CancelPrintJob(defaultprinter); //this is working
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)