首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

求解:水晶报表导出word或者其他格式都报错,该怎么处理

2012-03-24 
求解:水晶报表导出word或者其他格式都报错开发环境VS2010 WINFORM 水晶报表版本:13.0.2000.0(Crystal Repo

求解:水晶报表导出word或者其他格式都报错
开发环境VS2010 WINFORM 水晶报表版本:13.0.2000.0(Crystal Reports for .NET Framework 4.0)
错误信息:以下是debug的时候查到的错误信息。
Message"容量超出了最大容量。\r\n参数名: capacity"string
Source"mscorlib"string
StackTrace" 在 System.Text.StringBuilder.ReplaceBufferAnsiInternal(SByte* newBuffer, Int32 newLength)\r\n 在 Sunisoft.IrisSkin.x61467fe65a98f20c.GetWindowText(IntPtr hWnd, StringBuilder lpString, Int32 nMaxCount)\r\n 在 Sunisoft.IrisSkin.xb052c904ac95dc43..ctor(IntPtr handle, SkinEngine engine)\r\n 在 Sunisoft.IrisSkin.SkinEngine.DoAddDlg(IntPtr handle, Boolean isManul)\r\n 在 Sunisoft.IrisSkin.SkinEngine.FnHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)\r\n 在 System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)\r\n 在 System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)\r\n 在 System.Windows.Forms.RTLAwareMessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)\r\n 在 System.Windows.Forms.FileDialog.MessageBoxWithFocusRestore(String message, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)\r\n 在 System.Windows.Forms.SaveFileDialog.PromptFileOverwrite(String fileName)\r\n 在 System.Windows.Forms.SaveFileDialog.PromptUserIfAppropriate(String fileName)\r\n 在 System.Windows.Forms.FileDialog.ProcessFileNames()\r\n 在 System.Windows.Forms.FileDialog.DoFileOk(IntPtr lpOFN)\r\n 在 System.Windows.Forms.FileDialog.HookProc(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n 在 System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n 在 System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n 在 System.Windows.Forms.NativeWindow.WndProc(Message& m)\r\n 在 Sunisoft.IrisSkin.xd24df615efe9450e.WndProc(Message& m)\r\n 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n 在 System.Windows.Forms.UnsafeNativeMethods.GetSaveFileName(OPENFILENAME_I ofn)\r\n 在 System.Windows.Forms.SaveFileDialog.RunFileDialog(OPENFILENAME_I ofn)\r\n 在 System.Windows.Forms.FileDialog.RunDialogOld(IntPtr hWndOwner)\r\n 在 System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)\r\n 在 System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)\r\n 在 System.Windows.Forms.CommonDialog.ShowDialog()\r\n 在 CrystalDecisions.Windows.Forms.ReportDocumentBase.Export()\r\n 在 CrystalDecisions.Windows.Forms.PageView.ExportReport()\r\n 在 CrystalDecisions.Windows.Forms.PageView.exportButton_Clicked(Object sender, EventArgs e)\r\n 在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)\r\n 在 System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)\r\n 在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)\r\n 在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)\r\n 在 System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)\r\n 在 System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)\r\n 在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)\r\n 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n 在 System.Windows.Forms.Control.WndProc(Message& m)\r\n 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n 在 System.Windows.Forms.ToolStrip.WndProc(Message& m)\r\n 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n 在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)\r\n 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n 在 System.Windows.Forms.Application.Run(Form mainForm)\r\n 在 EPPMS.Program.Main() 位置 C:\\EPPMS\\EPPMS\\EPPMS\\Program.cs:行号 20"string




[解决办法]
是:IrisSkin 控件的问题。 不启用这个控件就不会这样的。 我也在寻找答案。 奶奶的, 可能要问题 Iriskin的开发者了。

热点排行