Since the install of update KB 313XXXX we can no longer print from a WPF application. The following exception occures when System.Windows.Controls.PrintDialog.PrintDocument is called.
Source:reachframework
Message:Source:Method not found: ' UInt32 System.Printing.PrintQueue.GetDpiX (System.Printing.ILegacyDevice) '.
Stack tace:at Microsoft.Internal.AlphaFlattener.Flattener.Convert (Primitive tree, Ilegacydevice DC, Double width, Doub Le height, double dpix, double Dpiy, Nullable ' 1 quality)
At Microsoft.Internal.AlphaFlattener.MetroDevice0.FlushPage (Ilegacydevice sink, double width, double height, Nullable ' 1 outputquality)
At Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.FlushPage ()
At System.Windows.Xps.Serialization.NgcSerializationManager.EndPage ()
At System.Windows.Xps.Serialization.NgcFixedPageSerializer.SerializeObject (Object serializedobject)
At System.Windows.Xps.Serialization.NgcDocumentPageSerializer.SerializeObject (Object serializedobject)
At System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject (Object serializedobject)
At System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml (Object serializedobject)
At System.Windows.Xps.XpsDocumentWriter.SaveAsXaml (Object serializedobject, Boolean issync)
At System.Windows.Xps.XpsDocumentWriter.Write (DocumentPaginator documentpaginator, PrintTicket PrintTicket)
At System.Windows.Controls.PrintDialog.PrintDocument (documentpaginator documentpaginator, String description)
Uninstalling the update resolves the issue.
Issue occurs on Windows 7,. NET 3.5/4, x86 with physical printers and not virtual ones such as Sent to OneNote or XPS. Occures on both Xerox 7380 and Intermec pf4i.
' UInt32 System.Printing.PrintQueue.GetDpiX (System.Printing.ILegacyDevice) Problem Solving method