P: 64
|
Hi, i created crystal report in my web application using vb codings as follows
dim con as new oledbconnnection.......
dim cmd as new oledbcommand("select * from........
dim ds as new dataset
dim ap as new oledbadapter(cmd)
ap.fill(ds)
Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocum ent
Dim rptFile As String = Server.MapPath("CrystalReport1.rpt")
report.Load(rptFile)
report.SetDataSource(ds)
CrystalReportViewer1.ReportSource = report
while i running this i am getting error as Object reference not set to an instance of an object.
any idea?
| |
Share this question for a faster answer!