#1
Posted
:
Monday, February 26, 2018 6:36:25 AM(UTC)
Groups: Registered
Posts: 26
Thanks: 3 times
I am using the zonetype to help with my recognition application. If I have a table zonetype, what other Leadtools functionality can I use that would help me determine how many columns are in my table?
#2
Posted
:
Monday, February 26, 2018 11:31:39 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 199
Was thanked: 28 time(s) in 28 post(s)
Hello Judy,
I have contacted you via email with an additional explanation for the answer below.
To access properties of a table you can use the
TableZoneManager of the IOcrPage. That manager has a method,
getVerticalSplitters, that will return the positions of divisions between columns. Simply add one to the length of the array returned to get the number of columns:
Code:
int num_columns = ocrPageInstance.TableZoneManager.GetVerticalSplitters(someZoneIndex).Length + 1;
Thanks,
Anthony Northrup
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, February 26, 2018 11:53:42 AM(UTC)
Groups: Registered
Posts: 26
Thanks: 3 times
That worked perfectly - thanks very much!
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.