471,330 Members | 1,490 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Crystal Report Viewer very slow (about 1 minute)

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.
Jul 22 '05 #1
1 15959
Hi,

If your report contains sub-report, pls try to uncheck the checkbox
"Re-import When Opening" in the "Subreport" tab page of Format Editor of the
subreport.

It works for my case.

Gary
Sep 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Robert Schuldenfrei | last post: by
reply views Thread by Dipendra | last post: by
17 posts views Thread by Peter Proost | last post: by
reply views Thread by Chris | last post: by
1 post views Thread by CAM | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.