text1.settext(text1是crp的text类型控件)

解决方案 »

  1.   

    假设报表控件名为rptReport
    在aa.rpt中新建一个Fomula,设其名为fmlShowLable,内容为空在command1_click事件加入如下代码:
    rptReport.ReportFileName = "aa.rpt"
    rptReport.Formulas(0) = "fmlShowLable='" & label + "'"
    rptReport.Destination = 0
    rptReport.Action = 1
      

  2.   

    假设报表控件名为rptReport
    在aa.rpt中新建一个Fomula,设其名为fmlShowLable,内容为空在command1_click事件加入如下代码:
    rptReport.ReportFileName = "aa.rpt"
    rptReport.Formulas(0) = "fmlShowLable='" & label & "'"
    rptReport.Destination = 0  'to window,1-->to printer
    rptReport.Action = 1
      

  3.   

    水晶报表中如何新建一个Fomula
      

  4.   

    如果你用的是Crystal Report 4.6 ,
    在Insert 菜单下有一个选项 "Fomula Field...",
    然后在弹出的对话框中填入Fomula 名,设其名为fmlShowLable,
    在接下来的对话框中可以什么都不填,点击Access,
    下面的你应该会了。
      

  5.   

    如果你用的是Crystal Report 4.6 ,
    在Insert 菜单下有一个选项 "Fomula Field...",
    然后在弹出的对话框中填入Fomula 名,设其名为fmlShowLable,
    在接下来的对话框中可以什么都不填,点击Access,
    下面的你应该会了。