Foxtable(狐表)用户栏目专家坐堂 → 采购合同打印


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

主题:采购合同打印

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


加好友 发短信
等级:超级版主 帖子:107440 积分:546479 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/1/26 9:14:00 [显示全部帖子]

book.sheets(0)(10,13).value = "<[_Identify] in (" & str.trim(",") & ")>"

或者

Dim Book As New XLS.Book(ProjectPath & "Attachments\采购订单合同.xlsx")
Dim fl As String = ProjectPath & "Reports\采购订单合同.xlsx"
Dim str As String = "-1,"
Dim t As Table = e.Form.controls("转合同").Table
For Each r As Row In t.GetCheckedRows
    str &= r("_Identify") & ","
Next
Dim f As String = t.Filter
t.Filter = "[_Identify] in (" & str.trim(",") & ")"
book.sheets(0)(10,13).value = "<ALL>"
Book.Build() '生成细节区
Book.Save(fl) '保存工作簿
t.Filter = f
Dim Proc As New Process '打开工作簿
Proc.File = fl
'Proc.Verb = "Print" '指定动作
Proc.Start()

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


加好友 发短信
等级:超级版主 帖子:107440 积分:546479 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/2/19 20:09:00 [显示全部帖子]

上传实例说明

 回到顶部