View Single Post
Old Mar 9th, 2006, 3:35 PM   #1
gpreetsingh
Newbie
 
gpreetsingh's Avatar
 
Join Date: Jan 2006
Posts: 13
Rep Power: 0 gpreetsingh is on a distinguished road
crystal report problem

i have problem accessing data through crystal reports.
i have used this code to access the data to generate the report

******
Dim DA As OleDb.OleDbDataAdapter
Dim DS As New DataSet
Dim strSQL As String

strSQL = ""
strSQL = "SELECT EmployeeID, LastName, FirstName FROM EMPLOYEES"

DA.Fill(DS, "Employees")

'Verify the path to the Crystal Report's .RPT file
Dim strReportPath As String = "C:\Temp\crystalreport1.rpt"

'Load the Crystal report's .rpt file and pass in the data table
Dim cr As New ReportDocument

cr.Load(strReportPath)
cr.Setdatasources(DS.Tables("Employees")
crystalreportviewer1.reportsource=cr
************

after executing the crystal report viewer shows blank ..........report..

i have checked code many times but still...it gets blank..


also one thing is there any problem related to registration because the crystal report program which came with .NET package is not registered , so whereever i use it it reminds me for regostration...
gpreetsingh is offline   Reply With Quote