2012-08-10 86 views
0

我想爲SSRS設計一個自定義報告項目。在實現ICustomReportItem時,有沒有辦法在EvaluateReportItemInstance函數中訪問報表參數?CustomReportItem報告參數

請注意,我是而不是試圖訪問正在設計的自定義報表項目的自定義屬性。我希望訪問報告中聲明的所有參數。

回答

0

我的錯誤。

這需要在實現CustomReportItemDesigner而不是ICustomReportItem時完成。例如:

public class MyCustomReportItemDesigner : Microsoft.ReportDesigner.CustomReportItemDesigner 
{ 
    public override void InitializeNewComponent() 
    { 
     //this.Report.ReportParameters;