日期:2014-05-18  浏览次数:20848 次

求解:水晶报表导出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(IntP