Hi,
I am using Crystal Reports with a C# WPF app to print formatted guest information. Every time the guest changes, I set some parameter values on the document reset the ReportSource to the newly refreshed document, and print it out.
The problem is that randomly, after anywhere from 4 to 30 printings, I get these errors:
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='Button' (Name=''); target element is 'Button' (Name=''); target property is 'Name' (type 'String')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=.; DataItem=null; target element is 'ImageBrush' (HashCode=44779572); target property is 'ImageSource' (type 'ImageSource')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=Header; DataItem='TreeViewItem' (Name=''); target element is 'TreeViewItem' (Name=''); target property is 'Name' (type 'String')
Though these errors are reported in the debug stream, they don't halt the program. The strange thing is that directly afterward, the printer reports that it is out of paper even though it is not. Pressing the printer's continue button fixes the issue, but the printer is locked away in a cabinet and requires an employee to intercede.
I've found a similar problem in the forum (WPF Viewer 13.0.4 to 13.0.5 Differences ), which has a workaround that I'm happy to use, but it is with a later version which I can't switch to, and the object model seems to have changed.
Any help for me? Thanks in advance.