Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 9th, 2006, 2: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
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:52 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC