Selecting print crashes Wpf Viewer

Stimulsoft Reports.WPF discussion
Post Reply
drhkocher
Posts: 15
Joined: Thu Aug 06, 2009 1:43 pm
Location: Germany

Selecting print crashes Wpf Viewer

Post by drhkocher »

When I try to print a report, the viewer crashes with a NullPointerException:

bei Stimulsoft.Report.Viewer.StiWpfViewerControl.OnReportPrint(RoutedEventArgs e)
bei Stimulsoft.Report.Viewer.StiWpfViewerControl.InvokeReportPrint()
bei Stimulsoft.Report.Viewer.StiWpfViewerControl.OnViewerCommand(Object target, ExecutedRoutedEventArgs args)
bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
bei System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
bei System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
bei System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
bei System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Selecting print crashes Wpf Viewer

Post by Jan »

Hello,

We can't reproduce this problem. May be we don't take in considarations some factors. Can you provide steps to reproduce this problem? May be sample project possible?

Thank you.
joalgreen
Posts: 1
Joined: Wed Sep 30, 2009 4:16 pm
Location: Vancouver, Canada

Selecting print crashes Wpf Viewer

Post by joalgreen »

I have run into a similar problem. I get "Object reference not set to an instance of an object" when the Print button is clicked from the preview window.

I have one project where the problem is always there, and three projects where the problem is never there.

I think the significant difference is: The one problem project is a Windows Forms project, not a WPF project.

Should Reports.WPF work OK from a WinForms project, or do we need licenses both for our WPF projects and our one (soon to be replaced) WinForms project? (We are still evaluating and haven't purchased yet.)
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Selecting print crashes Wpf Viewer

Post by Jan »

Hello,

Please check build from 7 October. We have made some changes in our code.

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Selecting print crashes Wpf Viewer

Post by Jan »

Hello,
joalgreen wrote:I have run into a similar problem. I get "Object reference not set to an instance of an object" when the Print button is clicked from the preview window.

I have one project where the problem is always there, and three projects where the problem is never there.

I think the significant difference is: The one problem project is a Windows Forms project, not a WPF project.

Should Reports.WPF work OK from a WinForms project, or do we need licenses both for our WPF projects and our one (soon to be replaced) WinForms project? (We are still evaluating and haven't purchased yet.)
You can use WPF version in WinForms, but this may produce some problems between WPF and WinForms, for example with keyborard.

Thank you.
Post Reply