Page 1 of 1

I have a problem with StiWpfDesignerControl

Posted: Fri Apr 04, 2014 8:22 am
by haochen.Ye
Hi,

I use the StiWpfDesignerControl and StiReport like this:

Code: Select all

StiReport report = new StiReport();
report.RegData("DTData", this.GetDataTable());
StiWpfDesignerControl sti = new StiWpfDesignerControl(report);
Root.Children.Add(sti);
The result were as follows:
Image
I can't see my registration data columns.

But, if I use them like this in the following code:

Code: Select all

StiReport report = new StiReport();
report.RegData("CSVData", this.LoadCSV());
report.DesignWithWpf();
Result like this:
Image
I use the StiWpfDesignerControl in the wrong way?

Re: I have a problem with StiWpfDesignerControl

Posted: Fri Apr 04, 2014 12:35 pm
by HighAley
Hello.

Please, call the report..Dictionary.Synchronize(); method after registering data.
When you call DesignWithWpf() this method is called automatically.

Thank you.

Re: I have a problem with StiWpfDesignerControl

Posted: Sun Apr 06, 2014 9:29 am
by haochen.Ye
It worked.
Thank you.

Re: I have a problem with StiWpfDesignerControl

Posted: Mon Apr 07, 2014 5:36 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.