Пример #1
0
        private int PrintCard(int nres, SmartComm2.SMART_PRINTER_INFO DevInfo)
        {
            // print
            if (nres == SmartComm2.SM_SUCCESS)
            {
                if (DevInfo.opt.is_dual == SmartComm2.VC_FALSE)
                {
                    nres = SmartComm2.SmartDCL_Print((long)hsmartprinterid, SmartComm2.SMART_PRINTSIDE_FRONT);
                }
                else
                {
                    nres = SmartComm2.SmartDCL_Print((long)hsmartprinterid, SmartComm2.SMART_PRINTSIDE_BOTH);
                }
            }

            return(nres);
        }