report service asp.net 中的使用

最近开始用 report service 了...用了一下感觉很不错.....
 
Reporting Services 非常方便地附带了名为 ReportViewer 的示例(安装到 \Reporting Services\Samples\Applications\ReportViewer 目录)技术开后,生成 dll .
然后把它添加工具箱。。。。 



<cc1:ReportViewer id="ReportViewer1" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 32px"
                runat
="server" Height="480px" ServerUrl="http://gw/ReportServer" ReportPath="/test/Report1&amp;Customerid=92&amp;rc:Parameters=false"
                Width
="616px" Toolbar="Default" Zoom="100"></cc1:ReportViewer>
 ServerUrl 为 report service 名 ....reportpath 为 报表路径。。
 customerid 为参数  rc:parmerter=false 表示调用时 report service 不显示参数栏。。。。
  具体可以看这  
 
   http://www.microsoft.com/china/msdn/library/data/sqlserver/art/USissues0408SQLServerReportingServicesfig05.htm
   

一个汇总时进行判断的语句。。。 
  Sum( iif(len( Fields!searchpath.Value)=1, Fields!Sheets.Value,0), "lishi_yongdian")

 是vb 语法....不喜欢.........
  
差不多都是看的这的,

   http://www.microsoft.com/china/msdn/library/data/sqlserver/SQLServerReportServ.mspx

posted on 2005-06-07 21:56  gwazy  阅读(1937)  评论(2编辑  收藏  举报

导航