private void GetCheckImagesandData()
        {
            string strFront  = String.Empty;
            string strBack   = String.Empty;
            int    mlngItems = 0;

            strFront = Constants.ImageLocation + "\\F" + (mlngItems + 1).ToString("0000000") + ".tif";
            strBack  = Constants.ImageLocation + "\\B" + (mlngItems + 1).ToString("0000000") + ".tif";

            RegisterScannerOperations.BUICScan(7, strFront, strFront.Length.ToString(), strBack, strBack.Length.ToString(), "", "");
        }
        private int InitiateScanner()
        {
            RegisterScannerOperations.typDocStatus DocStatus = RegisterScannerOperations.typDocStatus.CreateInstance();

            if (!RegisterScannerOperations.DirExists(Constants.ImageLocation))
            {
                Directory.CreateDirectory(Constants.ImageLocation);
            } //Make folder to save images


            RegisterScannerOperations.BUICSetParamString(RegisterScannerOperations.CFG_INIPATH, Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\BUICSCAN.INI");
            //WriteLog("Initiate Scan");

            return(RegisterScannerOperations.BUICInit());
        }