This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, August 6, 2010 1:08:59 AM(UTC)
Groups: Registered
Posts: 5
Hello,
I want to save the annotations (the XML) to a database. Can you tell me how to get the XML for the annotations?
McV
#2
Posted
:
Sunday, August 8, 2010 12:45:55 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
The details depend on which LEADTOOLS version (15, 16, etc.) and programming interface (Main OCX, .NET classes, DLL API, C++ Classes, etc.) you are using.
For example, if you are using LEADTOOLS v16.5 .Net programming interface, you can save the annotations to XML by using the AnnCodecs.Save method as follows:
+-----+
Dim codecs As AnnCodecs = New AnnCodecs()
codecs.Save(fileName, container, AnnCodecsFormat.Xml, 1, AnnCodecsSavePageMode.Overwrite)
+-----+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Monday, August 9, 2010 10:45:12 PM(UTC)
Groups: Registered
Posts: 5
I'm using .NET V17.
Is it possible to get the xml without saving the file?
#4
Posted
:
Monday, August 9, 2010 11:32:36 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
There is no way to get the XML without saving the annotation objects.
If you want to save the annotations to XML format, you can use the AnnCodecs.Save method to save the annotation to XML format in stream, not file.
For more information, please refer to the AnnCodecs class help topic in the LEADTOOLS .Net documentation.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.