leannekarlich
MIS
I have an existing VB 6 executable that uses API calls to execute RPT files.
Parameters are passed for database login (ODBC connection) and an INI file is read to obtain any additional record selection that is required.
This has worked successfully on Crystal versions 5 (~1998)thru to 8.5 (2004). Now I've upgraded to version 10 via version 9 and it fails trying to set logon details for the tables.
The only change has been to replace/update the include files - GLOBAL32 and CRWRAP.
The specific code line is: r% = crPESetNthTableLogOnInfo(1, 0, "ODBCNAME", "SID", "UID", "UPWD", 1)
r% returns 0 which is an error; but PEGetErrorCode returns 0 as well which is meaningless.
I was wondering if anyone has encountered this problem or can tell me what I'm missing. It's driving me insane.
Thanks for reading this and I hope you can help me
Cheers
Leanne
Parameters are passed for database login (ODBC connection) and an INI file is read to obtain any additional record selection that is required.
This has worked successfully on Crystal versions 5 (~1998)thru to 8.5 (2004). Now I've upgraded to version 10 via version 9 and it fails trying to set logon details for the tables.
The only change has been to replace/update the include files - GLOBAL32 and CRWRAP.
The specific code line is: r% = crPESetNthTableLogOnInfo(1, 0, "ODBCNAME", "SID", "UID", "UPWD", 1)
r% returns 0 which is an error; but PEGetErrorCode returns 0 as well which is meaningless.
I was wondering if anyone has encountered this problem or can tell me what I'm missing. It's driving me insane.
Thanks for reading this and I hope you can help me
Cheers
Leanne