Foxtable(狐表)用户栏目专家坐堂 → 多栏式会计账


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

主题:多栏式会计账

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


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

Dim s As String = "年|35||35||35|字号|35|凭证号|35|摘要|300|[其它]|合计|60"

Dim ct As WinForm.Table = e.Form.Controls("Table1")
Dim t As Table = ct.Table
Dim str As String
Dim w2 As Integer = (ct.Width - 35*5-300-60) / (t .cols.Count-7)
if w2 > 0 then
For Each c As Col In .Cols
str = str & "|" & c.name & "|" & w2
next
s = s.replace("[其它]",str.trim("|"))
t.SetColVisibleWidth(s)
end if

 回到顶部
总数 45 1 2 3 4 5 下一页