Skip to Content
0
Former Member
Nov 22, 2008 at 05:10 AM

Problem in CrystalReportViewer

125 Views

Hi All,

I am facing a strange problem,

I am using VS2005 top generate the crystal report. the problem is whenever I click on any button on CRviewer toolbar it refreshes the report.

the code which i am using to generate the report.

Dim ReportDocument As New ReportAttendance31

Dim _dtAttendanceDate As DateTime

_dtAttendanceDate = CDate(AttendanceYear & "-" & AttendanceMonth & "-01")

ReportDocument.Load(sGlobalPath & "\ReportAttendance31.rpt")

Dim _Ds As New DataSet

_Ds = LoadDataset()

For iCount As Integer = 0 To _ReportDocument.Database.Tables.Count - 1

ReportDocument.Database.Tables(iCount).SetDataSource(Ds)

Next

Me.CrystalReportViewer1.ReportSource = _ReportDocument

whenever I click on next page/previous page, export button, I think CRViewer reloads the report. how to stop this?