PB datawindow中的文本调整打印长度

long row_count
if right(label_text,1) = ‘、’  then//label_text是在外面定义的全局变量(Instance)
label_text = left (label_text,len(label_text) -1)
end if
row_count = ceiling(len(label_text) / 33)
dw_print_nxs.modify("expand2_1.height = " + string(row_count * 55))
dw_print_nxs.modify("datawindow.header.height =" + string(370 + row_count * 55))

 

posted @ 2014-01-14 09:28  吕坤  阅读(554)  评论(0编辑  收藏  举报