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