Report designer is not responding is case of large amounts of fields using object dataSource

Stimulsoft Reports.NET discussion
Post Reply
Rajesh Tanwar
Posts: 14
Joined: Thu May 14, 2009 2:06 am

Report designer is not responding is case of large amounts of fields using object dataSource

Post by Rajesh Tanwar »

Hi All,

Although I've posted the following problem in the middle of an existing thread, but I'm posting it as new topic so that this problem can be given seperate consideration.

After doing RnD, I'm able to bind data using following code: :biggrin:

Code: Select all

            StiReport report = new StiReport();
            report.Load("D:\\TestReports\\Refferal.mrt");
             BusinessLib.Referral redDet = BusinessLib.Referral.GetReferral();
            report.RegData("MySource", redDet);
            report.Dictionary.DataSources.Clear();
            report.Dictionary.Synchronize();
          report.Dictionary.Connect();
           StiWebDesigner1.Design(report);
BusinessLib.Referral.GetReferral returns single row with lot of columns.
There are around 100 fields which I've placed on the Refferal.mrt file.

Now problem is that it is taking a lot of minutes in registering the data.
In other words..when debugger reach to
report.RegData("MySource", redDet);
Then it stands here for lot of minutes and then nothing appear after that.....or you can say it behaves like not responding.
why it is taking un-definite time?

I think this is happening because I've taken around 100 fields on the report designer.
But how I can make it fast?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Report designer is not responding is case of large amounts of fields using object dataSource

Post by Jan »

Hello,

Please call following line of code before business object registration:

Code: Select all

StiOptions.Dictionary.BusinessObjects.MaxLevel = 3;
Thank you.
Post Reply