2014-02-27 75 views
0

enter image description here顯示Reporting Services報表到asp.net web表單

大家在這裏看到我的報告時,我跑入我的web服務URL 但是當我在一個asp.net web窗體運行它,它像第二個顯示爲什麼請 enter image description here

這裏是我的代碼示例:

MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote 
    MyReportViewer.ServerReport.ReportServerUrl = New Uri("jean-daniel/ReportServer_SQLEXPRESSADDD") ' Report Server URL 
    MyReportViewer.ServerReport.ReportPath = "/Report Project2/Auction" ' Report Name 
    MyReportViewer.ShowParameterPrompts = True MyReportViewer.ShowPrintButton = True 
    MyReportViewer.ShowToolBar = False MyReportViewer.ServerReport.Refresh() 
+0

難道是這樣的相對文件引用放在Web表單時沒有指向正確的地方嗎? – RacerNerd

+0

我的代碼我不知道什麼問題在哪裏是錯誤,因爲我運行其他窗體的工作很好,只有形式,我有圖表,這使問題 – user3287068

回答

0

的圖表是圖像,並設置爲存儲每個會話一個在緩存中。因此,如果用戶a和用戶b訪問相同的圖表,那麼它將回到圖表a。 - 緩存問題。我發現了一個解決方法如下所述:

Workaround

+0

我認爲你不明白,我想要的是所有的圖表出現在網絡表格的頁面上 – user3287068

相關問題