Page 1 of 1

Strange behaviour when using Designer 2014.1.1806

Posted: Wed Jan 15, 2014 9:34 am
by PJoyeux
Hi,

I use StiWpfDesignerControl on an own window to show/design a report:

Code: Select all

objReport = new StiReport();
objReport.LoadFromString(sReportDefition);

StiWpfDesignerControl objStiWpfDesignerControl = new StiWpfDesignerControl(objReport);

ContainerGrid.Children.Add(objStiWpfDesignerControl);
With 2013.3.1800 the content of the reports was visible immediatly once the StiWpfDesignerControl was loaded/created. This is the expected behaviour.

With the newest build (2014.1.1806) the designer appears empty after loading. I have to click somewhere on the (apparently) empty canvas/background of the designer and then the content appears.

I have attached a small video to show the behaviour. The position of the mouse is shown by a yellow circle. When the left mouse button is clicked a red circle appears so you can see when and where I clicked.

BTW: Why can't I upload *.MP4-Files? They are so much smaller and have better quality than the MPG I have to upload instead...

Cheers,
Pascal

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Thu Jan 16, 2014 9:55 am
by HighAley
Hello.

We have reverted all last changes in Reports.Wpf which was causing strange bugs and made our product unstable.
Our next prerelease build will be more stable. It will be available on January 17.

Thank you.

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Fri Jan 17, 2014 1:28 pm
by PJoyeux
Hi,

just tested it with 2014.1.1807 and the problem is still there. I have to click somewhere in the apparently empty report and then the components show up... :|

Cheers,
Pascal

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Mon Jan 20, 2014 7:19 am
by HighAley
Hello.

Please, checnge your code to the next:

Code: Select all

objReport = new StiReport();
objReport.LoadFromString(sReportDefition);

StiWpfDesignerControl objStiWpfDesignerControl = new StiWpfDesignerControl();

ContainerGrid.Children.Add(objStiWpfDesignerControl);
objStiWpfDesignerControl.Report = objReport;
Thank you.

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Mon Jan 20, 2014 10:17 am
by PJoyeux
Hi,

this works, thanks!

Maybe the overload of the constructor of StiWpfDesignerControl using a param of type StiReport should be removed if it does not work as expected... ;-)

Cheers,
Pascal

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Mon Jan 20, 2014 1:23 pm
by HighAley
Hello, Pascal.

Good. We are glad to help you.
We can't remove this constructor, because it could be used by any of our customers.

Thank you.

Re: Strange behaviour when using Designer 2014.1.1806

Posted: Tue Jan 21, 2014 7:07 am
by HighAley
Hello.

We have made an analysis of this issue once again and have found bug on our side.
The problem with your previous code is solved and the solution will be available in our next prerelease build on January 24.

Thank you.