Foxtable(狐表)用户栏目专家坐堂 → 关于打印数据


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

主题:关于打印数据

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


加好友 发短信
等级:超级版主 帖子:106603 积分:542186 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/12/9 9:10:00 [只看该作者]

Dim lieming As WinForm.CheckedListBox = e.Form.Controls("lieCheckedListBox")
If sjdcxzb="POS机库存资料表" Then
    Dim tbl As WinForm.Table = e.form.controls("Table1")
    tbl.PrintRowNumber = False '不打印行号
    Dim t As Table = tbl.Table
    Dim str As String = t.getColVisibleWidth
    If lieming.CheckedIndices.Count > 0 Then
        For Each c As Col In t.Cols
            c.Visible = False
        Next
        For Each idx As Integer In lieming.CheckedIndices
            t.cols(lieming.Items(idx)).Visible = True
        Next
    End If
    e.Form.visible = False '隐藏
    t.Print(True, False)
    t.SetColVisibleWidth(str)
    e.Form.visible = True '显示
End If

 回到顶部
总数 26 1 2 3 下一页