Hot Tip - SQL 报表服务(Reporting Services) RDL

来源:互联网 发布:java 解析word文档结构 编辑:程序博客网 时间:2024/04/25 13:08
http://msdn2.microsoft.com/zh-cn/library/bb395166.aspx上面的地址中列举了一些SQL 2005报表服务的一些Tips,值得一看。

一个常见的使用技巧是,如果报表中的一些element不支持直接引用数据源field的时候,可以通过一个Textbox"过渡"一下来实现,因为Textbox的值可以通过ReportItems!TextBoxName.value来引用的,将此Textbox的Hidden属性设置为true,就可以隐藏它,不必显示在界面上。

[Update 2007-8-24]:另一个类似的技巧是使用隐藏参数
Another approach is to use hidden parameters. To do this, create a new data set that contains the values that you want to put in the report. In general, the query should only return a single row. After defining the data set, create a hidden parameter for each value you want to display. Set both of the available values and the default values for these parameter to the data set and field that contains the information that you want to show. Then you can simply add them to the page header or footer using the =Parameters!ParameterName.Value syntax.
原创粉丝点击