Prerelease 2016.1.9 .Render() Error

Stimulsoft Reports.WEB discussion
Post Reply
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Prerelease 2016.1.9 .Render() Error

Post 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
Attachments
201619Error.PNG
201619Error.PNG (12.9 KiB) Viewed 1899 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Prerelease 2016.1.9 .Render() Error

Post by Alex K. »

Hello,

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

Thank you.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: Prerelease 2016.1.9 .Render() Error

Post 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
Attachments
TestData.zip
(10.16 KiB) Downloaded 208 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Prerelease 2016.1.9 .Render() Error

Post 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.
ToneCold
Posts: 28
Joined: Thu Aug 29, 2013 6:26 pm

Re: Prerelease 2016.1.9 .Render() Error

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

Re: Prerelease 2016.1.9 .Render() Error

Post 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 1860 times
There should be a Data band near the Group Header or it will not work properly.

Thank you.
Post Reply