Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
With Tables("分组统计")
.Select(0 ,0, .Rows.Count - 1, .Cols.Count - 1)
End with
Dim Book As New XLS.Book(ProjectPath & "Attachments\结果分析表.xls") '打开模板
Book.Build() '生成细节区
Book.Save("e:\报表\结果分析表.xls") '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = "e:\报表\结果分析表.xls"
Proc.Start()
With Tables("分组统计")
.Select(0 ,0, .Rows.Count - 1, .Cols.Count - 1)
End with
Dim Book As New XLS.Book(ProjectPath & "Attachments\林种统计表.xls") '打开模板
Book.Build() '生成细节区
Book.Save("e:\报表\林种统计表.xls") '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = "e:\报表\林种统计表.xls"
Proc.Start()
With Tables("分组统计")
.Select(0 ,0, .Rows.Count - 1, .Cols.Count - 1)
End with
Dim Book As New XLS.Book(ProjectPath & "Attachments\面积统计表.xls") '打开模板
Book.Build() '生成细节区
Book.Save("e:\报表\面积统计表.xls") '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = "e:\报表\面积统计表.xls"
Proc.Start()
怎么会变,多出\"
这里使用的是相对路径,在U盘也一样