473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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?
Apr 18 '07 #1
0 1167

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

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
0
by: Troy | last post by:
Good Afternoon all, I have searched the news groups/web for anything releated to this problem but have come up empty. The situation is I have developed a program which allows the user to select...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
6
by: Laura Carr | last post by:
I have been getting the following error fro an event in an rpx.cs file. The error is as follows: An object reference is required for the nonstatic field, method, or property...
1
by: Reny J Joseph Thuthikattu | last post by:
Hi, WHen i try to create to display a crystal report in the web , by making a asp.net application.In the crystal report viewer i gave a report location,in the data binding report source.And in the...
0
by: Marc Callec | last post by:
I'm trying to create an instance of the CrystalReportViewer control within my class in an attempt to return the rendered HTML back to the consumer of the class. Because I haven't added the...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
4
by: VMI | last post by:
For my website, I created CrystalReportTest.rpt (through the designer in VS 2005) and I'd like to be able to display it in viewer.aspx (all in the same project). Viewer.aspx has a Crystal Report...
1
by: Dan Aldean | last post by:
Hi, I created a Crystal Report in .NET environment and I use a CrystalReportViewer to show it. Based on suggestions I received here I used the Push method. The big problem I encounter now is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.