如何在GRID数据窗体中动态加报表标题?

NORTHCHERT 2004-10-14 04:37:26
当然要考虑字体和居中!
...全文
144 4 打赏 收藏 举报
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
jxf168 2005-02-17
  • 打赏
  • 举报
回复
//动态屏蔽网线
dw_1.modify("create rectangle(band=foreground x='9' y='8' height='564' width='2875' name=r_1 visible='1' brush.hatch='6' brush.color='134217737' pen.style='0' pen.width='5' pen.color='16777215' background.mode='2' background.color='16777215' )rectangle(band=foreground x='0' y='8' height='564' width='2875' name=r_1 visible='1' brush.hatch='6' brush.color='134217737' pen.style='0' pen.width='5' pen.color='16777215' background.mode='2' background.color='16777215' )")
//动态增加主标题 //高,//宽
dw_1.modify("create text(band=foreground alignment='2' text='医保中心医院端职工消费明细' border='0' color='0' x='0' y='172' height='144' width='2875' html.valueishtml='0' name=t_1 visible='1' font.face='Arial' font.height='-20' font.weight='400' font.family='2' font.pitch='2' font.charset='0' background.mode='2' background.color='33554431' )")
//动态增加附标题 //高,//宽
wjmsino 2004-10-18
  • 打赏
  • 举报
回复
在header里放一label,把属性Position中的layer改成foreground,你就可以任意移动和更改标题
workhand 2004-10-14
  • 打赏
  • 举报
回复
这样要是把某一列拉宽行吗?
hzhxxx 2004-10-14
  • 打赏
  • 举报
回复
<DW Control Name>.Modify(&
"create text(band=<Detail, Footer, Header, Header.<group #>, Summary, Trailer.<group #>, Background, Foreground>" + &
" color='<a long>' alignment='<0 - Left, 1 - Right, 2 - Center>' border='<0 - None, 1- Shadow, 2 - Box, 3 - Resize, 4 - Underline, 5 - 3D Lowered, 6 - 3D Raised>'" + &
" height.autosize=<Yes or No> pointer='<Arrow!, Cross!, HourGlass!, IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or cursor filename (with path)>' moveable=<0 - False, 1 - True> resizeable=<0 - False, 1 - True> x='<an integer>' y='<an integer>' height='<an integer>' width='<an integer>' text='<string>' + &
" name=<string> tag='<string>' font.face=<name of type face (i.e., SYSTEM, COURIER)> font.height='<negative number for points, positive number for PBUs (i.e., -10 = 10 points, 10 = 10 PBUs>' font.weight='<400 - Normal, 700 - Bold>' font.family=<0 - AnyFont, 1 - Roman, 2 - Swiss, 3 - Modern, 4 - Script, 5 - Decorative> font.pitch='<0 - default, 1 - Fixed, 2 - Variable>' font.charset='<0 - Ansi, 1 - default, 2 - Symbol, 128 - Shift JIS, 255 - OEM>' font.italic='<0 - False, 1 - True>' font.strikethrough='<0 - False, 1 - True>' font.underline='<0 - False, 1 - True>' background.mode='<0 - Opaque, 1 - Transparent>' background.color='<a long>')")
发帖
DataWindow

603

社区成员

PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
帖子事件
创建了帖子
2004-10-14 04:37
社区公告
暂无公告