Page 1 of 1

StimulReport is trying to load all the data

Posted: Mon Apr 30, 2007 2:25 pm
by danielrail
Hi,

I'm currently developing an application that uses business objects, and when trying to open the report designer in runtime, StimulReport is trying to load all the data(over 400,000 records). And, that takes a long time, especially if someone is only interested to edit a report or even simply print a report that might only need 1 or 2 records. I'm using the latest version on .Net 1.1 with Delphi 2006 for .Net with ECO III. Also, the property CacheData is set to False.

Any ideas on what I can do to avoid this?

Daniel

StimulReport is trying to load all the data

Posted: Tue May 01, 2007 6:55 am
by Edward
You may use static property StiOptions.Dictionary.Enumerables.MaxLevel for limiting the nesting of the business objects.

When RegData is called then the report engine converts all business objects to DataSources and Relations between appropriate columns and all data is loaded in to the Dictionary.

But when you load into the StiReport instance a report template via Load() method, and not calling the RegData, then the report template may be edited without loading all data into the Dictionary, but with full representation of the scheme of the Data in the Dictionary.

Thank you.