I have a problem with StiWpfDesignerControl

Stimulsoft Reports.WPF discussion
Post Reply
haochen.Ye
Posts: 3
Joined: Fri Apr 04, 2014 7:56 am

I have a problem with StiWpfDesignerControl

Post 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?
Attachments
right image.jpg
right image.jpg (11.58 KiB) Viewed 1954 times
error image.jpg
error image.jpg (10.99 KiB) Viewed 1954 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: I have a problem with StiWpfDesignerControl

Post by HighAley »

Hello.

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

Thank you.
haochen.Ye
Posts: 3
Joined: Fri Apr 04, 2014 7:56 am

Re: I have a problem with StiWpfDesignerControl

Post by haochen.Ye »

It worked.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: I have a problem with StiWpfDesignerControl

Post by HighAley »

Hello.

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

Thank you.
Post Reply