vs.net2010 RDLC报表,导出excel和pdf正常,但不能导出word

lxh_csdn 2011-11-10 03:01:47
vs.net2010 professional中文版,导出excel和pdf正常,但导出word时,出现错误提示:

Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.]
System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) +0
Microsoft.ReportingServices.Rendering.WordRenderer.SprmBuffer.AddRawSprmData(Byte[] buf) +31
Microsoft.ReportingServices.Rendering.WordRenderer.TableData.CreateTableDefSprm(Single leftStart) +279
Microsoft.ReportingServices.Rendering.WordRenderer.TableData.InitTableRow(Single leftStart, Single rowHeight, Single[] columnWidths, AutoFit autoFit) +451
Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderRectangle(RPLContainer rectangle, Single left, Boolean canGrow, RPLMeasurement rectangleMeasurement, BorderContext parentBorderContext, Boolean inTablix, Boolean ignoreStyles) +993
Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.Render() +689
Microsoft.ReportingServices.Rendering.WordRenderer.WordDocumentRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& someProps, CreateAndRegisterStream createAndRegisterStream) +292

[LocalProcessingException: An error occurred during local report processing.]
Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +341
Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileNameExtension) +218
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +154
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +225
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75



...全文
284 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4,816

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧