Por favor echenme la mano!!!!
Hola a tODOS TENGO EL SIGUIENTE CODIGO EN UN BOTON :
Dim tbCurrent As
CystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As
CrystalDecisions.Shared.TableLogOnInfo
Dim rptExpensiveProducts As New ReportDocument()
Try
' Load the report
rptExpensiveProducts.Load
("c:\siigaeportespttacticos.rpt")
' Set the connection information for all the
tables used in the report
' Leave UserID and Password blank for trusted
connection
For Each tbCurrent In
rptExpensiveProducts.Database.Tables
tliCurrent = tbCurrent.LogOnInfo
With tliCurrent.ConnectionInfo
.ServerName = ServerName
.UserID = ""
.Password = ""
.DatabaseName = "Ventasdbd"
End With
tbCurrent.ApplyLogOnInfo(tliCurrent)
Next tbCurrent
' Set the report source for the crystal
reports
' viewer to the report instance.
CrV.ReportSource = rptExpensiveProducts
' Zoom viewer to fit to the whole page so the
user can see the report
CrV.Zoom(2)
Pero cuando lo ejecuto me sale la siguiente ventana
informe principal
nombre de la tabla :rpttacticos;1
nombre del servidor :localhost
bases de datos :
id de inicio de sesion:reporte
contraseña :
completo los datos pero no me conecta siempre me dice
intente de nuevo
¿que me faltara para imprimir el reporte?
Leer las respuestas