这个代码 在其他机器上没有问题 但是 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)
请问这个是什么问题
|