ahjuxin.net 发表于 2023-2-15 11:32:07

activeReport16预览打印报错



预览打印的时候报错,错误如下
错误明细:
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()

Bella.Yuan 发表于 2023-2-15 11:32:08

本帖最后由 Bella.Yuan 于 2023-2-15 17:11 编辑

ahjuxin.net 发表于 2023-2-15 13:19
跟报表没关系,新建一个只有一个文本框的预览那打印也是报错,没办法调用打印机,错误信息就是全的呀
您好,桌面设计器也可以从代码端生成,您重新生成一下在试试。
生成步骤如下:
git地址:https://github.com/activereports/Samples16
在git中下载项目,然后打开这个项目,在vs中运行.sln文件,运行成功


运行成功后在,这个目录下会生成一个exe文件,双击就可以运行,运行起来就是桌面设计器。




Bella.Yuan 发表于 2023-2-15 12:21:25

您好,您检查一下是所有的报表文件都有这个问题,还是只有这个一个报表文件有这个问题,目前看您提供的错误信息里面没有具体的报错信息,方便的话您把报错信息全部上传一下,我们看看。

ahjuxin.net 发表于 2023-2-15 13:19:56

Bella.Yuan 发表于 2023-2-15 12:21
您好,您检查一下是所有的报表文件都有这个问题,还是只有这个一个报表文件有这个问题,目前看您提供的错误 ...

跟报表没关系,新建一个只有一个文本框的预览那打印也是报错,没办法调用打印机,错误信息就是全的呀
页: [1]
查看完整版本: activeReport16预览打印报错