StiReport.Dictionary.Synchronize() is not synchronizing

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

StiReport.Dictionary.Synchronize() is not synchronizing

Post by LukasT »

Hello,
StiReport.Dictionary.Synchronize() is not refreshing items in expanded DataSource tree.... to see new items I have to collapse DataSource tree and than expand it again....
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by HighAley »

Hello.

When do you call Synchronize() method? Please, describe your issue more detailed.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by LukasT »

We have some utility for creation report data source and when it has changed, I have to synchronize it with DataSource in StiReport... so I am calling this procedure:

designer.Report.Dictionary.Clear();
designer.Report.RegData("dataSource", reportDataSet);
designer.Report.Dictionary.Synchronize();
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by HighAley »

Hello.

This part of code is right but we need to see your full code listing. Because we couldn't see where do you call Designer. And at what time do you try to synchronize dictionary.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by LukasT »

I can't send you full code listing....
More details.... I have winform designer hosted in WPF application. Designer is loaded in first tab. During working I can switch into second tab, where I have our data source generator... there I can add new columns and when I switch back to Designer, I am calling this synchronize procedure.... In case of using WPF Designer it works as I am expecting...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by HighAley »

Hello.

Please, try to call designer.InvokeRefreshDictionary() after synchronizing dictionary.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by LukasT »

Great! This is it.... thank you ;-)
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: StiReport.Dictionary.Synchronize() is not synchronizing

Post by Andrew »

Hello,

Great! Have a nice day!

Thank you.
Post Reply