以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 专业报表 打印文字在出现空格,跳到下一行 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=11199) |
|
-- 作者:tungwun -- 发布时间:2011/7/12 23:20:00 -- 专业报表 打印文字在出现空格,跳到下一行
|
|
-- 作者:ybil -- 发布时间:2011/7/12 23:56:00 -- Dim doc As New PrintDoc \'定义一个报表
Dim rt As prt.RenderText \'定义一个文本对象 Dim CurRow As Row = Tables("TAXI車輛資料").Current if CurRow("修理內容") isnot nothing then Dim n As IntegerFor Each s1 As String In CurRow("修理內容").split(" ") rt =New prt.RenderText rt.Text = s1 \'设置文本对象的内容 rt.x = 26.5 rt.y = 76+n*5 rt.Width= 163 doc.Body.Children.Add(rt) \'将文本对象加入到报表 n+=1 Next doc.Preview() End if [此贴子已经被作者于2011-7-13 0:02:40编辑过]
|