
C#WPF控件DocumentViewer打印问题;
当预览后点击打印保存为XPS报错!不是每台电脑都是那样,有的电脑是正常的!System.Windows.Threading.Dispatcher方法:CatchExcep...
当预览后点击打印保存为XPS报错!不是每台电脑都是那样,有的电脑是正常的!System.Windows.Threading.Dispatcher 方法:CatchException>>>>Exception from HRESULT: 0x800C000E at MS.Internal.Security.AttachmentService.ISecuritySuppressedIAttachmentExecute.SaveWithUI(IntPtr hwnd) at MS.Internal.Security.AttachmentService.SaveWithUI(IntPtr parent, Uri source, Uri target) at System.Windows.Xps.Packaging.XpsDocument.SaveWithUI(IntPtr parent, Uri source, Uri target) at System.Windows.Xps.XpsDocumentWriter.CreateXPSDocument(String documentName) at System.Windows.Xps.XpsDocumentWriter.BeginWrite(Boolean batchMode, Boolean asyncMode, Boolean setPrintTicketHandler, PrintTicket printTicket, PrintTicketLevel printTicketLevel, Boolean printJobIdentifierSet)
展开
1个回答
展开全部
有没有demo来调试一下
追问
无法给你环境!因为不是每台电脑都会报错!有的电脑正常的,我已经实现了打印预览,
DocumentViewer自带的打印图标我点击保存为XPS就会报错,点击打印机就会程序奔溃;
追答
我有6个虚拟机可以测试。都是干净的虚拟机。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询