Width must be non-negative... exception

Stimulsoft Reports.WPF discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Width must be non-negative... exception

Post 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)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Width must be non-negative... exception

Post by Alex K. »

Hello,

Please send us your report with sample data for analysis.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Width must be non-negative... exception

Post 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...
Attachments
1193.negativeWidthReport.mdc
(82.89 KiB) Downloaded 330 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Width must be non-negative... exception

Post 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.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Width must be non-negative... exception

Post by LukasT »

Thank you Ivan, it is correct now ;-)
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Width must be non-negative... exception

Post by Andrew »

Hello,

Ok!

Have a greta weekend!
Post Reply