Represents a Microsoft Excel workbook
For a list of all members of this type, see IWorkbook Members.
[Visual Basic] Public Interface IWorkbook [C#] public interface IWorkbook [C++] public __gc __interface IWorkbook [JScript] public interface IWorkbook
This example creates new workbook and saves it into C:\book.xls
[C#] IWorkbook book = Factory.CreateWorkbook(); IWorksheet sheet = book.Worksheets.Add(); sheet.Name = "Sheet1"; book.SaveAs("C:\\book.xls");
[Visual Basic] Dim book As IWorkbook = Factory.CreateWorkbook() Dim sheet As IWorksheet sheet = book.Worksheets.Add() sheet.Name = "Sheet1" book.SaveAs("book.xls")
[C++] IWorkbook* book = Factory::CreateWorkbook(); IWorksheet* sheet = book->Worksheets->Add(); sheet->Name = S"Sheet1"; book->SaveAs(S"book.xls");
Assembly: NativeExcel (in NativeExcel.dll)