Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Creates a new workbook containing 1 worksheet, in the specified file format. The sheet is blank when the workbook is created, and standard font, style, and format settings applied.

Signature
C#
C#
public virtual Workbook Create(FileFormat format)
{signature}
{signature:
}
Signature
vb.net
vb.net
Public Overridable Function Create(ByVal format As FileFormat) As Workbook
{signature}

{parameters}
{param:format}
The [file format|ExcelApplication.FileFormat] to use for the workbook.
{param}
{returns}
A [Workbook|Workbook] object representing the created workbook.
{returns}
{remarks}
For more information about the differences between the file formats, see [ExcelApplication.FileFormat]
{remarks}
{example}
{code:csharp|title=C#}
Parameters
Param
format
format

The file format to use for the workbook.

Returns

A Workbook object representing the created workbook.

Remarks

For more information about the differences between the file formats, see ExcelApplication.FileFormat

Example
Code Block
csharp
csharp
titleC#

Workbook wb = xla.Create(ExcelApplication.FileFormat.Xlsx);
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titlevb.net
}

Dim wb As Workbook = xla.Create(ExcelApplication.FileFormat.Xlsx)
{code} {example}