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);
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?