Page 1 of 1

ShowTotal issue in cross tab reports

Posted: Sat Aug 11, 2012 6:46 am
by sabahat
Hi,

I'm facing an issue with cross tab reports, if I specify more than one field as Rows of cross tab report and the Show Total is turned on only for the first field, the following exception is thrown:

Code: Select all

Microsoft JScript runtime error: Unhandled Error in Silverlight Application Value does not fall within the expected range.   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Double d)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Double d)
   at Stimulsoft.Report.SL.Helpers.StiFontHelper.SetInformation(Double maxWidth, Double width, String text, Font font, TextWrapping wrapping)
   at Stimulsoft.Report.SL.Helpers.StiFontHelper.GetFontSizeD(Double maxWidth, Font font, StiText textBox)
   at Stimulsoft.Report.Components.StiText.GetActualSize()
   at Stimulsoft.Report.Components.StiContainerHelper.CheckSize(StiComponent component)
   at Stimulsoft.Report.Engine.StiContainerV2Builder.InternalRender(StiComponent masterComp)
   at Stimulsoft.Report.Engine.StiCrossTabV2Builder.InternalRender(StiComponent masterComp)
   at Stimulsoft.Report.Components.StiComponent.InternalRender()
   at Stimulsoft.Report.Engine.StiComponentV2Builder.Render(StiComponent masterComp)
   at Stimulsoft.Report.Components.StiComponent.Render()
   at Stimulsoft.Report.Engine.StiPageHelper.RenderSimpleComponents(StiPage page, StiContainer outContainer)
   at Stimulsoft.Report.Engine.StiStaticBandsHelper.Render()
   at Stimulsoft.Report.Engine.StiEngine.NewList(Boolean skipStaticBands)
   at Stimulsoft.Report.Engine.StiEngine.NewPage(Boolean ignoreKeepContainers)
   at Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
   at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
   at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
   at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
   at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
   at Stimulsoft.Report.StiReport.Render()
   at StiTestSL.MainPage.LoadReport()
   at StiTestSL.MainPage..ctor()
   at StiTestSL.App.Application_Startup(Object sender, StartupEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

I guesss the problem is with 'CrossTab1_RowTotal2' control which seems to be zero size.

I've provided you a sample to reproduce the issue.
Follow these steps:
1-Build a cross tab report using the 'StiTestWin' windows application(A sample mrt report is attached).
2-Save the report as Silvelight C# file .
3-Include the saved C# file in 'StiTestSL' silverlight project.
4-Run the 'StiTestSL.Web' web application to see the rendered report.

The Stimulsoft binaries have been deleted from the sample project to reduce the size.
I've tested it with prerelease build of '2012.2.1319.0' for Silverlight 4 .

Thanks.

Re: ShowTotal issue in cross tab reports

Posted: Mon Aug 13, 2012 2:03 pm
by HighAley
Hello.

Sorry, we need a little more time to prepare an answer for you.

Thank you.

Re: ShowTotal issue in cross tab reports

Posted: Sat Aug 18, 2012 7:00 am
by sabahat
Hi,

Is there any update? I checked the prerelease build "SL_v4_2012.08.16" and it seems that this issue has been resolved. Would you please confirm it.
Thanks.

Re: ShowTotal issue in cross tab reports

Posted: Mon Aug 20, 2012 2:54 pm
by HighAley
Hello.

Yes. There were some improvements and we couldn't reproduce your issue on the latest prerelease build.

Thank you.

Re: ShowTotal issue in cross tab reports

Posted: Wed Aug 22, 2012 6:20 am
by sabahat
OK, Thank you for your support.

Re: ShowTotal issue in cross tab reports

Posted: Thu Aug 23, 2012 3:36 am
by Andrew
Hello,

It is always pleasure to help you.

Thank you.