ShowTotal issue in cross tab reports

Stimulsoft Reports.Silverlight discussion
Locked
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

ShowTotal issue in cross tab reports

Post 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.
Attachments
Report.mrt
(13.19 KiB) Downloaded 277 times
StiTestWin.rar
(1.85 MiB) Downloaded 290 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ShowTotal issue in cross tab reports

Post by HighAley »

Hello.

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

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: ShowTotal issue in cross tab reports

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

Re: ShowTotal issue in cross tab reports

Post by HighAley »

Hello.

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

Thank you.
sabahat
Posts: 83
Joined: Sat Aug 13, 2011 11:20 pm

Re: ShowTotal issue in cross tab reports

Post by sabahat »

OK, Thank you for your support.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: ShowTotal issue in cross tab reports

Post by Andrew »

Hello,

It is always pleasure to help you.

Thank you.
Locked