Foxtable(狐表)用户栏目专家坐堂 → 窗体打印分页求和编码求助?


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

主题:窗体打印分页求和编码求助?

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


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

参考:http://foxtable.com/bbs/dispbbs.asp?boardid=2&Id=93847

Dim doc As PrintDoc = e.Form.GernatePrintDoc()
Dim idx As Integer = 0
Dim idx2 As Integer = 0
Dim t As Table = e.Form.Controls("Table1").Table
For Each c As object In Doc.Body.Children
    If Typeof c Is prt.RenderText Then
        If c.text = "合计金额" Then
            Dim count As Double = 0
            For i As Integer = idx To idx + 7
                count += val(t.Rows(i)("实报金额合计"))
            Next
            c.text = "合计金额" &  cstr(count)
            idx += 8
        End If
    End If
Next
doc.Preview()

 回到顶部