focuschina 发表于 2017-5-3 11:59:25

PrintPreviewControl.PrintPreview报错

请问这是什么情况?


System.Reflection.TargetInvocationException: PrintTicket provider failed to retrieve PrintCapabilities. Win32 error: -2147467259 --- End of inner exception stack trace --- at MS.Internal.Printing.Configuration.PTProvider.GetPrintCapabilities(MemoryStream printTicket) at System.Printing.PrintTicketManager.GetPrintCapabilitiesAsXml(PrintTicket printTicket) at System.Printing.PrintTicketManager.GetPrintCapabilities(PrintTicket printTicket) at System.Printing.PrintQueue.GetPrintCapabilities(PrintTicket printTicket) at System.Windows.Controls.PrintDialog.UpdatePrintableAreaSize() at System.Windows.Controls.PrintDialog.get_PrintableAreaWidth() at GrapeCity.Windows.SpreadSheet.UI.b0.af(PrintDialog A_0, PrintInfo A_1, Boolean A_2, Size& A_3, Rect& A_4) at GrapeCity.Windows.SpreadSheet.UI.cr..ctor(PrintDialog A_0, GcSpreadSheet A_1, Boolean A_2) at GrapeCity.Windows.SpreadSheet.UI.c3.f() at GrapeCity.Windows.SpreadSheet.UI.c3.j() at GrapeCity.Windows.SpreadSheet.UI.cz.a(Boolean A_0) at GrapeCity.Windows.SpreadSheet.UI.PrintPreviewControl.PrintPreview(GcSpreadSheet spread, String pageRange) at GrapeCity.Windows.SpreadSheet.UI.PrintPreviewControl.PrintPreview(GcSpreadSheet spread) at Abiz.Module.CustomOutPut.Views.CustomOutputView.CustomOutputPriview.<View_Loaded>b__f() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) CurrentCulture: zh-CN, CurrentUICulture: zh-CN, InstalledUICulture: zh-CN

dexteryao 发表于 2017-5-3 16:21:45

您好,从这个错误看不出具体问题,可否发送个可以重现的Demo上来
页: [1]
查看完整版本: PrintPreviewControl.PrintPreview报错