Crystal report

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 7
Reputation: Kartikey is an unknown quantity at this point 
Solved Threads: 0
Kartikey Kartikey is offline Offline
Newbie Poster

Crystal report

 
0
  #1
Mar 13th, 2008
hello sir ,

i am getting problem with crystal report
VB.net and SQL Server

i want selected values to be printed in crystal report
so i have written sql query for that .


dataset shows selected values but crystal report shows all data in database


Please help me .
following is th e code :-


Dim dacrupt As SqlDataAdapter = New SqlDataAdapter(strcryst, myconn)
myconn.Open()
dacrupt.Fill(dscryst, "t_candidates")
myconn.Close()
MsgBox(dscryst.Tables("t_candidates").Rows.Count)
str100 = "new resume"
Dim objcryst As New Form1
objcryst.Show()





Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
CrystalReportViewer1.RefreshReport()
Dim myconn As SqlConnection = New _
SqlConnection("server=;database=project3;uid=;pwd=")
Select Case str100
Case "new resume"
newresume()
dscryst.Clear()
End Select
End Sub
Private Sub newresume()
Dim cr As New CrystalReport1
cr.SetDataSource(dscryst)

MsgBox(dscryst.Tables("t_candidates").Rows.Count)

CrystalReportViewer1.ReportSource = cr
End Sub
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Crystal report

 
0
  #2
Mar 13th, 2008
r u sure doing the right way when you make the report form at first time (using wizard).
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 15
Reputation: gomathinayagam is an unknown quantity at this point 
Solved Threads: 1
gomathinayagam gomathinayagam is offline Offline
Newbie Poster

Re: Crystal report

 
0
  #3
Nov 26th, 2008
how can filter the field in crystal report at run time in vb.net
Regard,
A.Gomathinayagam
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster

Re: Crystal report

 
0
  #4
Dec 4th, 2008
Last edited by sierrainfo; Dec 4th, 2008 at 3:08 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC