水晶报表 在绑定数据集时:如何判断打印当前是第几页
高手快快帮帮我好几天没解决了,再不解决老师老K了我;
我在用数据集绑定水晶报表控件时:想判断是否是打印的最后一页
。
SqlDataAdapter dr = new SqlDataAdapter( "select zbbh, zbmc, jcxm, zxxh, jclr, jcjg,CASE jsrd WHEN 1 THEN '合格 ' WHEN 0 THEN '不合格 ' END AS jsrd, jcr,bz,CONVERT(char, jcsj, 102) AS jcsj from T_DJ_JSJC where zbbh= ' " + Request.QueryString[ "zbbh "].ToString() + " ' and jclc= ' " + Request.QueryString[ "jclc "].ToString() + " ' ORDER BY JCXM DESC,zxxh ASC ", sqlconn);
DataSet T_DJ_JSJC1 = new DataSet();
dr.Fill(T_DJ_JSJC1, "T_DJ_JSJC ");
ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath( "~/Report/装备技术检查统计.rpt "));
rd.SetDataSource(T_DJ_JSJC1);
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind();
从这向下的内容我只想在最后一页显示:想在这进行判断是否是最后一页IF(???怎么写代啊码){
TextObject text = (TextObject)rd.ReportDefinition.ReportObjects[ "Text4 "] as TextObject;
TextObject text1 = (TextObject)rd.ReportDefinition.ReportObjects[ "Text6 "] as TextObject;
TextObject text2 = (TextObject)rd.ReportDefinition.ReportObjects[ "Text8 "] as TextObject;
text.Text = jcxs[ "timutable "].Rows.Count.ToString();
&nb