Foros del Web » Programando para Internet » ASPX (.net) »

ASP NET y Crystal

Estas en el tema de ASP NET y Crystal en el foro de ASPX (.net) en Foros del Web. Urgente VS2008 no me reconoce la creacion de una instancia de mi reporte el codigo vb es... Protected Sub Page_Load(ByVal sender As Object, ByVal e ...
  #1 (permalink)  
Antiguo 13/04/2009, 16:36
 
Fecha de Ingreso: febrero-2009
Mensajes: 67
Antigüedad: 15 años, 2 meses
Puntos: 3
ASP NET y Crystal

Urgente

VS2008 no me reconoce la creacion de una instancia de mi reporte el codigo vb es...

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim rptTest As New rptPrueba()
End Sub

Importo
Imports CrystalDecisions.CrystalReports.Engine

Cualquier comentario sera bienvenido...
  #2 (permalink)  
Antiguo 21/04/2009, 08:12
Avatar de moNTeZIon  
Fecha de Ingreso: enero-2005
Ubicación: Lliçà de Munt - BCN
Mensajes: 1.625
Antigüedad: 19 años, 3 meses
Puntos: 9
Respuesta: ASP NET y Crystal

Y qué es rptPrueba? Existe esa clase?
Eso es correcto?

Mira, te paso un pequeño código para montar un report con Crystal Reports:
Código:
'Verify the path to the Crystal Report's .RPT file:
Dim strReportPath As String = Application.StartupPath & "\rptPrueba.rpt"
If Not IO.File.Exists(strReportPath) Then
    Throw (New Exception("Imposible localizar el fichero:" & vbCrLf & strReportPath))
End If
'Load the Crystal report's .RPT file and pass in the DataTable:
Dim cr As New CrystalDecisions.CrystalReports.Engine.ReportDocument
cr.Load(strReportPath)
cr.SetDataSource(miDataSet)
'Set the CrystalReportViewer's appearance and set the ReportSource:
CrystalReportViewer1.ShowRefreshButton = False
CrystalReportViewer1.ShowCloseButton = False
CrystalReportViewer1.ShowGroupTreeButton = False
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.ReportSource = cr
CrystalReportViewer1 es el control CrystalReportViewer que he incluído en mi formulario.
Ten en cuenta que este ejemplo es para WinForms. No he tocado CrystalReports con WebForms...
Suerte!
__________________
..:: moNTeZIon ::..
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:51.