Weird problem

Stimulsoft Reports.NET discussion
Post Reply
René van den Berg
Posts: 24
Joined: Mon Jul 17, 2006 12:41 am
Location: Holland

Weird problem

Post by René van den Berg »

I have a report and on some instances of this report I get an Object reference not set error. The preview shows method: [Pop], and no data is displayed so I cannot create a .mdc file. As I said it doesn't happen all the time. So there is a data dependency. If I remove a reportfooterband from my report, than the problem is solved.
If I make the same reportfooterband empty (so no components are on the band) than I also don't get an error. When I put an empty textcomponent on the reportfooter I get an error. I'm not certain but I think it has to do with the report not fitting on 1 page. But of course this is a wild guess. Any help would be appreciated. By the way. I use the latest version of StimulReport SR_2007.06.08_R2005, but I also tried the 2007.1 version.

This is the stack trace:

bij Stimulsoft.Report.StiStatesManager.Pop(String stateName, Object obj, String property)
bij Stimulsoft.Report.StiStatesManager.PopInt(String stateName, Object obj, String property)
bij Stimulsoft.Report.Components.StiComponent.RestoreState(String stateName)
bij Stimulsoft.Report.Components.StiContainer.RestoreState(String stateName)
bij Stimulsoft.Report.Components.StiPagesCollection.RestoreState(String stateName)
bij Stimulsoft.Report.StiReport.RestoreState(String stateName)
bij Stimulsoft.Report.Components.StiDataBand.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer, Boolean value)
bij Stimulsoft.Report.Components.StiDataBand.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiDataBand.Render(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
bij Stimulsoft.Report.Components.StiDataBand.RenderDetails(StiContainer outContainer)
bij Stimulsoft.Report.Components.StiDataBand.RenderItem(Boolean& breaked, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiDataBand.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer, Boolean value)
bij Stimulsoft.Report.Components.StiDataBand.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiDataBand.Render(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
bij Stimulsoft.Report.Components.StiContainer.CoreRenderCont(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiContainer.RenderContainer(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiPage.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiComponent.Render(StiComponent& renderedComponent, StiContainer outContainer)
bij Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
bij Stimulsoft.Report.Render.StiRender.GetNextPage()
bij Stimulsoft.Report.Render.StiRenderProvider.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
bij Stimulsoft.Report.Render.StiRenderProvider.Render(StiReport report, StiRenderState state)
bij Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
bij Stimulsoft.Report.StiReport.Render(Boolean showProgress)
bij DeGeus.ControlLayer.ReportHelper.reportIt(String repfile, Boolean preview, Boolean design, StiReport report, PrinterSettings printerSettings) in D:\Projecten\Dotnet\DeGeus\DeGeus\ControlLayer\ReportHelper.cs:regel 160
bij DeGeus.ControlLayer.ReportHelper.printFactuurReport(FactuurIEnumerableCollection list, Boolean design) in D:\Projecten\Dotnet\DeGeus\DeGeus\ControlLayer\ReportHelper.cs:regel 114
bij DeGeus.Forms.FactuurViewForm.printReport(Boolean design) in D:\Projecten\Dotnet\DeGeus\DeGeus\Forms\FactuurViewForm.cs:regel 250
bij DeGeus.Forms.FactuurViewForm.b__5(Command ) in D:\Projecten\Dotnet\DeGeus\DeGeus\Forms\FactuurViewForm.cs:regel 153
bij CommandManagement.Command.Execute() in D:\Projecten\Dotnet\Common\CommandManager.root\CommandManager\CommandManager\Command.cs:regel 119
bij CommandManagement.ToolStripButtonCommandExecutor.button_Click(Object sender, EventArgs args) in D:\Projecten\Dotnet\Common\CommandManager.root\CommandManager\CommandManager\CommandExecutor.cs:regel 242
bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
bij System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
bij System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
bij System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bij System.Windows.Forms.ToolStrip.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(Form mainForm)
bij DeGeus.DeGeusApp.Main(String[] args) in D:\Projecten\Dotnet\DeGeus\DeGeus\DeGeusApp.cs:regel 36
bij System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()


Greetings,

Rene van den Berg
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Weird problem

Post by Vital »

We need more information to fix this bug. Can you provide report file and sample data for it?
René van den Berg
Posts: 24
Joined: Mon Jul 17, 2006 12:41 am
Location: Holland

Weird problem

Post by René van den Berg »

I've sent a testcase to support[dot]stimulsoft.com
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Weird problem

Post by Edward »

Thank you for the test report. We've reproduced the error.

We will inform you when the solution will be ready in this topic.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Weird problem

Post by Vital »

Problem solved. Thank you.
René van den Berg
Posts: 24
Joined: Mon Jul 17, 2006 12:41 am
Location: Holland

Weird problem

Post by René van den Berg »

Is this bug fixed in today's release?

René
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Weird problem

Post by Vital »

Please check latest build.
Post Reply