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



...全文
218 点赞 收藏 回复
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
图表区
创建于2007-09-28

4810

社区成员

.NET技术 图表区
申请成为版主
帖子事件
创建了帖子
2011-11-10 03:01
社区公告
暂无公告