预览打印的时候报错,错误如下
错误明细:
System.ComponentModel.Win32Exception (0x80004005): 操作成功完成。
在 System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
在 System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
在 System.Drawing.Printing.PrinterSettings.GetHdevmode()
在 System.Drawing.Printing.PageSettings.get_PaperSource()
在 GrapeCity.ActiveReports.Viewer.Common.Internal..CreatePrintDlgSettings()
在 GrapeCity.ActiveReports.Viewer.Common.Controls.CustomPrintDialog.RunDialog(IntPtr hwndOwner)
在 System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
在 System.Windows.Forms.CommonDialog.ShowDialog()
在 GrapeCity.ActiveReports.Viewer.Common.Internal..ShowPrintDialog( documentPrintAdapter, Action`1 action, Boolean useStandardDialog, Boolean useXpStyleDialog)
在 GrapeCity.ActiveReports.Viewer.Common.Internal..Print( documentPrintAdapter, Boolean showPrintDialog, Boolean showPrintProgressDialog, Boolean usePrintingThread, Boolean useStandardDialog, Boolean useXpStyleDialog, Action`1 action)
在 GrapeCity.ActiveReports.Viewer.Common.Internal..Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, Boolean showPrintDialog, Boolean showPrintProgressDialog, Boolean usePrintingThread, Boolean useStandardDialog, Boolean useXpStyleDialog)
在 GrapeCity.ActiveReports.Viewer.Common.Internal..Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, PrintingSettings settings)
在 GrapeCity.ActiveReports.Viewer.Common.Internal.PrintService.Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, PrintingSettings settings)
在 GrapeCity.Viewer.Common.ViewModel.ToolbarViewModel..<InitCommands>b__28()
|