Posted by: Klaus Haidinger
i´m currently using Crystal Reports 10 (Report Viewer Component) and it
works fine as far as i use the same DSN in the Source as i used when i
created the report in the CR-Designer Application.
So if the .rpt was created with ODBC-Connection on the
sqlserver-database "DB" and i want to connect to "DB-DEMO" (which is
exactly the same) in my Application, it says the connection for User
In my application i use
crystalapplication.LogOnServer ('crdb_odbc.dll', sDSN, vardb, varuser,
to connect. The return value of this call is TRUE (??!!?). The next
Set bOk=repvar.SetObject( rep )
Set bOk= axReport.PropSetReportSource( repvar )
Set bOk= axReport.ViewReport( )
On "ViewReport" i got the error.
Can anybody help me?