2010-01-27 54 views
2

我有一箇中等複雜的報告,由很多子報表組成。Reporting Services 2005:嘗試導出到Excel會導致「對象引用未設置爲對象的實例」。錯誤

一個特定的問題是導致一個問題:如果您單獨運行它,它工作正常。如果您將其整合爲一個報表,它拒絕讓您導出到Excel格式的文件(預覽版),並出現以下錯誤:

An error occurred during local report processing. 
An error occurred during rendering of the report. 
An error occurred during rendering of the report. 
Object reference not set to an instance of an object. 

生產爲任何其他格式正常工作。到目前爲止,我的谷歌搜索大多數都說「重新安裝Reporting Services」,我真的不想做(我重新安裝了a previous issue,我花了一整天的時間讓所有的事情再次開心 - 可能更多),尤其是考慮到它不是一個可靠的解決方案

我不知道它是否有意義,但報告確實使我們看到了Dundas Charts,這可能會使分析更加困難。

任何人都知道更好的解決方案?

更新:

當我嘗試導出到Excel報表服務器上,它給了我這樣的:

Object reference not set to an instance of an object. 
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.Exception: Object reference not set to an instance of an object. 

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: 


[Exception: Object reference not set to an instance of an object.] 

[Exception: An error occurred during rendering of the report.] 

[Exception: An error occurred during rendering of the report.] 
    Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +520 
    Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +936 
    Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +28 
    Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +85 
    Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +143 
    Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +152 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 

回答

0

我相信,含子報表報告的Excel導出是一個已知的問題在SSRS 2005中,並在2008年解決。我不知道升級是否適合您?

1

我遇到了與下面的語句相同的問題。一切工作正常,除非導出爲Excel。

=iif(ReportItems!textbox343.Value>ReportItems!textbox344.Value or ReportItems!textbox346.Value>ReportItems!textbox347.Value,"Yes","No") 

這裏是修復。它增加了大括號和瞧巫毒魔法它的作品。

=iif((ReportItems!textbox343.Value>ReportItems!textbox344.Value) or (ReportItems!textbox346.Value>ReportItems!textbox347.Value),"Yes","No") 
相關問題