12.27版
报表按钮
Dim Names() AS String = {"林分属性","插花统计","林种统计","经营类型"}
For Each Name As String In Names
With Tables("分组统计")
.Select(0 ,0, .Rows.Count - 1, .Cols.Count - 1)
End with
Dim Book As New XLS.Book(ProjectPath & "Attachments\" & Name & ".xls") '打开模板
Book.Build() '生成细节区
Book.Save( "d:\My Documents\Reports-:special:1:-& Name & ".xls") '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = "d:\My Documents\Reports-:special:1:-& Name & ".xls"
Proc.Start()
Next
此主题相关图片如下:2009-12-28 9-57-13.png