zoukankan      html  css  js  c++  java
  • 'UInt32 System.Printing.PrintQueue.GetDpiX(System.Printing.ILegacyDevice)问题解决方法

    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, Double 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.

  • 相关阅读:
    CodeForces-1100C NN and the Optical Illusion 简单数学
    HDU-3038 How Many Answers Are Wrong 并查集
    POJ-1321 棋盘问题 DFS
    POJ-1651 Multiplication Puzzle 区间DP
    HDU-2037 今年暑假不AC 贪心
    排序算法的总结
    UVa-679 Dropping Balls 二叉树
    Coursera机器学习——Recommender System测验
    页面置换算法及例题
    这篇最新MySQL面试题请查收
  • 原文地址:https://www.cnblogs.com/liuliu-NoGirl/p/5505513.html
Copyright © 2011-2022 走看看