Page 1 of 1

Sample ADR with Javascript

Posted: Thu Oct 30, 2014 5:36 am
by gtoledo
Hi...

I am developing an application in ASP.Net and Javascript with GdPicture Ver. 10

You we support can with sample of ADR in Javascript?

I tried with this first lines and I am presented the following error...

Code: Select all

    //-- Inicializa GdPicture
    var oGdImaging
    var oGdViewer
    var oGdThumbnailEx
    var nMultipageTiffImage

    var m_NativeImage = 0;
    var m_LicenseManager;

    function InitGdPicture() {
        var gdPictureLoaded = true;
        var gdPictureVersionOK = true;
        try {
            m_LicenseManager = new ActiveXObject('GdPicture10.LicenseManager');
            oGdImaging = new ActiveXObject('GdPicture10.GdPictureImaging');
            if (m_LicenseManager.GetVersion() < 10.0) {
                gdPictureVersionOK = false;
            }
            gdPictureLoaded = true;
            //-- desbloquea
            unlockGdPicture();
        }
        catch (err) {
            gdPictureLoaded = false;
        }
    }

    function unlockGdPicture() {
        m_LicenseManager.RegisterKey('MyKey');
    }


    //-- Carga configuraciĆ³n ADR desde archivo
    function LoadADRConfig() {
        try {
            var ruta = 'C:\\Users\\Public\\Compartida\\rcsTemplateADR.dat'
            oGdImaging.ADRLoadTemplateConfig(ruta);
            ...
            ...
        } catch (err) {
            msj = "Se produjo un error en la funcion: LoadADRConfig().\n\n";
            msj += "DescripciĆ³n: " + err.message + "\n\n";
            alert(msj);
        }
    }

Re: Sample ADR with Javascript

Posted: Thu Oct 30, 2014 7:01 pm
by gtoledo
The error was solved. The problem was that I made no reference to the object...An apology

Either way, it is possible that I can give more details of the concept of ADR? .. This in order to document the functionality of this modulo in the application that we are developing, since some of our consultants believe that the recognition of documents is performed using OCR .

regards...

Re: Sample ADR with Javascript

Posted: Tue Nov 04, 2014 12:09 pm
by SamiKharma
Hi,
since some of our consultants believe that the recognition of documents is performed using OCR
That is not true, OCR, like OMR and ICR is one of the post-processes of form processing.
The procedure is here, please note point 3:
http://en.wikipedia.org/wiki/Forms_processing#Process

Best,
Sami