I am evaluating Crystal Reports XI Developer edition and have found a very annoying problem. It takes about 30 seconds to run the Load() method of the ReportDocument object in C# when connecting the crystal report to a dataset object. There is no delay at all when using the Crystal 9 version that comes with .NET 2003. Has anyone seen this problem or have any ideas? I have searched business objects web and Google as well and have not been able to resolve this. I have installed and tested this on two different pc’s and the symptom stays the same.
Example code with 2 column, 0 row DataSet –-
DataSet ds = new dsTest();
ReportDocument rpt = new ReportDocument();
frmCRTest crForm = new frmCRTest();
// THE NEXT LINE TAKES ~ 30 SEC. TO LOAD.
rpt.Load( @"C:\rptTest.rpt" );
rpt.SetDataSource( ds.Tables[ 0 ] );
crForm.crViewer.ReportSource = rpt;
crForm.Show();
(This code works fine with the version of Crystal that ships with VS.NET 2003)
~~ Codemech
Example code with 2 column, 0 row DataSet –-
DataSet ds = new dsTest();
ReportDocument rpt = new ReportDocument();
frmCRTest crForm = new frmCRTest();
// THE NEXT LINE TAKES ~ 30 SEC. TO LOAD.
rpt.Load( @"C:\rptTest.rpt" );
rpt.SetDataSource( ds.Tables[ 0 ] );
crForm.crViewer.ReportSource = rpt;
crForm.Show();
(This code works fine with the version of Crystal that ships with VS.NET 2003)
~~ Codemech