<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 Sep 2017 21:06:00 Z</lastBuildDate><pubDate>4 Sep 2017 16:12:00 Z</pubDate><description>Hi&#13;
&#13;
I apologise for asking so many questions lately but here goes again.&#13;
&#13;
I am trying to incorporate Leadtools OCR and scanning in Windev. Loaded all the .NET assemblies I need and just trying a simple example.&#13;
&#13;
This is the example code in C#&#13;
&#13;
formsCodec = new RasterCodecs();&#13;
&#13;
ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Advantage, false);&#13;
ocrEngine.Startup(formsCodec, null, null, @"C:\LEADTOOLS 19\Bin\Common\OcrAdvantageRuntime");&#13;
&#13;
//Point repository to directory with existing master forms&#13;
formsRepository = new DiskMasterFormsRepository(formsCodec, @"C:\Users\Public\Documents\LEADTOOLS Images\Forms\MasterForm Sets\OCR");&#13;
autoEngine = new AutoFormsEngine(formsRepository, ocrEngine, null, AutoFormsRecognitionManager.Default | AutoFormsRecognitionManager.Ocr, 30, 80, true);&#13;
&#13;
What I'm not sure of is how to do this in Windev for instance:&#13;
&#13;
formsCodec must be something i.e this works;&#13;
&#13;
FormsCodec is RasterCodecs = new RasterCodecs() does not give an error in Windev&#13;
&#13;
but&#13;
&#13;
OcrEngine is OcrEngineManager = new OcrEngineManager.CreateEngine(OcrEngineType.Advantage, False) does not work.&#13;
&#13;
It seems in C# you just create a variable but in windev we have to declare what type of variable and this is where I fall short.&#13;
&#13;
In VB it look like this:&#13;
&#13;
Dim MY_LICENSE_FILE As String = "d:\ emp\TestLic.lic"&#13;
' Unlock LEADTOOLS special Support&#13;
Dim MY_DEVELOPER_KEY As String = "abc123xyz"&#13;
RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY)&#13;
&#13;
formsCodec = New RasterCodecs()&#13;
' Create an OCR Engine for each processor on the machine. This allows for optimal use of thread during recognition and processing.&#13;
ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Advantage, False)&#13;
ocrEngine.Startup(formsCodec, Nothing, Nothing, "C:\LEADTOOLS 19\Bin\Common\OcrAdvantageRuntime")&#13;
&#13;
' Point repository to directory with existing master forms&#13;
formsRepository = New DiskMasterFormsRepository(formsCodec, "C:\Users\Public\Documents\LEADTOOLS Images\Forms\MasterForm Sets\OCR")&#13;
autoEngine = New AutoFormsEngine(formsRepository, ocrEngine, Nothing, AutoFormsRecognitionManager.Default Or AutoFormsRecognitionManager.Ocr, 30, 80, True)&#13;
&#13;
&#13;
&#13;
Thanks in advance&#13;
&#13;
&#13;
&#13;
Ericus Steyn</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp</link><title>[WD 21]C# or VB Syntax in Windev</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62635/read.awp</comments><pubDate>12 Sep 2017 21:06:00 Z</pubDate><description>Thanks Peter I am going to give that a go.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62635/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62635/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62633/read.awp</comments><pubDate>12 Sep 2017 17:00:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
Here's how I would code it (but would need to look at the documentation of the OCR assembly.&#13;
pclOcrEngine is obje…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62633/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62633/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62629/read.awp</comments><pubDate>12 Sep 2017 15:21:00 Z</pubDate><description>Thanks Arie&#13;
&#13;
It works for the first 2 lines below but then the 3rd line already shows an error in the code.&#13;
&#13;
I know if I typ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62629/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62629/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62627/read.awp</comments><pubDate>12 Sep 2017 12:39:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
a bit of a guess, but try this&#13;
&#13;
pclOcrEngine is object dynamic OcrEngineManager&#13;
&#13;
instead of this&#13;
&#13;
pclOcrEngi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62627/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62627/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62626/read.awp</comments><pubDate>12 Sep 2017 12:32:00 Z</pubDate><description>Thanks for the contributions.&#13;
&#13;
It seems that OOP programming is more a case of OOPS programming for me. The below is working u…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62626/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62626/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62529/read.awp</comments><pubDate>4 Sep 2017 16:36:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
OcrEngine is OcrEngineManager = new OcrEngineManager.CreateEngine(OcrEngineType.Advantage, False) does not work.&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62529/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62529/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62528/read.awp</comments><pubDate>4 Sep 2017 16:36:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
Out of my head something like this maybe...&#13;
Also check if the assembly is expecting unicode (like in most cases n…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62528/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev-62528/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62527-21-syntax-windev/read.awp">[WD 21]C# or VB Syntax in Windev</source><title>Re: [WD 21]C# or VB Syntax in Windev</title></item></channel></rss>
