我现在用vs自带的报表工具做报表,在reportViewer中显示的时候,我想对某些符合一定条件的单元格进行字体颜色的改变,可以实现吗?如果可以,怎么做?

解决方案 »

  1.   

    =IIf(Year(Fields!Birthday.Value) >= 1977,"Red","Black")
      

  2.   

    Quote: 引用 4 楼 u011458723 的回复:
    是这样的,因为在建立这个报表中的表时,不得绑定数据源嘛,数据源那个表里有几个字段就得显示几个列,但是我要绑定的数据集的表列的数量和名字是不固定的,没法在报表设计器新建表时绑定列的字段,这样应该怎么办?加下QQ 2652770247吧  请教一下~
      

  3.   

    http://www.codeproject.com/Articles/31862/Dynamic-Binding-Of-RDLC-To-ReportViewer private void BindReportViewer()
        {
            ReportViewer1.Visible = true;
                   
            //Invoke Stored procedure With Input parameter to it.
            //DataSet dsReport = objSP.GetTable(storedProcedure,txtParameter.Text));
            //Hardcoded Values.
            IList >Customer< customerList = new List>Customer<();
            customerList.Add(new Customer(1,"Santosh Poojari"));
            customerList.Add(new Customer(2, "Santosh Poojari1"));
            customerList.Add(new Customer(3, "Santosh Poojari2"));
           
            ReportParameter[] param = new ReportParameter[1];
            param[0] = new ReportParameter("Report_Parameter_0",txtParameter.Text);
            ReportViewer1.LocalReport.SetParameters(param);

            ReportDataSource rds = new ReportDataSource
    ("DataSet1_Customers_DataTable1", customerList);
            ReportViewer1.LocalReport.DataSources.Clear();
            ReportViewer1.LocalReport.DataSources.Add(rds);
            ReportViewer1.LocalReport.Refresh();
        }
      

  4.   

    http://www.codeproject.com/Articles/31862/Dynamic-Binding-Of-RDLC-To-ReportViewer看这个链接
      

  5.   

    http://www.codeproject.com/Articles/31862/Dynamic-Binding-Of-RDLC-To-ReportViewer看这个链接
    英文完全看不懂啊。。能不能加下qq 2652770247
      

  6.   

    http://www.codeproject.com/Articles/31862/Dynamic-Binding-Of-RDLC-To-ReportViewer看这个链接
    英文完全看不懂啊。。能不能加下qq 2652770247看看这个呢 http://www.cnblogs.com/waxdoll/archive/2007/02/09/dynamic_serverreport_reportserver_database.html  demo:http://files.cnblogs.com/waxdoll/WaxdollDynamicRdl.rar
      

  7.   

    http://www.codeproject.com/Articles/31862/Dynamic-Binding-Of-RDLC-To-ReportViewer看这个链接
    英文完全看不懂啊。。能不能加下qq 2652770247经过测试上面的链接提供的方案可用而且和详细