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))
原文地址:https://www.cnblogs.com/lvk618/p/3518399.html