1 Attachment(s)
crystal report printing error in vb 2010.Please Help Me
when i print my report i am getting an empty report
I get no error just null data as the reports data source is not getting data from the database?
My database is items.mdf
see the below image
if any further details needed for answering this question please kindly comment. Thanks to all
please kindly comment what is mistake i have done pls specify :confused:
i double clicked form 2 and entered the following code
Imports CrystalDecisions.CrystalReports.Engine
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' print button code
Dim cryRpt As New ReportDocument
cryRpt.Load("C:\Users\Dell\Desktop\WindowsApplication3\WindowsApplication3\CrystalReport1.rpt") 'this was my report location
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
End Sub
End Class