Código:
Espero y puedan ayudarme Imports System.Data Imports System.Data.SqlClient Imports System.Text Imports CrystalDecisions.CrystalReports.Engine Public Class Consulta_CrystalReport Public WithEvents oRpt As ReportDocument Public Sub New() MyBase.New() 'VARIABLES conexion Dim sCnn As String = "Data Source=SISTEMAS2-PC;Initial Catalog=Pruebas;Integrated Security=True" Dim da As New SqlDataAdapter("SELECT Consecutivo, IdPersona, TipoPersona, Grupo FROM CrystalReport", sCnn) Dim ds As New DataSet Try da.Fill(ds) Dim CrReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument 'Windows Form Designer requiere esta llamada. InitializeComponent() oRpt = New ReportDocument() oRpt.Load("C:\Users\Sistemas2\Desktop\Ricardo Copia\menuss\WindowsApplication1\CrystalReport1.rpt") oRpt.SetDataSource(ds) CrystalReportViewer1.ReportSource = oRpt Catch ex As Exception MsgBox("no jala Mostrando Reporte") End Try End Sub End Class