Exception with DesignV2WithWpf

Stimulsoft Reports.WPF discussion
Post Reply
Marco1970
Posts: 7
Joined: Mon Apr 24, 2023 12:17 pm

Exception with DesignV2WithWpf

Post by Marco1970 »

I am using the lastest version 2023.2.8 in WPF with .net7

I open the designer with DesignV2WithWpf() and click in the ribbon menu on insert.

This causes an exception.

What do I do?

Thanks!

System.NullReferenceException: Object reference not set to an instance of an object.
at Stimulsoft.Client.Designer.Toolbars.StiToolboxToolbarService.CreateSetupToolboxButton()
at Stimulsoft.Client.Designer.Toolbars.StiToolboxToolbarService.BuildToolbox()
at Stimulsoft.Client.Designer.Ribbon.StiRibbonMenuControl.TabDesignInsert_Checked(Object sender, RoutedEventArgs e)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Stimulsoft.Client.Designer.Native.StiDesignerLauncherWindow.Launch(Object ownerWindow, Object report, Boolean dialogForm)
at Stimulsoft.Report.StiReport.StartDesignerV2WithWpf(Object ownerWindow, Boolean dialogForm)
at Stimulsoft.Report.StiReport.DesignV2WithWpf(Object ownerWindow, Boolean dialogWindow)
at Stimulsoft.Report.StiReport.DesignV2WithWpf()
at Atlas3000.Reporting.Core.Reports.BaseReport.Design() in D:\Atlas3000\Atlas3000.Reporting.Core\Reports\BaseReport.cs:line 53
at Atlas3000.Reporting.Designer.MainWindow.Button_OnClick(Object sender, RoutedEventArgs e) in D:\Atlas3000\Atlas3000.Reporting.Designer\MainWindow.xaml.cs:line 44
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Atlas3000.Reporting.Designer.App.Main()
Max Shamanov
Posts: 658
Joined: Tue Sep 07, 2021 10:11 am

Re: Exception with DesignV2WithWpf

Post by Max Shamanov »

Hello,

Could you please send us a sample project that reproduces this issue?

Thank you.
Marco1970
Posts: 7
Joined: Mon Apr 24, 2023 12:17 pm

Re: Exception with DesignV2WithWpf

Post by Marco1970 »

There is no project. I start the designer and the first thin I do is to click on the insert tab, so that I can insert a band. And than it immediately crashes.
Lech Kulikowski
Posts: 5676
Joined: Tue Mar 20, 2018 5:34 am

Re: Exception with DesignV2WithWpf

Post by Lech Kulikowski »

Hello,

What Scale is set on that PC?

Thank you.
Marco1970
Posts: 7
Joined: Mon Apr 24, 2023 12:17 pm

Re: Exception with DesignV2WithWpf

Post by Marco1970 »

It was 150%.

Changed it to 100%. Now it works.

Thanks!
Max Shamanov
Posts: 658
Joined: Tue Sep 07, 2021 10:11 am

Re: Exception with DesignV2WithWpf

Post by Max Shamanov »

Hello,

You are Welcome!
Post Reply