Dictionary.Synchronize() behavior

Stimulsoft Reports.NET discussion
Post Reply
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Dictionary.Synchronize() behavior

Post by lcruiser »

Hi,

I load a compiled report then set data source using the following codes

Code: Select all

            report.Dictionary.DataSources.Clear();
            report.Dictionary.DataStore.Clear();
            report.RegData(dataSet.DataSetName, dataSet);
            report.Dictionary.Synchronize();
The rendered report shows no data at all just the template. I comment out DataSources.Clear() and DataStore.Clear() and it works fine.

Is this the correct behavior? ie. I should not clear datasource and datastore?

Thanks
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dictionary.Synchronize() behavior

Post by Vital »

add following line of code after your code:

Code: Select all

report.Design();
in this case you will see what really datasources placed in dictionary. I think problem in other name (Data Name) of new datasources and old datasources.

For also you don't need clear each time Dictionary.DataSources and Dictionary.DataStore.

Thank you.
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Dictionary.Synchronize() behavior

Post by lcruiser »

It's the data name, for some reason after compile the report to dll and load it the data name is blank.

I don't clear datasource and datastore and it works.
Thanks,
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dictionary.Synchronize() behavior

Post by Vital »

To give you correct answer i need see your data (in any useful format), report (with filled old dictionary) and code you are use.

Thank you.
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Dictionary.Synchronize() behavior

Post by lcruiser »

Thanks for looking into this issue. Don't worry about it, I can work it it's not really causing problem.
Post Reply