Foxtable(狐表)用户栏目专家坐堂 → [求助]报表打印如何能打出黑底白字?


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

主题:[求助]报表打印如何能打出黑底白字?

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/9/25 11:57:00 [显示全部帖子]

什么报表?

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


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

比如:http://www.foxtable.com/webhelp/topics/1207.htm

Dim doc As New PrintDoc '定义一个报表
Dim rt As New prt.RenderTable() '定义一个表格对象
doc.Body.Children.Add(rt) '将表格对象加入到报表中
rt.Style.GridLines.All = New prt.Linedef(Color.DarkGray) '将表格的颜色设为深灰色
rt.Rows.Count = 3 '设置行数
rt.Cols.Count = 3 '设置列数
rt.Width = 150 '设置表格的宽度
rt.Height = 150 '设置表格的高度
rt.Cells(1, 2).Style.BackColor = Color.Crimson
rt.Cells(0, 1).Style.BackColor = Color.BlueViolet

Dim rx As New prt.RenderText '定义一个文本对象
rx.Text = "123"
rx.Style.Font = New Font("宋体", 16, FontStyle.Bold)
rx.Style.TextColor = Color.white
rt.Cells(1, 2).RenderObject = rx '将文本对象放置在单元格中

Doc.Preview() '预览报表

 回到顶部