Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/01/2004, 05:25
Avatar de inperez
inperez
 
Fecha de Ingreso: noviembre-2001
Ubicación: BASAURI
Mensajes: 27
Antigüedad: 23 años, 2 meses
Puntos: 0
Prueba ha hacer esto:

......

CrystalReport1 crReportDocument = new CrystalReport1();

foreach(CrystalDecisions.CrystalReports.Engine.Tab le tbCurrent in crReportDocument.Database.Tables)
{
CrystalDecisions.Shared.TableLogOnInfo tliCurrent = tbCurrent.LogOnInfo;
tliCurrent.ConnectionInfo.ServerName="servidorbd";
tliCurrent.ConnectionInfo.UserID="usuario";
tliCurrent.ConnectionInfo.Password="password";
tliCurrent.ConnectionInfo.DatabaseName="nombreBD";
tbCurrent.ApplyLogOnInfo(tliCurrent);
}

......
__________________
Un Saludo,
IÑIGO PEREZ MARQUES
_________________________
apretando y tó pá lante
[email protected]
_________________________