rx = new prt.RenderText
rx.Text = Format(CurRow("结案日期"),"yyyy")
rx.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
rx.Style.TextAlignVert = prt.AlignVertEnum.Center '垂直居中
rx.Style.Font = New Font("黑体", 15, FontStyle.Bold)
rx.y = 202
rx.x = 70
doc.body.Children.Add(rx)
'rx.Text = Format(CurRow("结案日期"),"mm")
'rx.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
'rx.Style.TextAlignVert = prt.AlignVertEnum.Center '垂直居中
'rx.Style.Font = New Font("黑体", 15, FontStyle.Bold)
'rx.y = 205
'rx.x = 80
'doc.body.Children.Add(rx)
你上面加了一次怎么可以又加一次呢
rx = new prt.RenderText
rx.Text = Format(CurRow("结案日期"),"yyyy")
rx.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
rx.Style.TextAlignVert = prt.AlignVertEnum.Center '垂直居中
rx.Style.Font = New Font("黑体", 15, FontStyle.Bold)
rx.y = 202
rx.x = 70
doc.body.Children.Add(rx) 去掉
'rx.Text = Format(CurRow("结案日期"),"mm")
'rx.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
'rx.Style.TextAlignVert = prt.AlignVertEnum.Center '垂直居中
'rx.Style.Font = New Font("黑体", 15, FontStyle.Bold)
'rx.y = 205
'rx.x = 80
'doc.body.Children.Add(rx)