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.

  • 相关阅读:
    计蒜客 奇怪的国家
    计蒜客 泥塑课
    计蒜客 判断质数
    hiho #1143 : 骨牌覆盖问题·一 (运用快速幂矩阵)
    二叉树建立,先序、中序、后序遍历(c实现)
    hiho #1272 买零食 [Offer收割]编程练习赛2
    hiho #1283 hiho密码 [Offer收割]编程练习赛3
    hiho #1288 微软2016.4校招笔试题 Font Size
    hiho一下 第九十八周 搜索一·24点
    hiho一下 第九十七周 数论六·模线性方程组
  • 原文地址:https://www.cnblogs.com/liuliu-NoGirl/p/5505513.html
Copyright © 2011-2022 走看看