CFRONT OCX Error 1406 in module 19

cssgyulacssgyula Member Posts: 31
Hi there,

I am using CFRONT OCX in Borland Delphi 7 to access Navision 4.0 database, but I always got the error message "ERROR 1406 in module 19" while trying to use the CFRONT command "opendatabase()". After this message a "fatal cfront error occured" error is also shown ](*,) .

I use the CFRONT.ocx v4.0.0.19365, but the my CFRONT.DLL's version number is v4.0.0.20942. Are the ocx independent from the DLL-s function or...?

Does anyone know how to avoid this error? Do I need to start any initialization procedure of the CFRONT and then start connecting to a simple NAV database file? #-o

Thank you for your help,

Jules
Best Regards,

Gyula (Jules) Csiák-Sedivy

There are two things, which you cannot learn from books. True love and Software Coding.

Comments

  • kinekine Member Posts: 12,562
    Hmmm... because I did not find the error description, I am blind. But for example, are you setting the Navisison program folder correctly? You need to tell to C/Front where is the client installed...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • cssgyulacssgyula Member Posts: 31
    kine wrote:
    Hmmm... because I did not find the error description, I am blind. But for example, are you setting the Navisison program folder correctly? You need to tell to C/Front where is the client installed...

    :P Yes, you're abolutely right. I didn't know the initialization method before calling any database file opening. Thank you kine for your help,

    :!: BUT :!: ,

    CFRONT says that opendatabase is not used anymore, use ConnectToServerAndOpenDatabase instead. :-s

    My question is:

    How can I connect to a simple NAV fdb file through CFRONT OCX without the need of any installation of Database Server or SQL? :?:

    If I try to leave blank the parameters like servername, nettype, etc. so server-based parameters, a fatal error occures also. ](*,)
    Best Regards,

    Gyula (Jules) Csiák-Sedivy

    There are two things, which you cannot learn from books. True love and Software Coding.
  • kinekine Member Posts: 12,562
    It will be good thing to open new thread for this, because if you let it be as answer, many people will not see it between new questions in their RSS feeds...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Timo_LässerTimo_Lässer Member Posts: 481
    fin.etx wrote:
    [...]
    @2@1406@0@
    Call is obsolete. Use DBL_ConnectServerAndOpenDatabase instead.
    [...]
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.