cancel
Showing results for 
Search instead for 
Did you mean: 

Run Crystal Report from Visual Studio

soporte_it91
Discoverer
0 Kudos

I want to run a Crystal Report report to export it to PDF, but it cannot connect to the HANA database, this is the code I have:
ConnectionInfo v_ConectarDB = new ConnectionInfo
{
ServerName = "DRIVER=HDBODBC32" + ";servernode={" + CapaDatos.CD_ConexionHanaClass.gServidor() + "}",
DatabaseName = CapaDatos.CD_ConexionHanaClass.gBase(),
UserID = CapaDatos.CD_ConexionHanaClass.gUsuario(),
Password = CapaDatos.CD_ConexionHanaClass.gClave()
};

I have already done many tests but I always get the message: The connection could not be opened

 

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

The server name looks odd.

Use the same connection info you use in Crystal Reports when connecting.

Try hard coding the log on info and see if that works

Answers (0)