加好友 发短信
等级:六尾狐
帖子:1249
积分:9474
威望:0
精华:0
注册:2013/5/12 9:22:00
|
Post By:2016/3/21 10:14:00 [显示全部帖子]
Dim Book As New XLS.Book() '定义一个Excel工作簿Dim Sheet As XLS.Sheet = Book.Sheets(0) '引用工作簿的第一个工作表Dim Style As XLS.Style = Book.NewStyle() '定义新样式Style.ForeColor = Color.Red '设置样式的字体颜色Sheet(3,0).Formula = "=A1/A3"Book.Save("c:\reports\test.xls")Dim Proc As New Process Proc.File = "c:\reports\test.xls"Proc.Start()
改成大写,试试!
|
|