LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Setting the formatlevel when converting to Xls
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, January 16, 2014 7:24:37 PM(UTC)
Groups: Registered
Posts: 7
#2
Posted
:
Saturday, January 18, 2014 3:42:06 AM(UTC)
Groups: Registered
Posts: 256
In the help topic for "RESULTOPTIONS2", it is mentioned that if you pass anything except DOCUMENTFORMAT_USER to the structure, all the values in the structure including "FormatLevel" will be ignored.
So if you want to use DocumentWriter instance to save the OCR results, the "FormatLevel" value will be ignored.
If you want to set the FormatLevel value, you will have to save the result using OCR native formats and set "DOCUMENTFORMAT_USER" as the DocFormat.
#3
Posted
:
Sunday, January 19, 2014 8:52:36 PM(UTC)
Groups: Registered
Posts: 7
On what .NET class do I set the DocFormat and where do I set the FormatLevel? Can I please get a one liner example of both?
#4
Posted
:
Monday, January 20, 2014 3:59:19 AM(UTC)
Groups: Registered
Posts: 256
To set the FormatLevel for the engine in .NET, try the following code:
==========================
IOcrSettingManager settingManager = _ocrEngine.SettingManager;
// Change the format level to drop
string settingName = "SaveDocument.FormatLevel";
settingManager.SetEnumValue(settingName, "NoFormat");
==========================
You can find an example in help topic "IOcrSettingManager Interface".
For more information about engine specific settings, see help topic "OCR Engine-Specific Settings".
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Setting the formatlevel when converting to Xls
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.