示例#1
0
        private void CaptureContent()
        {
            EnsureOCR();
            if (_Document == null)
            {
                MessageBox.Show("No OCR data available!");
                return;
            }
            InitExtractionFrame();
            try
            {
                _ExtractionFrame.UpdateTableRequestByFrame();

                _tableResult = _tableRequest.GetTableContent(_Document);

                if (_tableResult != null)
                {
                    _tableResult.FillListViewColumns(listView1);
                    _tableResult.FillListViewItems(listView1);
                }
                _ExtractionFrame.BringToFront();
                _ExtractionFrame.Show();
            }
            catch (DocumentAreaException exc)
            {
                MessageBox.Show(exc.Description);
            }
        }