我做了一个报表,希望标题是可以动态变化的,但运行时只有第一次调该报表窗体时,显示的是正确的,以后再调标题就不像代码所写的那样显示了,而只显示该控件的原有caption值,这是为什么呢?
调用报表代码如下:
            If daeStatic.rscmdStorLedg.State Then
                daeStatic.rscmdStorLedg.Close
            End If
            datStorLedg.Sections("section2").Controls("lbltit").Caption  = "库存台帐(" & cobStor & ")"
            datStorLedg.Sections("section2").Controls("lbldate").Caption = "查询时间:" & dtpStarDate & " ~" & dtpEndDate
            datStorLedg.Show
datStorLedg是报表窗体的名字
daeStatic.rscmdStorLedg是该报表所连接的数据源,是一个返回数据集的存储过程