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]:另一个类似的技巧是使用 隐藏参数:
一个常见的使用技巧是,如果报表中的一些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.
本文介绍了SQL Server 2005报表服务中的一些实用技巧,包括如何通过隐藏的Textbox来间接引用数据源字段,以及如何使用隐藏参数来展示特定信息。这些技巧能够帮助报表设计者更灵活地处理数据展示需求。
1390

被折叠的 条评论
为什么被折叠?



