LEADTOOLS Support
General
General Questions
About reading the annotation entities..
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 27, 2008 8:35:59 PM(UTC)
Groups: Registered
Posts: 2
I have the demo version of LEADTOOLS Raster Imaging Pro 15. using that i can able to draw these annotation entities and save on XML file and also load the annotation file. but i have a problem about the read tha annotation entities from XML file. I need a list of annotation entities that i saved on XML file and have to display on list for user interface. can any one help me?
Regards,
Suraj babu malla
#2
Posted
:
Friday, March 28, 2008 7:25:46 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
There are two ways of doing it. The first way is to read the XML file yourself and find all the annotation entites. The second way is, once you load the annotation file, you can iterate through the objects in the container and populate the user interface with them.
#3
Posted
:
Saturday, March 29, 2008 8:30:40 PM(UTC)
Groups: Registered
Posts: 2
Thanks Jigar,
Finally i got the solution. here is the line of code that i wrote to populate the list of all annotation entities and stored at array list.
ArrayList CurrentAnnObj = new ArrayList();
foreach (AnnObject obj in _container.Objects)
{
CurrentAnnObj.Add(obj.GetType().Name.ToString());
}
This code may help to other user who will have same problem as mine.
Thanks,
Suraj babu malla
LEADTOOLS Support
General
General Questions
About reading the annotation entities..
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.