Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, February 26, 2018 6:36:25 AM(UTC)
jnethercutt

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?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, February 26, 2018 11:31:39 AM(UTC)
Anthony Northrup

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.

LEAD Logo
 
#3 Posted : Monday, February 26, 2018 11:53:42 AM(UTC)
jnethercutt

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.041 seconds.