I use the code below to populate a datatable. He fills the datatable correctly, but when I try to view via crystal reports, the report is blank.
Any suggestions what I'm doing wrong?
Dim myDS As New dsTeste
Dim myDT As New dsTeste.DtTesteDataTable
Dim Linha As dsTeste.DtTesteRow
Dim i As Integer = 1
While i <= 5
myDT.Rows.Add(i, "magos", "15")
i = i + 1
End While
caminho = Server.MapPath("rptTeste.rpt")
Dim CR As New ReportDocument
CR.Load(caminho)
CR.SetDataSource(myDS)
CrystalReportViewer1.ReportSource = CR
CrystalReportViewer1.Zoom(100)
CrystalReportViewer1.Visible = True
magosveloso
Member
1 Points
4 Posts
DataTable and Crystal Reports
Dec 21, 2012 11:15 AM|LINK
friends,
I use the code below to populate a datatable. He fills the datatable correctly, but when I try to view via crystal reports, the report is blank.
Any suggestions what I'm doing wrong?
Dim myDS As New dsTeste Dim myDT As New dsTeste.DtTesteDataTable Dim Linha As dsTeste.DtTesteRow Dim i As Integer = 1 While i <= 5 myDT.Rows.Add(i, "magos", "15") i = i + 1 End While caminho = Server.MapPath("rptTeste.rpt") Dim CR As New ReportDocument CR.Load(caminho) CR.SetDataSource(myDS) CrystalReportViewer1.ReportSource = CR CrystalReportViewer1.Zoom(100) CrystalReportViewer1.Visible = TrueCruzerB
Contributor
5399 Points
1098 Posts
Re: DataTable and Crystal Reports
Dec 23, 2012 05:38 AM|LINK
Hi,
remain empty because he haven't add the to it.My Technical Blog
magosveloso
Member
1 Points
4 Posts
Re: DataTable and Crystal Reports
Dec 26, 2012 12:52 PM|LINK
Cruzer Thanks for the reply!
I tried and could not add the Ds Dt.
Can you help me?
Thank you again!
magosveloso
Member
1 Points
4 Posts
Re: DataTable and Crystal Reports
Dec 26, 2012 01:11 PM|LINK
Obrigado Cruzer!!
Consegui adicionar o codigo corretamente!!