方法:
1.在报表的页眉区(header) 插入两个文本框t_title,t_printtime设置属性
t_title
text 报表的题
alignment centert
border noborder
font.underline=true
position.width=long(Describe("最后一列.x"))+long(Describe(" 最后一列.width"))+10
position.x=0
position.y=0
position.layer=foreground
t_printtime
text 表达式:'打印时间: '+string(today(),'yyyy年mm月dd日')+' '
alignment right
border underline(4)
position.width=long(Describe("最后一列.x"))+long(Describe(" 最后一列.width"))+10
position.x=0
position.y=t_title.height
position.layer=foreground
标题
position.y=t_title.height+t_printtime
header
height=标题.y+标题.height
1.在报表的页眉区(header) 插入两个文本框t_title,t_printtime设置属性
t_title
text 报表的题
alignment centert
border noborder
font.underline=true
position.width=long(Describe("最后一列.x"))+long(Describe(" 最后一列.width"))+10
position.x=0
position.y=0
position.layer=foreground
t_printtime
text 表达式:'打印时间: '+string(today(),'yyyy年mm月dd日')+' '
alignment right
border underline(4)
position.width=long(Describe("最后一列.x"))+long(Describe(" 最后一列.width"))+10
position.x=0
position.y=t_title.height
position.layer=foreground
标题
position.y=t_title.height+t_printtime
header
height=标题.y+标题.height
324

被折叠的 条评论
为什么被折叠?



