错误提示是什么?
通常必须在Build之后,定义Sheet,然后设置单元格内容:
Dim Book As New XLS.Book(ProjectPath & "Attachments\设备一览表.xls")Dim fl As String = "E:\Desktop\设备一览表.xls"Book.Build() '生成细节区Book.Save(fl) '保存工作簿
Dim Sheet As XLS.Sheet = Book.Sheets(0)Sheet(10,10).value = “内容”Dim Proc As New Process '打开工作簿Proc.File = flProc.Start()