ShowTotal issue in cross tab reports
Posted: Sat Aug 11, 2012 6:46 am
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:
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.
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.