private int PrepareCardforPrinting(int nres) { if (nres == SmartComm2.SM_F_CARDISINSIDE) { isCardPresent = true; printerStatus = "Preparing card for print"; nres = SmartComm2.SM_SUCCESS; nres = SmartComm2.SmartComm_Move((long)hsmartprinterid, SmartComm2.CARDPOS_PRINT); } return(nres); }
/// <summary> /// Moves card back into tray /// </summary> public void PrinterMoveCardMegnetic() { //Move Card Out if (hsmartprinterid != 0 && printerHasCard) { Int32 nres2; nres2 = SmartComm2.SmartComm_Move(hsmartprinterid, SmartComm2.CARDPOS_MAGNETIC); if (printerresponse == SmartComm2.SM_SUCCESS) { printerStatus = "Card in Tray"; SetPrinterStatus(nres2); printerresponse = nres2; } } }