Problem with subreport in designer

Stimulsoft Reports.NET discussion
Post Reply
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Problem with subreport in designer

Post by lcruiser »

Hi,

I drop a subreport control onto the designer and
1. the properties tab blank out ie. just showing black grids
2. click on the subreport control I get "Key 'SubReportCategory' is not found!" and crash the designer

I'm using release 2007.10.01 R2005


here is the stack trace:

at Stimulsoft.Base.Localization.StiLocalization.Get(String category, String key, Boolean throwError)
at Stimulsoft.Base.Localization.StiLocalization.Get(String category, String key)
at Stimulsoft.Base.Localization.StiPropertyDescriptor.get_Category()
at System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.get_PropertyCategory()
at System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry.CategorizePropEntries()
at System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry.CreateChildren()
at System.Windows.Forms.PropertyGridInternal.GridEntry.set_InternalExpanded(Boolean value)
at System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry..ctor(PropertyGridView gridEntryHost, Object value, GridEntry parent, IServiceProvider baseProvider, IDesignerHost host, PropertyTab tab, PropertySort sortType)
at System.Windows.Forms.PropertyGridInternal.GridEntry.Create(PropertyGridView view, Object[] rgobjs, IServiceProvider baseProvider, IDesignerHost currentHost, PropertyTab tab, PropertySort initialSortType)
at System.Windows.Forms.PropertyGrid.UpdateSelection()
at System.Windows.Forms.PropertyGrid.RefreshProperties(Boolean clearCached)
at System.Windows.Forms.PropertyGrid.Refresh(Boolean clearCached)
at System.Windows.Forms.PropertyGrid.set_SelectedObjects(Object[] value)
at Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.Localize()
at Stimulsoft.Report.Design.StiDesigner.LocalizePanels()
at Stimulsoft.Report.Design.StiBuilder.BuildReport()
at Stimulsoft.Report.Design.StiDesigner.Refresh()
at Stimulsoft.Report.Design.Controls.StiViewControl.OnGotFocus(EventArgs e)
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SetFocus(HandleRef hWnd)
at System.Windows.Forms.Control.FocusInternal()
at System.Windows.Forms.Control.Focus()
at Stimulsoft.Report.Design.Controls.StiViewControl.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at dNetReportTest.Program.Main() in C:\\dNetReportTest\\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

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

Problem with subreport in designer

Post by Vital »

Hello,

Problem fixed. Patch will be available in build from 2 Oct.

Thank you.
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Problem with subreport in designer

Post by lcruiser »

Hi,

With 2007.10.02 R2005 the properties tab is fixed however when I click and drag to widen the subreport control I get "Object reference not set to an instance of an object." error and the following stack dump

at Stimulsoft.Report.Design.Controls.StiViewControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at dNetReportTest.Program.Main() in C:\dNetReportTest\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Problem with subreport in designer

Post by Guest »

We couldn't reproduce this issue. Please send your report to Image

Thank you.
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Problem with subreport in designer

Post by lcruiser »

Hi Pavel,

The problem occurs with any report ie. blank and existing. It can be recreated using the designer.exe and the following steps:

1. start designer which will show a blank report
2. left mouse click on the subreport control on the left tool bar then drag and drop it on the designer
3. the subreport control appears as a square box on the design
4. resize the box by click and drag one of the the resize anchor around the box
5. when you release the mouse the error will occur.

I'm using the prerelease version 2007.10.03 R2005, may be it's different to your development version. Please test this on the prerelease version.

Thanks.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Problem with subreport in designer

Post by Guest »

Ok. We reproduced this problem. We will fix it in the begining of the next week.

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

Problem with subreport in designer

Post by Vital »

Hello,

We have fixed this problem. Patch will be available in build from 8 Oct.

Thank you.
Post Reply