2012-06-27 76 views
0

我已經使用了Crystal Reports,其中使用拖放嚮導顯示了數據。現在,當我想要顯示組合框選擇更改的報告時,如果下拉列表中只有一個項目,它將顯示正確的結果。但是,當下拉菜單中有多個項目時,會顯示報告顯示重複的條目。我想我需要清除選擇變更時的選擇。我沒有使用任何數據集或數據表。如何清除Crystal Reports緩存?

如何清除報告?

我已經試過

pay.SetParameterValue("Bill", txtBill.Text); 
crystalReportViewer1.ReportSource = pay; 
this.crystalReportViewer1.ParameterFieldInfo.Clear(); 
crystalReportViewer1.Refresh(); 

回答

0

試試這個

ReportDocument.Close() 

crystalReportViewer1.ReportSource = null; 

crystalReportViewer1.Refresh(); 
+0

ReportClientDocument – user1419919

+0

下,我已經改變了代碼的關閉()不可用,嘗試將null分配分配新源之前,報告來源,希望它能解決你的問題 – MSUH