By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

Object reference not set to an instance of an object - for crystal report

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)

Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocum ent
Dim rptFile As String = Server.MapPath("CrystalReport1.rpt")
CrystalReportViewer1.ReportSource = report

while i running this i am getting error as Object reference not set to an instance of an object.

any idea?
Apr 18 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.