Visual Basic.NET - Abrir report de Crystal

 
Vista:

Abrir report de Crystal

Publicado por David (1 intervención) el 28/10/2009 14:23:03
Hola,

Querria saber como se abre un archivo informe de Crystal que ya tengas hecho, y no con el ReportViewer sino como se podia hacer en Visual 6, simplemente abriendo el report como pongo a continuacion:

Me.CrystalReport1.ReportFileName = "D:\report.RPT"
Me.CrystalReport1.Action = 1
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Abrir report de Crystal

Publicado por Damian (824 intervenciones) el 29/10/2009 15:04:52
No se que crystal utilizas pero para el caso de Crystal Report XI Release 2 es algo asi:

Imports CRAXDDRT

Dim crReport As New Report
Dim crApp As New Application
Public path As String = "C\.....toda la ruta de donde cuelgan tus reportes"
crReport = crApp.OpenReport(path & _
"\report.rpt", 1)

....
....
....
.....

CR.ReportSource = crReport
CR.ViewReport()

Pero vas a necesitar el control Crystal ActiveX Report Viewer Control 11.5 en este caso lo llame CR.
Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar