问题描述
rdlc报表导出excel和pdf是正常的,但是选择了导出word之后就报错这是点击word之后导航栏里的链接:http://localhost:27673/Reserved.ReportViewerWebControl.axd?Culture=2052&CultureOverrides=True&UICulture=2052&UICultureOverrides=True&ReportStack=1&ControlID=2d2607be3f7e443b8169ff9da684669e&Mode=true&OpType=Export&FileName=%E7%8F%AD%E7%BB%84%E7%BB%B4%E4%BF%AE%E5%B7%A5%E4%BD%9C%E5%8D%95&ContentDisposition=OnlyHtmlInline&Format=WORD
解决方案
解决方案二:
什么错误信息
解决方案三:
“/”应用程序中的服务器错误。无效的URI:无法确定URI的格式。说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.UriFormatException:无效的URI:无法确定URI的格式。源错误:执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。堆栈跟踪:[UriFormatException:无效的URI:无法确定URI的格式。]System.Uri.CreateThis(Stringuri,BooleandontEscape,UriKinduriKind)+5453964System.Uri..ctor(StringuriString)+20Microsoft.ReportingServices.Rendering.WordRenderer.Word97Writer.WriteHyperlinkBegin(Stringtarget,BooleanbookmarkLink)+56Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderAction(RPLActionaction)+64Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderTextBox(RPLTextBoxtextBox,RPLMeasurementmeasurement,Int32cellIndex,Singleleft,BorderContextborderContext,BooleaninTablix,BooleanhasBorder)+501Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderReportItem(RPLElementelement,RPLMeasurementmeasurement,Int32cellIndex,Singleleft,BorderContextborderContext,BooleaninTablix)+157Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderTablixCell(RPLTablixtablix,Singleleft,Single[]widths,TablixGhostCell[]ghostCells,BorderContextborderContext,Int32nextCell,RPLTablixCellcell,EnumeratoromittedCells,BooleanlastCell)+365Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderTablix(RPLTablixelement,Singleleft,BorderContextparentBorderContext,BooleaninTablix)+4123Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderReportItem(RPLElementelement,RPLMeasurementmeasurement,Int32cellIndex,Singleleft,BorderContextborderContext,BooleaninTablix)+894Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderRectangle(RPLContainerrectangle,Singleleft,BooleancanGrow,RPLMeasurementrectangleMeasurement,BorderContextparentBorderContext,BooleaninTablix,BooleanignoreStyles)+1515Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderReportItem(RPLElementelement,RPLMeasurementmeasurement,Int32cellIndex,Singleleft,BorderContextborderContext,BooleaninTablix)+2311Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderTablixCell(RPLTablixtablix,Singleleft,Single[]widths,TablixGhostCell[]ghostCells,BorderContextborderContext,Int32nextCell,RPLTablixCellcell,EnumeratoromittedCells,BooleanlastCell)+365Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderTablix(RPLTablixelement,Singleleft,BorderContextparentBorderContext,BooleaninTablix)+4123Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderReportItem(RPLElementelement,RPLMeasurementmeasurement,Int32cellIndex,Singleleft,BorderContextborderContext,BooleaninTablix)+894Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.RenderRectangle(RPLContainerrectangle,Singleleft,BooleancanGrow,RPLMeasurementrectangleMeasurement,BorderContextparentBorderContext,BooleaninTablix,BooleanignoreStyles)+1515Microsoft.ReportingServices.Rendering.WordRenderer.WordRenderer.Render()+659Microsoft.ReportingServices.Rendering.WordRenderer.WordDocumentRenderer.Render(Reportreport,NameValueCollectionreportServerParameters,NameValueCollectiondeviceInfo,NameValueCollectionclientCapabilities,Hashtable&someProps,CreateAndRegisterStreamcreateAndRegisterStream)+307[LocalProcessingException:本地报表处理期间出错。]Microsoft.Reporting.WebForms.LocalReport.InternalRender(Stringformat,BooleanallowInternalRenderers,StringdeviceInfo,PageCountModepageCountMode,CreateAndRegisterStreamcreateStreamCallback,Warning[]&warnings)+603Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(Stringformat,BooleanallowInternalRenderers,StringdeviceInfo,NameValueCollectionadditionalParams,BooleancacheSecondaryStreamsForHtml,String&mimeType,String&fileNameExtension)+268Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollectionurlQuery,HttpResponseresponse)+276Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContextcontext)+303System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+181System.Web.HttpApplication.ExecuteStep(IExecutionStepstep,Boolean&completedSynchronously)+75
解决方案四:
无效的URI:无法确定URI的格式