如何在Reporting services 2000上实现 日历控件 和 多选筛选器

longlonger 2006-04-20 07:33:15
请各位大侠帮忙分析下

背景: 客户使用的是 SQL server 2000 + Reporting services 2000
开发报表的时候,输入日期参数时太麻烦,希望能象 RS2005 那样为用户提供一个日    历控件 ; 下拉菜单筛选器 也希望为用户提供多选\级联功能
我的思路:
    选择一台机子开发,安装RS 2005 客户端+ vs2005(VS2003 是否可以?),来开发RS2005下的报表,然后部署到 现有的RS200服务器上 ,报表的数据源取自现有的 SQL server 2000.

希望大家分析下,或者提供更好的思路,前提是客户的服务器就是2000 
...全文
478 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xx_adam 2006-09-07
  • 打赏
  • 举报
回复
这两个问题在RS2005中都可以实现,如果你的参数是日期型的,RS中自动加上日期控件,让用户选择日期,多选只要在参数设置中设置允许多选就可以实现多选!
s_phoenix 2006-09-06
  • 打赏
  • 举报
回复
方法一:用reporting services配合sql server2000进行。
方法二:自己写参数录入界面(简单的HTML+JS即可,网上到处都是现成的),然后通过URL传递调用reporting services 2000的报表页面。
ronanlin 2006-08-29
  • 打赏
  • 举报
回复
制作一个aspx页面,实现查询条件,然后用microsoft提供的报表控件,在后台连接到报表服务器.
<%@ Register TagPrefix="cc1" Namespace="Microsoft.Samples.ReportingServices" Assembly="ReportViewer" %>
<cc1:ReportViewer id="ReportViewer1" runat="server" Width="100%" Height="100%" Zoom="100%" Parameters="False"
Toolbar="Default"></cc1:ReportViewer>
ReportViewer1.Visible = true;
Configuration.ModuleSettings settings = Configuration.ModuleConfig.GetSettings();

string projectTypeNo = ddlProjectType.SelectedItem.Value;
string projecTactualizeDept = ddlProjecTactualizeDept.SelectedItem.Value;
string startDate = tbStartDate.Text;
string endDate = tbEndDate.Text;
string fStartDate = tbFStartDate.Text;
string fEndDate = tbFEndDate.Text;
string newItem = ddlNewItem.SelectedItem.Value;
string dateType = ddlDateType.SelectedItem.Value;
string serverUrl = settings.ReportUrl;
string reportPath = settings.ReportFolder + "/RepairProjectStat&ProjectTypeNo=" + projectTypeNo + "&ProjecTactualizeDept=" + projecTactualizeDept + "&StartDate=" + startDate + "&EndDate=" + endDate + "&FStartDate=" + fStartDate + "&FEndDate=" + fEndDate + "&NewItem=" + newItem + "&DateType=" + dateType;

ReportViewer1.ServerUrl = serverUrl;
ReportViewer1.ReportPath = Server.UrlPathEncode(reportPath);
athossmth 2006-08-14
  • 打赏
  • 举报
回复
resen_tu说得对。无法部署。

在sql 2000下自己做日历或者菜单,我所能想到的方法是用javascript注入——用frameset包含frameA和frameB,frameB是sql 2000的reporting server webpage,frameA隐藏,并向frameB中相应html element加入触发事件。

不过这个方法比较罗嗦,还请达人指点。
resen_tu 2006-08-14
  • 打赏
  • 举报
回复
如果REPORTING SERVICE服务器是2000的,你无法将你自己的RS2005程序DEPLOY到2000的服务器。。
另外。。。你用VS2005开发时,其RS是2005的。。用VS2003的话,其程序是2000的,所以不明白你为何要装RS2005,就算你开发的程序能DEPLOY到你RS2005,也不能DEPLOY到RS2000上。。

6,129

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 新技术前沿
社区管理员
  • 新技术前沿社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧