S
sleepyant
Hi, I'm using VB .NET 2003. I have a form which only has a
CrystalReportViewer to view a report on screen. But every time I run then
project, the form is shown but the Report itself is very slow to show up
(about 1 minute). Is there any setting I can use to make it show faster? My
testing only got 2 records, but it will always take about one minute.
I find that it slow when it reaches the reportdocument.Load( ) section.
Please help. The following is my code.
Dim sXmlFile As String
Dim rptData As New ReportDocument
Dim rDs As DataSet
sXmlFile = Application.StartupPath & "\Data\Data.xml"
rDs = New DataSet
rDs.ReadXml(sXmlFile)
rptData.Load(Application.StartupPath & "\Report\Data.rpt")
rptData.SetDataSource(rDs.Tables("Data"))
DataCrv.ReportSource = rptData
DataCrv.Zoom(1)
Thanks in advance.
CrystalReportViewer to view a report on screen. But every time I run then
project, the form is shown but the Report itself is very slow to show up
(about 1 minute). Is there any setting I can use to make it show faster? My
testing only got 2 records, but it will always take about one minute.
I find that it slow when it reaches the reportdocument.Load( ) section.
Please help. The following is my code.
Dim sXmlFile As String
Dim rptData As New ReportDocument
Dim rDs As DataSet
sXmlFile = Application.StartupPath & "\Data\Data.xml"
rDs = New DataSet
rDs.ReadXml(sXmlFile)
rptData.Load(Application.StartupPath & "\Report\Data.rpt")
rptData.SetDataSource(rDs.Tables("Data"))
DataCrv.ReportSource = rptData
DataCrv.Zoom(1)
Thanks in advance.