Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Viewer Error: Object Reference not set to an instance..

Status
Not open for further replies.

LikePork

Programmer
Aug 13, 2004
42
CA
Hi,

I'm back with a new error that coming up on Win98. (I had another ugly one with 98 and .net befor that raised system.arithmeticException.

The report is created in this VS .net designer, filled using an ADO.net dataset, and one of them dosen't use sub-reports. They are filled in the code then use a Crystal Reports Viewer control to be dispalyed.

On one of the clients computers a Win98 SE SP4(now that I've updated it) gets the error message:

Crystal Report Viewer Error:Object Reference not set to an instance of an Object.

I updated them to SE SP4 because on another clients computer with Win98 SE SP4 the reports are working fine. After updating I ran my install program again to make "sure" the dll were getting registered.(I guees I'm not really that sure)

I also tried the "get a new computer!!" fix, but they aren't ready they say.

Under Program Files/Common Files/Crystal Decisions , there are only the "1.0" and "Patches" folders, maybe I need the "1.1" stuff, any info on how to get it? Though the other clients (~15) aren't using it. I haven't yet found it on the Bussiness objects site. I also am getting them to download the CR SP2, but I'm not sure it applies to the 1.0 stuff.

So it seems to be a problem with the CR Viewer tool, though the message box is definately not coming from my code. Basically I could use any ideas offered, I'm fresh out. Thanks
 
Here some code I have to create one of the reports:

Dim CrystalData As DataSet
CrystalData = New DataSet
CrystalData.ReadXml("Reports/ClaimsSent/" & xmlClaimFile)
Dim myReport As New ClaimsSentReport
myReport.SetDataSource(CrystalData)
Dim viewer As ReportViewer
Try
viewer = New ReportViewer
Catch ex As Exception
SysLog.ErrorLogger.LogError(ex)
viewer = New ReportViewer
End Try
Try
viewer.ViewClaimsSentReport(myReport)
Catch ex As Exception
MsgBox("Error in Report Data")
SysLog.ErrorLogger.LogError(ex)
End Try
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top