I’m getting access denied when I try to use the function
PrintJob.Transfer
using (PrinterQueueWatch.PrinterInformation PrinterInfo = new PrinterQueueWatch.PrinterInformation("HP LaserJet P1006", PrinterQueueWatch.SpoolerApiConstantEnumerations.PrinterAccessRights.PRINTER_ALL_ACCESS, true))
{
PrinterInfo.PrintJobs.get_ItemByJobId(Id).Transfer("Microsoft Print to PDF", false);
}
using (PrinterQueueWatch.PrinterInformation PrinterInfo = new PrinterQueueWatch.PrinterInformation("HP LaserJet P1006", PrinterQueueWatch.SpoolerApiConstantEnumerations.PrinterAccessRights.PRINTER_ALL_ACCESS, true))
{
PrinterInfo.PrintJobs.get_ItemByJobId(Id).Transfer("Microsoft Print to PDF", false);
}
New contributor
user26635770 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1