Show no tables found infobox
This commit is contained in:
parent
b68a2b2107
commit
571a5fd706
@ -28,7 +28,7 @@ internal class OcrTool : ITool
|
||||
if (shot != null)
|
||||
{
|
||||
IEnumerable<object[,]> tables = await client.ProcessImage(shot);
|
||||
if (tables != null)
|
||||
if (tables.Count() != 0)
|
||||
{
|
||||
foreach (var table in tables)
|
||||
{
|
||||
@ -70,6 +70,15 @@ internal class OcrTool : ITool
|
||||
app.ActiveSheet.Cells(currentCell.Row + rowCount + 1, currentCell.Column).Activate();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(@"В выделенном фрагменте не распознано ни одной таблицы.",
|
||||
"Ошибка",
|
||||
MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Information);
|
||||
RhSolutionsAddIn.Excel.Visible = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
Loading…
Reference in New Issue
Block a user