找回密码
 立即注册

QQ登录

只需一步,快速开始

lzl1778

注册会员

2

主题

8

帖子

56

积分

注册会员

积分
56
最新发帖
lzl1778
注册会员   /  发表于:2020-8-16 16:49  /   查看:2692  /  回复:1
C1FlexReport做的打印,原来能正常运行,换了一台新电脑后出错,如下:

  1. 有关调用实时(JIT)调试而不是此对话框的详细信息,
  2. 请参见此消息的结尾。

  3. ************** 异常文本 **************
  4. System.Runtime.InteropServices.COMException (0x80040154): 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))
  5.    在 C1.Util.DX.DXGI.PrintDocumentPackageTargetFactory.Create()
  6.    在 C1.Win.C1Document.C1DXPrintManager.Print(String printerName, C1PrintOptions printOptions, ComStream jobPrintTicketStream, Single printerPageWidthPx, Single printerPageHeightPx, Rect printableArea, Int32 dpi, Int32 copies, Boolean collate, OutputRange outputRange)
  7.    在 C1.Win.C1Document.C1DXPrintManager.InternalPrint(C1PrintOptions options)
  8.    在 C1.Win.C1Document.C1PrintManager.Print()
  9.    在 C1.Win.FlexReport.C1FlexReport.InternalPrint(C1PrintOptions options, IExecutionContext context)
  10.    在 C1.Win.C1Document.C1DocumentSource.Print(C1PrintOptions options)
  11.    在 C1.Win.C1Document.C1DocumentSource.Print()
  12.    在 运单助手.frm打印票据.btnDaYin_Click(Object sender, EventArgs e)
  13.    在 System.Windows.Forms.Control.OnClick(EventArgs e)
  14.    在 System.Windows.Forms.Button.OnClick(EventArgs e)
  15.    在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  16.    在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  17.    在 System.Windows.Forms.Control.WndProc(Message& m)
  18.    在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
  19.    在 System.Windows.Forms.Button.WndProc(Message& m)
  20.    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  21.    在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  22.    在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


  23. ************** 已加载的程序集 **************
  24. mscorlib
  25.     程序集版本:4.0.0.0
  26.     Win32 版本:4.7.2556.0 built by: NET471REL1
  27.     基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
  28. ----------------------------------------
  29. 运单助手
  30.     程序集版本:1.0.0.0
  31.     Win32 版本:1.0.0.0
  32.     基本代码:file:///C:/%E8%BF%90%E5%8D%95%E5%8A%A9%E6%89%8B(%E4%BA%8C%E6%9C%9F%EF%BC%89/%E8%BF%90%E5%8D%95%E5%8A%A9%E6%89%8B0801%E4%BA%8C%E6%9C%9F.exe
  33. ----------------------
复制代码
数据库是Access,新电脑未安装Office,是否有关?其他界面读取数据库却没有问题

1 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2020-8-16 23:25:10
沙发
看起来是COMException 错误,这类错误确实有可能是office组件的问题导致的,建议你先安装试试
https://www.cnblogs.com/kerrycode/archive/2010/12/27/1917969.html
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部