好象需要指定section,你自己试试
解决方案 »
- 利用MshFlexGrid和TextBox进行输入时,如何进行文本换行?
- 怎样判断计算机是否插入USB
- 我的VB+SQL都能连上了但是就是不能执行,不知道是什么原因,请各位给看看,谢谢
- 怎样得到某一时间tm距1970-1-1 0:0:0 的秒数?
- 嘻嘻,十分问题???
- 求解密程序!!!!!!!!!
- 关于VB60 SP5下DataReport下写工资条的问题
- 急求~
- 如何注册install shield devoloper 8?????????????????????????
- 如何设置listview的垂直平面滚动条?
- daiwoo进来领分
- 如何实现窗体中控件的尺寸随着窗体的尺寸的变化而变化?见者有“分”!
的思路是对的,好像是:dim x
for each x in datareport1.sections
'判断x是否为label控件
'判断x的name属性是否是label1
'赋值
next x
Set rs3 = New ADODB.Recordset
rs3.Open StrSQL, cnnDB, adOpenKeyset, adLockOptimistic
Set Report.DataSource = rs3
Report.Orientation = rptOrientLandscape '设报表的方向为横向
Report.Sections("Sections1").Controls("Label1").Caption = "姓名" '设报表的label1显示姓名。
for o in sect.controls
select case typename(o)
case "rptLabel"
o.caption="your request"
case ...
end select
next
next sect