| | |
Crystal report
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 7
Reputation:
Solved Threads: 0
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
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
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 *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: May 2008
Posts: 144
Reputation:
Solved Threads: 9
See the following links. Hope it will help you.
http://systems.bus.ucf.edu/lwest/cou...ns/reports.htm
http://www.vbdotnetheaven.com/Upload...thXmlInVB.aspx
http://systems.bus.ucf.edu/lwest/cou...ns/reports.htm
http://www.vbdotnetheaven.com/Upload...thXmlInVB.aspx
Last edited by sierrainfo; Dec 4th, 2008 at 3:08 am.
![]() |
Similar Threads
- How add Crystal Report Version 11 in VB6 (Visual Basic 4 / 5 / 6)
- Crystal report in vb.net, printing problems (VB.NET)
- Problem with Crystal Report in ASP.NET (ASP.NET)
- How can I call Crystal Report from VB 6.0 ? (Visual Basic 4 / 5 / 6)
- Help me with Crystal Report (ASP.NET)
- Error while declaring Crystal Report Object (ASP.NET)
- Problems on making Crystal Report (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Encrypt File using User Supplied Password
- Next Thread: Filtering a DataGridView
| Thread Tools | Search this Thread |
.net .net2008 2008 access account add advanced application array basic beginner browser button buttons click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview mobile module monitor mysql net number objects open panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet vista visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year






