Page 1 of 1

Dictionary.Synchronize() behavior

Posted: Fri Aug 31, 2007 9:47 pm
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

Dictionary.Synchronize() behavior

Posted: Sat Sep 01, 2007 11:54 pm
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.

Dictionary.Synchronize() behavior

Posted: Sun Sep 02, 2007 8:51 am
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,

Dictionary.Synchronize() behavior

Posted: Wed Sep 05, 2007 2:34 pm
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.

Dictionary.Synchronize() behavior

Posted: Thu Sep 06, 2007 8:19 am
by lcruiser
Thanks for looking into this issue. Don't worry about it, I can work it it's not really causing problem.