Foxtable(狐表)用户栏目专家坐堂 → 什么同时打两个表


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

主题:什么同时打两个表

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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2023/11/27 22:14:00 [显示全部帖子]

Dim Book As New XLS.Book(ProjectPath & "Attachments\金价piao据打印.xls")
Dim fl As String = ProjectPath & "Reports\金价piao据打印.xls"

Book.Build()
Book.Save(fl)
Dim App As New MSExcel.Application
Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(fl)
Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1)
Ws.PrintOut
App.Quit

Book = New XLS.Book(ProjectPath & "Attachments\工费piao据打印.xls")
f = ProjectPath & "Reports\工费piao据打印.xls"
Book.Build()
Book.Save(fl)
App = New MSExcel.Application
Wb = App.WorkBooks.Open(fl)
Ws  = Wb.WorkSheets(1)
Ws.PrintOut
App.Quit

 回到顶部