Foxtable(狐表)用户栏目专家坐堂 → [求助]专业报表如何设置二行文字作为表头。


  共有4092人关注过本帖树形打印复制链接

主题:[求助]专业报表如何设置二行文字作为表头。

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109489 积分:557107 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/4/5 20:14:00 [显示全部帖子]

二行文字放到一个容器里面:http://www.foxtable.com/webhelp/topics/1185.htm
Dim ra As New prt.RenderArea
Dim rt As New prt.RenderText '定义一个文本对象
rt.Text = "天天向上软件有限公司" '设置文本对象的内容
rt.Style.Font = New Font("宋体", 18, FontStyle.Bold) '设置字体
rt.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
rt.Style.Spacing.Bottom = 3 '设置下间隔为3毫米
ra.Children.Add(rt
'````````````````````````````````````````````````````
Dim rt1 As New prt.RenderText '定义一个文本对象
rt1.Text = "计划表" '设置文本对象的内容
rt1.Style.Font = New Font("宋体", 16, FontStyle.Bold) '设置字体
rt1.Style.TextAlignHorz = prt.AlignHorzEnum.Center '水平居中
rt1.Style.Spacing.Bottom = 3 '设置下间隔为3毫米
ra.Children.Add(rt1
Doc.PageHeader = ra
doc.Preview() '预览


 回到顶部