找回密码
 立即注册

QQ登录

只需一步,快速开始

yanzifeifei

注册会员

2

主题

3

帖子

11

积分

注册会员

积分
11
最新发帖
yanzifeifei
注册会员   /  发表于:2019-4-26 15:34  /   查看:3159  /  回复:4
这个代码 在其他机器上没有问题 但是 server 2008r2 企业版 SP1 上就是不行


报错如下


System.InvalidCastException: 指定的转换无效。
   在 C1.Util.DX.ComObject.QueryInterface(Guid guid, IntPtr& outPtr)
   在 C1.Util.DX.ComObject.QueryInterface[T]()
   在 C1.Win.C1Document.Util.C1DXTextLayout..ctor(IC1DXTextLayoutOwner owner)
   在 C1.Win.C1Document.Util.C1DXTextMeasurementContext..ctor()
   在 C1.Win.FlexReport.C1FlexReport.InitializeRendering(IExecutionContext context)
   在 C1.Win.FlexReport.C1FlexReport.InternalRender(IExecutionContext context)
   在 C1.Win.FlexReport.C1FlexReport.InternalExport(ExportFilter exporter, IExecutionContext context)
   在 C1.Win.C1Document.C1DocumentSource.Export(ExportFilter exportFilter)
   在 C1.Win.FlexReport.C1FlexReport.RenderToFilter(ExportFilter filter)
   在 C1PrintDemo.Form1.button1_Click(Object sender, EventArgs e) 位置 c:\Users\zdy\Documents\Visual Studio 2013\Projects\HMProject\C1PrintDemo\Form1.cs:行号 34
   在 System.Windows.Forms.Control.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   在 System.Windows.Forms.Button.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


请问这个是什么问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

4 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-4-26 17:28:02
沙发
同样是在server 2008r2 sp1上测试了一下,并未发现错误,这个目前不好判断原因,你那边服务器上有开发环境的话,可以调试一下
初步判断可能是服务器上有什么组件缺失导致的
回复 使用道具 举报
yanzifeifei
注册会员   /  发表于:2019-4-30 16:46:30
板凳
Richard.Ma 发表于 2019-4-26 17:28
同样是在server 2008r2 sp1上测试了一下,并未发现错误,这个目前不好判断原因,你那边服务器上有开发环境 ...

那么大概是缺少什么组件呢?企业版的,我试过不下3台服务器都是这样,能告诉我缺少什么组件吗?
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-5-7 17:16:58
地板
问题我们已经提交给了研发人员,有结果后给你及时反馈,建议您也可以再测试一下
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-5-8 12:13:44
5#
问题原因还是系统的版本导致的,需要安装系统更新如下
https://support.microsoft.com/en ... -server-2008-r2-sp1
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部