Foxtable(狐表)用户栏目专家坐堂 → [求助]


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

主题:[求助]

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


加好友 发短信
等级:一尾狐 帖子:498 积分:4611 威望:0 精华:0 注册:2013/4/25 8:02:00
[求助]  发帖心情 Post By:2014/12/25 21:44:00 [只看该作者]

有谁能把这段代码详细注解一下,谢谢!

       rt.Style.Borders.all = New prt.Linedef(0,Color.White)
        
        rt.Style.TextColor = Color.Black
        rt.Cols(0).Width = 14 & "mm"
        rt.Cols(1).Width = 6 & "mm"
        rt.Cols(2).Width = 25 & "mm"
        rt.Cols(3).Width = 10 & "mm"
        rt.Cols(4).Width = 15 & "mm"
        rt.Cols(5).Width = 15 & "mm"
        rt.Cols(6).Width = 7 & "mm"
        rt.Cols(7).Width = 8 & "mm"
        rt.Cols(8).Width = 7 & "mm"
        rt.Cols(9).Width = 7 & "mm"
        rt.Cols(10).Width = 9 & "mm"
        rt.Cols(11).Width = 7 & "mm"
        rt.Cols(12).Width = 7 & "mm"
        rt.Cols(13).Width = 3 & "mm"
        rt.Cols(14).Width = 3 & "mm"
        rt.Cols(15).Width = 27 & "mm"
        rt.Rows(rt.Rows.Count).Height = 14
        rt.Rows(rt.Rows.Count-1).Style.GridLines.all = New prt.Linedef(0,Color.White)
        rt.Rows(rt.Rows.Count-1).Style.GridLines.Top = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,0).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,13).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,0).SpanCols = 13  '向右合并13列
        rt.Cells(rt.Rows.Count-1,0).Text =  getConfigValue("学校名称","请先选择学校名称!")
        rt.Cells(rt.Rows.Count-1,0).Style.Font = New Font("宋体", 14, FontStyle.Regular)
        rt.Rows(rt.Rows.Count).Height = 14
        rt.Rows(rt.Rows.Count-1).Style.GridLines.all = New prt.Linedef(0,Color.White)
        rt.Cells(rt.Rows.Count-1,0).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,13).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,0).SpanCols = 13 '向右合并13列
        rt.Cells(rt.Rows.Count-1,0).Text = getConfigValue("证件名称","请先选择证件名称!")
        rt.Cells(rt.Rows.Count-1,0).Style.Font = New Font("黑体", 20, FontStyle.Regular)
        rt.Cells(rt.Rows.Count-1,0).Style.TextColor = clr
        rt.Rows(rt.Rows.Count).Height = 7
        rt.Rows(rt.Rows.Count-1).Style.GridLines.all = New prt.Linedef(0,Color.White)
        rt.Cells(rt.Rows.Count-1,0).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Cells(rt.Rows.Count-1,13).Style.GridLines.left = New prt.Linedef(0.5,clr)
        rt.Rows(rt.Rows.Count-1).Style.Font = New Font("宋体", 12, FontStyle.Regular)
        rt.Cells(rt.Rows.Count-1,0).Text = "学号:"
        rt.Cells(rt.Rows.Count-1,0).Style.TextColor = clr


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


加好友 发短信
等级:九尾狐 帖子:2204 积分:18140 威望:0 精华:0 注册:2011/11/26 20:21:00
  发帖心情 Post By:2014/12/25 21:49:00 [只看该作者]

我晕,这么长的代码,还要一行行注释。
先把帮助认真看两遍,再来理解一下可能更好一点。

再说,这个是生成界面,可能并不太适合接触狐表的人哦。



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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/12/25 21:51:00 [只看该作者]

 请把专业报表一张看完。

 

http://www.foxtable.com/help/topics/1166.htm

 


 回到顶部