Exemple #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (m_bActiveRecognition)
            {
                return;
            }
            int res = SmartOcrSdkExports.OCR_ExportDocument(m_strModulePath + "\\ExportedFile",
                                                            cbOutputFormats.SelectedIndex + 1, 0, 0, 1);

            if (res != SmartOcrSdkExports.RES_ERROR)
            {
                MessageBox.Show("The file is successfully saved to: \n\"" + m_strModulePath + "\\\"");
            }
            else
            {
                MessageBox.Show("Failed to save." +
                                " Please make sure that the application is started with Administrator privileges" +
                                " and there is at least one recognized page.");
            }
        }