Strange behaviour when using Designer 2014.1.1806

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Strange behaviour when using Designer 2014.1.1806

Post 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
Attachments
StimulSoft.mpg
(4.01 MiB) Downloaded 187 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Strange behaviour when using Designer 2014.1.1806

Post 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.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Strange behaviour when using Designer 2014.1.1806

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Strange behaviour when using Designer 2014.1.1806

Post 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.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Strange behaviour when using Designer 2014.1.1806

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Strange behaviour when using Designer 2014.1.1806

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Strange behaviour when using Designer 2014.1.1806

Post 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.
Post Reply