2012-08-10 89 views
0

我想为SSRS设计一个自定义报告项目。在实现ICustomReportItem时,有没有办法在EvaluateReportItemInstance函数中访问报表参数?CustomReportItem报告参数

请注意,我是而不是试图访问正在设计的自定义报表项目的自定义属性。我希望访问报告中声明的所有参数。

回答

0

我的错误。

这需要在实现CustomReportItemDesigner而不是ICustomReportItem时完成。例如:

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