Búsqueda personalizada
Regístrate gratis para participar de los foros, o si ya estás registrado haz login.
| comentario del autor | Mie Feb 02, 2005 12:15 am | |
|
|
||
| sin valorar | Jue Jul 07, 2005 1:44 am | |
|
Tenes que seleccionar el componente Crystal Report Control (te va a aparecer luego de instalar el CD de Crystal Report) luego desde vb usas el componente Por ejemplo With CrystalReport1 .ReportFileName = App.Path & "\Reportes\Nombre del Reporte.rpt" .WindowState = crptMaximized .Connect = "dsn=MiBase; uid=NombreDeUsuario; pwd=MiPassword" .WindowShowCloseBtn = True .WindowShowPrintSetupBtn = True .WindowShowProgressCtls = True .Destination = crptToWindow ErrRepo = .PrintReport .PageZoom (89) If ErrRepo = 0 Then Do While .ReportLatestPage > 0 DoEvents Loop Else MsgBox .LastErrorNumber & CrystalReport1.LastErrorString End If End With End Sub |
||