Foxtable(狐表)用户栏目专家坐堂 → 报表生成的问题


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

主题:报表生成的问题

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/7/4 14:52:00 [显示全部帖子]

Dim wbr As WinForm.WebBrowser = e.Form.Controls("WebBrowser1")

Dim r As Row = Tables("表a").Current
Dim tmp As String = ProjectPath & "Attachments\订单清单.xls"
Dim rpt As String = "d:/订单/" & r("所属年份") & r("所属月份")+"订单清单.pdf"
Dim Book As New XLS.Book(tmp)
Book.Build()
Book.SaveToPDF(rpt) '保存为pdf文件
wbr.AddRess = rpt


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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/7/4 15:45:00 [显示全部帖子]

Dim wbr As WinForm.WebBrowser = e.Form.Controls("WebBrowser1")
Dim tmp As String = ProjectPath & "Attachments\订单清单.xls"
Dim tmp1 As String = ProjectPath & "Attachments\订单接口报表.xls"
Dim rpt1 As String = "d:/订单/"+(Tables("订单报表").Current("所属年份")) + (Tables("订单报表").Current("所属月份"))   +"01.xls"
Dim rpt As String = "d:/订单/"+(Tables("订单报表").Current("所属年份")) + (Tables("订单报表").Current("所属月份"))   +"订单清单.pdf"
If FileSys.FileExists(rpt) = False Then
    Dim Book As New XLS.Book(tmp)
    Dim Book1 As New XLS.Book(tmp1)
    Book.Build()
    Book1.Build()
    Book1.Save(rpt1)'保存为pdf文件
    Book.SaveToPDF(rpt) '保存为pdf文件
End If

wbr.AddRess = rpt

[此贴子已经被作者于2016/7/4 15:45:17编辑过]

 回到顶部