Page 1 of 1

Width must be non-negative... exception

Posted: Thu Jun 09, 2011 8:53 am
by LukasT
Hello,
I have report, which is not problem to show in Designer, but if we put it into StiWpfViewerControl, dispatcher catch this exception....

System.ArgumentException: Width must be non-negative.
at System.Windows.Rect.set_Width(Double value)
at Stimulsoft.Report.Painters.StiTextWpfPainter.Paint(StiComponent component, StiPaintEventArgs e)
at Stimulsoft.Report.Components.StiComponent.Paint(StiPaintEventArgs e)
at Stimulsoft.Report.Painters.StiContainerWpfPainter.PaintComponents(StiContainer container, StiPaintEventArgs e)
at Stimulsoft.Report.Painters.StiPageWpfPainter.Paint(StiComponent comp, StiPaintEventArgs e)
at Stimulsoft.Report.Components.StiComponent.Paint(StiPaintEventArgs e)
at Stimulsoft.Report.Viewer.StiWpfViewerControl.RenderPageContent(StiPageVisual pageVisual)
at Stimulsoft.Report.Viewer.StiWpfViewerControl.UpdatePagesPlacement(Boolean allowAnimation, Double baseOpacity)
at Stimulsoft.Report.Viewer.StiWpfViewerControl.UpdatePagesPlacement(Double baseOpacity)
at Stimulsoft.Report.Viewer.StiWpfViewerControl.UpdatePagesPlacement()
at Stimulsoft.Report.Viewer.StiWpfViewerControl.c__DisplayClass1d.b__1c(Object , EventArgs )
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Width must be non-negative... exception

Posted: Fri Jun 10, 2011 2:29 am
by Alex K.
Hello,

Please send us your report with sample data for analysis.

Thank you.

Width must be non-negative... exception

Posted: Wed Jul 27, 2011 10:05 am
by LukasT
Hello,
I can not send you the report (non compiled), because it is very complex and needs a lot of our libraries... so only compiled is attached. But I thing, you do not need it... look on exception... in painting visual objects you have no checking if the size is negative.
Thank you for solution...

Width must be non-negative... exception

Posted: Thu Jul 28, 2011 11:44 pm
by Ivan
Hello,

We couldn't reproduce this bug.
But we made some improvements in that direction about a week ago.
Please check the latest prerelease build and let us know about the result.

Thank you.

Width must be non-negative... exception

Posted: Fri Jul 29, 2011 7:35 am
by LukasT
Thank you Ivan, it is correct now ;-)

Width must be non-negative... exception

Posted: Fri Jul 29, 2011 8:20 am
by Andrew
Hello,

Ok!

Have a greta weekend!