Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Crystal Reports Data Filter Post Reply Post New Topic
Author Message
sdhsivam@gmail.
Newbie
Newbie


Joined: 17 Nov 2008
Location: India
Online Status: Offline
Posts: 1
Quote sdhsivam@gmail. Replybullet Topic: Crystal Reports Data Filter
    Posted: 17 Nov 2008 at 6:18am

Hi Buddies,

In windows application I am using crystal reports 2008.I used views for design reports.In code behind side called tat views using stored procedure for filtering purpose.
filtered data's are assigned to dataset .

Data's are filtered exactly and shown in dataset.i assigned this dataset to crystal report datasourse but reports displayed all records without filteration

here i paste my code .if any bodies solution about tis issue help me

Try

            dsReturnHostel = objLogic.SearchReturnedStudentsList(iCount, iHostelID, iRoomID, sReturndate, iCollegeID)

            If iCount > 0 Then

                ReportsViewer.rptReport = New StudentsStayoutList
                ReportsViewer.rptReport.SetDataSource(dsReturnHostel)
                ReportsViewer.WindowState = FormWindowState.Maximized
                ReportsViewer.Activate()
                ReportsViewer.Text = "Students Return to Hostel Report"
                ReportsViewer.Show()
                ReportsViewer.Visible = True
            Else
                MsgBox("No record exists with this Criteria")
            End If

        Catch ex As Exception

            MsgBox(ex.Message)

        End Try

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.