Page 1 of 1

Prerelease 2016.1.9 .Render() Error

Posted: Mon Apr 25, 2016 1:12 pm
by ToneCold
I am testing out the latest prerelease 2016.1.9.

I recently tested 2016.1.8 and our reports are working but in 2016.1.9 one of our reports is throwing an error on .Render():

======
"Object reference not set to an instance of an object."

" at Stimulsoft.Report.Engine.StiSubReportsHelper.RenderDataBandsInContainer(StiContainer containerOfDataBands, StiContainer container, Boolean skipStaticBands)
at Stimulsoft.Report.Engine.StiContainerV2Builder.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.StiContainerV2Builder.InternalRender(StiComponent masterComp)
at Stimulsoft.Report.Components.StiComponent.InternalRender()
at Stimulsoft.Report.Engine.StiEngine.InternalRenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents, Boolean& isChildsEnabled)
at Stimulsoft.Report.Engine.StiEngine.RenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderBand(StiDataBand masterDataBand, StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand)
at Stimulsoft.Report.Components.StiDataBand.RenderMaster()
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderDetailDataBands(StiDataBand masterDataBand)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand)
at Stimulsoft.Report.Components.StiDataBand.RenderMaster()
at Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page)
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, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at Stimulsoft.Report.StiReport.Render()
======

It happens when our QuoteLinesBand has data, see attached for tree on report.

Thanks again for your help!

Tony

Re: Prerelease 2016.1.9 .Render() Error

Posted: Mon Apr 25, 2016 1:32 pm
by Alex K.
Hello,

Can you please send us a sample report with test data which reproduces the issue for analysis.

Thank you.

Re: Prerelease 2016.1.9 .Render() Error

Posted: Mon Apr 25, 2016 5:55 pm
by ToneCold
Here you go.

Attached zip contains mrt, vb & .json data file (Looking for json file directly under C:).

Preview works fine thru the designer but it fails when running thru code.

Thanks,
Tony

Re: Prerelease 2016.1.9 .Render() Error

Posted: Tue Apr 26, 2016 2:52 pm
by HighAley
Hello, Tony.

At first we should say, that the structure of your report is wrong.
You don't need to use Panels, please, put the bands on the page without the panels.

Anyway we have reproduced the issue and have made an improvement.
Please, check our next prerelease build that will be available on Friday.

Thank you.

Re: Prerelease 2016.1.9 .Render() Error

Posted: Tue Apr 26, 2016 4:16 pm
by ToneCold
Thanks for the improvement!

Question on the panels. Sometimes we require that data bands not be the full width of the report. Without using a panel is it possible to change the width of a data band?

Thanks,
Tony

Re: Prerelease 2016.1.9 .Render() Error

Posted: Wed Apr 27, 2016 7:34 am
by HighAley
Hello.

Yes, sometimes it's impossible to create a report without Panels.
But it's not right to use the Group Header and the Panel on the page.
ReportTree.png
ReportTree.png (3.42 KiB) Viewed 1856 times
There should be a Data band near the Group Header or it will not work properly.

Thank you.