Dim r As Row = Tables("从业人员健康检查表").Current If r IsNot Nothing Then Dim doc As New PrintDoc \'定义一个报表 Dim ra As New prt.RenderArea Dim rt As prt.RenderText ra.Width = 86 \'宽度53毫米 ra.Height = 54 \'高度24毫米 ra.Style.Spacing.All = 1 ra.Style.Font = New Font("宋体", 9, FontStyle.Bold) ra.SplitHorzBehavior = prt.SplitBehaviorEnum.Never \'禁止水平分割 ra.SplitVertBehavior = prt.SplitBehaviorEnum.Never \'禁止垂直分割 Doc.Body.ChildRen.Add(ra) \'将容器加入到报表中