aps.net报表问题点击下一页提示要登录 点击报表预览可以查看第一页的数据,当我点击报表工具的下一页的时候,就会出现登录框,求解,不知道还要设置哪里,因为我已经设置了权限! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那你就在点击下一页事件判断呗,弄个session或什么来存储登陆信息。 新建==>数据==>数据集 跟数据集绑定对应的数据库表或视图 ReportDocument rd = new ReportDocument(); rd.Load(Server.MapPath("Dataset/Crystal_nlpd_zhutu.rpt")); DataSet ds = new DataSet(); ds = NlpdManager.nlpd_View(id, "pap_view_nlpdzzt");//id 和Datatable名称 rd.SetDataSource(ds.Tables["pap_view_nlpdzzt"]);//绑定Datatable CrystalReportViewer1.ReportSource = rd; CrystalReportViewer1.DataBind();希望能帮到你 补充说明:放在ispostback也是一样的!显示的界面是: rd.SetDataSource(ds.Tables["pap_view_nlpdzzt"]);//绑定Datatable是说这个嘛,我已经这样处理了 // obj.SetDataSource(this.ds.Tables["tablename"]);如果你写成了obj.SetDataSource(this.ds)就会有登陆框的。 myReport.SetDataSource(ds.Tables[0]);求解! 动态添加一个联动控件该怎么写??? 请教泛型实体显式转换为IList 学完这本书后,找工作? 用户名是否已经存在 我用vs2005 asp.net写了个应用程序,不应怎么打包,最好是把sql2000数据库也给打包进去 ===GridView分页模板PagerTemplate里怎么得到控件的名字.... === 网站发布问题 欢迎加入.net QQ群 (33971351) 自定义控件的问题!!!!!!!!!!! DataSet问题 求一正则 发送email问题
ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath("Dataset/Crystal_nlpd_zhutu.rpt"));
DataSet ds = new DataSet();
ds = NlpdManager.nlpd_View(id, "pap_view_nlpdzzt");//id 和Datatable名称
rd.SetDataSource(ds.Tables["pap_view_nlpdzzt"]);//绑定Datatable
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind();希望能帮到你
是说这个嘛,我已经这样处理了
// obj.SetDataSource(this.ds.Tables["tablename"]);如果你写成了obj.SetDataSource(this.ds)就会有登陆框的。
myReport.SetDataSource(ds.Tables[0]);
求解!