Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:报表设计

1楼
lihe60 发表于:2009/5/20 8:21:00
狐狸爸爸,可不可以把易表的报表设计功能全盘移过来呀?那个功能很好用的.
2楼
狐狸爸爸 发表于:2009/5/20 8:36:00
你去学一下帮助中的Excel报表吧。
3楼
yangming 发表于:2009/5/20 9:32:00
这是不用打开EXCEL表而直接打印的,打印完就关闭了
CurrentTable.SaveExcel("C:\test.xls","sheet1",False)
Dim Book As New XLS.Book("C:\test.xls") '打开模板
Dim Sheet As XLS.Sheet = Book.Sheets(0)
Dim r As Integer = Sheet.Rows.Count-1
Dim c As Integer = Sheet.Cols.Count -1
With Sheet.PrintSetting
    '页眉
    .Header = "&L"&"期间:" & e.Form.Controls("DTPqsrq").Value & "至" & e.Form.Controls("DTPjzrq").Value
   End With
Sheet(r+2,c).Value = "制单人:" & User.Name
Book.Save("C:\test.xls") '保存工作簿
Dim Proc As New Process
Proc.File = "C:\test.xls"
Proc.Verb = "Print" '指定动作
Proc.Start()
4楼
菜鸟foxtable 发表于:2009/5/20 10:19:00
以下是引用yangming在2009-5-20 9:32:00的发言:
这是不用打开EXCEL表而直接打印的,打印完就关闭了
CurrentTable.SaveExcel("C:\test.xls","sheet1",False)
Dim Book As New XLS.Book("C:\test.xls") '打开模板
Dim Sheet As XLS.Sheet = Book.Sheets(0)
Dim r As Integer = Sheet.Rows.Count-1
Dim c As Integer = Sheet.Cols.Count -1
With Sheet.PrintSetting
    '页眉
    .Header = "&L"&"期间:" & e.Form.Controls("DTPqsrq").Value & "至" & e.Form.Controls("DTPjzrq").Value
   End With
Sheet(r+2,c).Value = "制单人:" & User.Name
Book.Save("C:\test.xls") '保存工作簿
Dim Proc As New Process
Proc.File = "C:\test.xls"
Proc.Verb = "Print" '指定动作
Proc.Start()

学习..

共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.