Foxtable(狐表)用户栏目专家坐堂 → 汇总行打印


  共有2935人关注过本帖平板打印复制链接

主题:汇总行打印

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


加好友 发短信
等级:幼狐 帖子:170 积分:1551 威望:0 精华:0 注册:2013/8/21 9:41:00
汇总行打印  发帖心情 Post By:2014/3/12 9:16:00 [只看该作者]

Dim tb As Table = Tables("客户报表_table1")
    Dim hd As Integer = tb.HeaderRows
    Dim cnt As Integer
    rt.Style.Font = tb.Font
    tb.CreateReportHeader(rt,True)
    For c As Integer = 0 To tb.Cols.Count -1
        If tb.Cols(c).Visible Then
            rt.Cols(cnt).Width = tb.Cols(c).PrintWidth
            If tb.Cols(c).IsNumeric OrElse tb.Cols(c).IsDate Then
                rt.Cols(cnt).Style.TextAlignHorz = prt.AlignHorzEnum.Right
            End If
            For r As Integer = 0 To tb.Rows.Count -1
                rt.Cells(r + hd, cnt).Text = tb(r,c)
            Next
            cnt = cnt + 1
        End If
    Next
生成了报表,有小计和总计行,但打印的时候没有,如何做?请指教,谢谢!

 回到顶部