problem with cfront and excel

topo_scatenatotopo_scatenato Member Posts: 13
I want to connect excel 2003 and Navision 4.0 SP1 but i receive the message "error 2 in module 1" on the line CFrt.ConnectServerAndOpenDatabase(ServerType, ServerName, _
gstrNettype, DatabaseName, 8000, False, NTAuthentification, UserID, Password)

I have no error with the same code with VB if the .exe is in navision folder

Thanks for help

Comments

  • krikikriki Member, Moderator Posts: 9,118
    The error means that the file has not been found.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • topo_scatenatotopo_scatenato Member Posts: 13
    Ok thanks, but all the paths seems to be good
    Dim CFrt As New CFront
           
    ServerType = "NDBCN"
    ServerName = "NAVISIONSERVERNAME"
    gstrNettype = "TCPS"
    DatabaseName = ""
    NTAuthentification = True
    UserID = ""
    Password = ""
            
    Call CFrt.ConnectServerAndOpenDatabase(ServerType, ServerName, _
            gstrNettype, DatabaseName, 8000, False, NTAuthentification, UserID, Password)
    

    the error is the same if i try with navision server or local database

    and it's running good with vb6
Sign In or Register to comment.