public override bool StartCard() { frontBitmap = null; backBitmap = null; PrinterStatus ps = GetPrinterStatus(); if (ps != PrinterStatus.Ready) { throw new Exception($"Printer {printerName} not ready"); } JobId = GetNewJobID(); LogClass.WriteToLog($"CardId = {cardId}, Printer = {printerName}, Start Job {JobId}, Hopper {HopperID}"); var startJob2In = new StartJob2Input { client = ClientId, jobId = JobId, settingsGroup = string.Empty, exceptionJob = false }; dpcl2Client.StartJob3(startJob2In); Pick((HopperID > 0) ? (uint)HopperID : (uint)1); //WaitForActionCompletion(); return(JobId > 0); }
/// <summary> /// Starts a job on the printer. /// </summary> private static void StartJob() { var startJob2In = new StartJob2Input { client = MyClientID, jobId = jobID, settingsGroup = string.Empty, exceptionJob = false }; dpcl2Client.StartJob3(startJob2In); }