Page tree
Skip to end of metadata
Go to start of metadata

Introduced in build 7.1.0.1855

Description

Saves a specified Workbook as a BIFF8 format (Excel 97 or later) .xls file.

C#
vb.net

Parameters

excelApplication
The current ExcelApplication object which is saving the workbook to file
workbook
A Workbook object representing the workbook to save.
listItem
SharePoint List Item to which the file is attached
fileName
Specifies a file name for the Workbook. ExcelWriter will save the file as an attachment to the List Item using this name.

Exceptions

System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the workbook object.

Remarks

Icon

This is an extension method for the ExcelApplication object to be used for saving spreadsheets to SharePoint List Items. To use this method, you must add a reference to SoftArtisans.OfficeWriter.ExcelWriter.SharePointIntegration.dll

Examples

C#
vb.net
  • No labels